Set Icon to Shortcut
I Simply need to Place a Different Icon on
to the Shortcuts I make Other than what
it's Linked to.
How Do I do this With the Installer?
-MIchaelFlya-
Archive: Set Icon to Shortcut
Set Icon to Shortcut
I Simply need to Place a Different Icon on
to the Shortcuts I make Other than what
it's Linked to.
How Do I do this With the Installer?
-MIchaelFlya-
CreateShortcut
link.lnk target.file [parameters [icon.file [icon_index_number [start_options [keyboard_shortcut [description]]]]]]
It's all in the docs.
-Stu
Thanks !!!! Sometimes I Miss somethings.
-MichaelFlya-
Well I have that Working, but Set Hot Key is Getting
in my way. I want to say None. How do I tell it not
to set something for HotKey?
Actually I got it to work Without that, but When I
try and put a Description in it, It Complains about
HotKey if it Doesn't have one.
This is What I'm Using and it Works... I Decided to
add a Description and again that Hot Key is getting
in my Way. For now I just put a ; by it.
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\ProgramName.lnk" "$INSTDIR\ProgramExe" \
"" "$INSTDIR\ProgramIcon" 0 SW_SHOWMAXIMIZED ;"Description Here"
Just use empty quotes "" for parameters what you don't want to use.
Looks like you have backslash in wierd place if you ment that backslash for parameter put it into third quote. Notice that you don't need to set icon_index_number and start_options.
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\ProgramName.lnk"
"$INSTDIR\ProgramExe" "" "$INSTDIR\ProgramIcon" 0 SW_SHOWMAXIMIZED "" "Description Here"
This is not a comment against you Michael, but stop capitalising everything :) Just the start of sentences, the first person singular pronoun 'I' and names of things will do!
Thanks
(Sorry for nitpicking!)
I needed Start Options. Plus back slashes I thought
were for continuing a line of code on the next line.
Like the Example:
CreateDirectory "$SMPROGRAMS\My Company"
CreateShortCut "$SMPROGRAMS\My Company\My Program.lnk" "$INSTDIR\My Program.exe" \
"some command line parameters" "$INSTDIR\My Program.exe" 2 SW_SHOWNORMAL \
ALT|CTRL|SHIFT|F5 "a description"