[Resolved] Shortcuts not being created on Vista when "Run As administrator"
Hi,
I'm using InnoSetup for distributing a VB6 application.
I'm testing my setup on various windows and found out that on Vista when I run the setup is run under admin account I get both shortcuts (desktop and quick launch)
However, when I run setup as a standard user by right-clicking setup.exe and selecting "Run as" and administrator, then providing admin password, the program installs correctly but the icons for the shortcuts are not created.
I'm using InnoSetup and this is my [Icons] section:
[Icons]
Name: "{group}\MyProg"; Filename: "{app}\MyProg.exe"
Name: "{group}\Help"; Filename: "{app}\QP.chm"
; desktop & quick launch icons
Name: "{userdesktop}\MyProg"; Filename: "{app}\MyProg.exe"; MinVersion: 4,4
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\MyProg"; Filename: "{app}\MyProg.exe"; MinVersion: 4,4
Re: Shortcuts not being created on Vista when "Run As administrator"
i had the same problem and had to change the locations of the shortcuts. Change these:
Name: "{userdesktop}
Name: "{userappdata}
Mine point to ComStartMenuDir and ComDeskTopDirectory these names are built into my installer
I don't use Inno so i wouldn't know how to change yours. I install as admin and the shortcuts can be seen by standard users and admin
Re: Shortcuts not being created on Vista when "Run As administrator"
Hi,
I actually gave up on the taskbar icon and use the following for the desktop icon:
Code:
Name: "{commondesktop}\myProg"; Filename: "{app}\myProg.exe"
Common desktop should be used instead of userdesktop.
Thanks for your help.