[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
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.
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?
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Why do you have {#MyAppExeName} instead of just your app exe name?
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Try something like this:
[Icons]
Name: {%UserProfiles}\Favorites; Filename: {app}\YourExeName.exe; WorkingDir: {app}
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?
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
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Tried changing {%UserProfiles} to {%UserProfile} but still nothing was created in the Favorites folder.
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\
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...
:thumb: