Results 1 to 3 of 3

Thread: [Resolved] Shortcuts not being created on Vista when "Run As administrator"

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    [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.

  2. #2
    PowerPoster isnoend07's Avatar
    Join Date
    Feb 2007
    Posts
    3,237

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    Ont, Canada, Earth
    Posts
    458

    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.
    Thanks

    Tomexx.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width