|
-
Apr 13th, 2009, 11:35 AM
#1
Thread Starter
Hyperactive Member
[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
Last edited by Tomexx; Apr 20th, 2009 at 08:50 PM.
Thanks
Tomexx.
-
Apr 20th, 2009, 04:53 PM
#2
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
Waiting for a full featured smart phone with out marrying a provider
Go Android
Go raiders 
-
Apr 20th, 2009, 08:48 PM
#3
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|