Page 1 of 1

Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Tue Jan 22, 2013 3:36 am
by Rulan
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 7031 times
icon_dektop_2.png
icon_dektop_2.png (31.71 KiB) Viewed 7031 times

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Thu Jan 24, 2013 1:52 am
by Rulan
Hi,
Any ideas?/workarounds?
Or do we something wrong?
regards

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Mon Jan 28, 2013 2:22 am
by Rulan
No response? :(

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

Regards

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Mon Jan 28, 2013 3:23 am
by FrancescoT
Dear Rulan,

please have a look at the link below;

http://www.installaware.com/forum/viewt ... n+as+admin

Regards

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Mon Jan 28, 2013 3:49 am
by Rulan
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

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Mon Jan 28, 2013 4:33 am
by FrancescoT
Let me verify it.

Regards

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Wed Jan 30, 2013 2:06 am
by Rulan
Hello Francesco,

can you give me status of my problem?

regards

Re: Problems "RUNASADMIN" in $DESKTOPDIR$

Posted: Thu Feb 14, 2013 9:59 am
by FrancescoT
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