|
-
Nov 8th, 2006, 05:09 PM
#1
Thread Starter
Addicted Member
[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.
-
Nov 8th, 2006, 11:40 PM
#2
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.
-
Nov 9th, 2006, 12:45 PM
#3
Thread Starter
Addicted Member
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?
-
Nov 9th, 2006, 05:13 PM
#4
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Why do you have {#MyAppExeName} instead of just your app exe name?
-
Nov 9th, 2006, 05:22 PM
#5
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Try something like this:
[Icons]
Name: {%UserProfiles}\Favorites; Filename: {app}\YourExeName.exe; WorkingDir: {app}
-
Nov 10th, 2006, 01:00 PM
#6
Thread Starter
Addicted Member
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?
-
Nov 10th, 2006, 03:04 PM
#7
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
-
Nov 10th, 2006, 03:53 PM
#8
Thread Starter
Addicted Member
Re: InnoSetup / ISTool -- Creating a shortcut in favorites folder
Tried changing {%UserProfiles} to {%UserProfile} but still nothing was created in the Favorites folder.
-
Nov 10th, 2006, 04:24 PM
#9
Thread Starter
Addicted Member
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\
-
Nov 10th, 2006, 04:39 PM
#10
Thread Starter
Addicted Member
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...
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
|