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,
Quick launch icon
5 posts
u forgot the parameter argument
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0
Originally posted by AndersJust tried like you said and still doesn't work, the icon appears as the unknown file type standard Windows icon 🙁
u forgot the parameter argument
try: CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\{STARTMENU_LINK_APP_FILENAME}.exe" "" "Data\Program.ico" 0
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" 0Note the additional $INSTDIR in the icon file location. And make sure you install your "program.ico" using the File command.Originally posted by deritrusThank you, works now. I don't know how installing it first slipped my mind 🙁
Note the additional $INSTDIR in the icon file location. And make sure you install your "program.ico" using the File command.CreateShortCut "$QUICKLAUNCH\${STARTMENU_LINK_APP_NAME}.lnk" "$INSTDIR\${STARTMENU_LINK_APP_NAME}.exe" "" "$INSTDIR\Images\program.ico" 0