GFORCE100
23rd November 2004 01:15 UTC
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,
Anders
23rd November 2004 05:01 UTC
u forgot the parameter argument
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0
GFORCE100
23rd November 2004 20:16 UTC
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?
deritrus
23rd November 2004 20:32 UTC
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.
GFORCE100
23rd November 2004 20:46 UTC
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 :(