Results 1 to 10 of 10

Thread: [RESOLVED] InnoSetup / ISTool -- Creating a shortcut in favorites folder

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Resolved [RESOLVED] InnoSetup / ISTool -- Creating a shortcut in favorites folder

    I had a request to make a shortcut similar to the one on the desktop in the favorites folder. Is this possible?

    It's the folder located at:

    (Drive Letter):\documents and settings\(User)\Favorites

    My problem is that the stuff in parentheses would be unique for each user.

    Thanks,
    Brian
    Last edited by bat711; Nov 8th, 2006 at 05:17 PM.
    CodeBank: Launch IE

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    I believe you are looking for the {userappdata}, {commondesktop} or {%UserName} variables. I think you are really want the latter.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    I tried using the following line in the [Icons] group, but no shortcut is showing up:

    Name: {%UserProfiles}\Favorites; Filename: {app}\{#MyAppExeName}

    Is this the proper format?
    CodeBank: Launch IE

  4. #4
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Why do you have {#MyAppExeName} instead of just your app exe name?

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Try something like this:

    [Icons]
    Name: {%UserProfiles}\Favorites; Filename: {app}\YourExeName.exe; WorkingDir: {app}

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Thanks for your help Randem, but I still can't seem to get it working properly. So I was thinking, is it possible to just copy a desktop shortcut that is already created into the Favorites folder?
    CodeBank: Launch IE

  7. #7
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Yes, it is possible. I just noticed a mistake in your script

    {%UserProfiles} should be {%UserProfile)

    Try that

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Tried changing {%UserProfiles} to {%UserProfile} but still nothing was created in the Favorites folder.
    CodeBank: Launch IE

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Using this:
    Name: {%UserProfile}\MyShortcut; Filename: {app}\{#MyAppExeName}

    I was able to get it into the Users directory, but I'm not sure how to move it from:

    user\

    to:

    user\Favorites\
    CodeBank: Launch IE

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Location
    Chicago
    Posts
    136

    Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder

    Nevermind, I figured out what I was doing wrong. I was trying to do this:

    Name: {%UserProfiles}\Favorites; Filename: {app}\YourExeName.exe; WorkingDir: {app}

    But needed this format because there is a folder named "Favorites" so I can't create a file of the same name:

    Name: {%UserProfiles}\Favorites\MyAppName; Filename: {app}\YourExeName.exe; WorkingDir: {app}

    Thanks for your help Randem...

    CodeBank: Launch IE

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