Archive: Quick launch icon


Quick launch icon
How would I get my program's icon to appear in the quickl launch area? I'm using the code below but the best I can get it to appear as ia the "unknown file type" Windows icon.

Tried:
CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "Data\Program.ico" 1

and

CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "Data\Program.ico" 0

I have Program.icon in the Data folder within the installer's folder. I am using just a standard icon, so I don't know the icon index. Isn't it 0 anyway?

Many thanks,


u forgot the parameter argument
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0


Originally posted by Anders
u forgot the parameter argument
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0
Just tried like you said and still doesn't work, the icon appears as the unknown file type standard Windows icon :(

Hmmmm

CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\${STARTMENU_LINK_APP_NAME}.exe" "" "Images\program.ico" 0

What could be going wrong?

CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\${STARTMENU_LINK_APP_NAME}.exe" "" "$INSTDIR\Images\program.ico" 0


Note the additional $INSTDIR in the icon file location. And make sure you install your "program.ico" using the File command.

Originally posted by deritrus
CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\${STARTMENU_LINK_APP_NAME}.exe" "" "$INSTDIR\Images\program.ico" 0


Note the additional $INSTDIR in the icon file location. And make sure you install your "program.ico" using the File command.
Thank you, works now. I don't know how installing it first slipped my mind :(