Problems "RUNASADMIN" in $DESKTOPDIR$

Got a problem you cannot solve? Try here.
Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Problems "RUNASADMIN" in $DESKTOPDIR$

Postby Rulan » Tue Jan 22, 2013 3:36 am

Hi,
creating a desktop-button to "run as admin" do not work... :(

(The same defining under $shortcutfolder$: everything works fine...)

Have a look (IA15 + WIn7 64-bit):
Icon_Desktop.png
Icon_Desktop.png (42.43 KiB) Viewed 6570 times

icon_dektop_2.png
icon_dektop_2.png (31.71 KiB) Viewed 6570 times

Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby Rulan » Thu Jan 24, 2013 1:52 am

Hi,
Any ideas?/workarounds?
Or do we something wrong?
regards

Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby Rulan » Mon Jan 28, 2013 2:22 am

No response? :(

Is it a bug??? :o
CAN ANYONE CONFIRM the problem? :o
WORKAROUND???? :o

Regards

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby FrancescoT » Mon Jan 28, 2013 3:23 am

Dear Rulan,

please have a look at the link below;

http://www.installaware.com/forum/viewtopic.php?f=2&t=8825&hilit=+run+as+admin

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby Rulan » Mon Jan 28, 2013 3:49 am

Dear Francesco,
thanks for the reply...

But ???? what do you mean???? with your link????? :(

please have a look at at my pictures above, you can see that there is no flag set in the advanced options!

And please remember, as I mentioned, it only did not work in "$desktopdir$"...
It seems to be a bug????


regards

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby FrancescoT » Mon Jan 28, 2013 4:33 am

Let me verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Rulan
Posts: 56
Joined: Tue Nov 20, 2012 5:02 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby Rulan » Wed Jan 30, 2013 2:06 am

Hello Francesco,

can you give me status of my problem?

regards

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Postby FrancescoT » Thu Feb 14, 2013 9:59 am

Dear Rulan,

we verified what you reported and this is not caused by a bug with the desktop shortcut creation, but instead by the value used by DESKTOPDIR variable.

In other words, (as we experimented and I suppose even in your case) to have the command working correctly (mainly when using MSI engine with your package generation) you must verify that the passed desktop folder parameter with the shortcut command, points to a path value that reflects the "PER MACHINE or PER USER" installation context used by your setup package at runtime.

More pratically, you should have with your main script the following code lines placed immediately after the setup interview.

Code: Select all

if Variable ALLUSERS Equals TRUE
  Get Common Folder Location System->Desktop Directory into DESKTOPDIR
else
  Get Folder Location System->Desktop Directory into DESKTOPDIR
end

* where the first call to "Common Folder Location" obtains the path for all users and the second one just for current user.

NOTE
I suggest you to update your IA installation to the new 15.32 version, where fixes has been introduced with "Get Common Folder Location" command.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 149 guests