Archive: CreateShortcut icons problem won't resolve with shell updating


CreateShortcut icons problem won't resolve with shell updating
When I for example try to create the following shortcut:
CreateShortCut "$DESKTOP\BattlesofNorghan.lnk" "$INSTDIR\BattlesofNorghan.exe" "" "$INSTDIR\BattlesofNorghan.exe" 2 SW_SHOWNORMAL "" "Play Battles of Norghan"

The .exe file has an integrated icon which it will display if you go manually select the icon for the shortcut. But it doesn't display the icon automatically?

Executing this line on the same Section after the creatition of the shortcut did no good:
;System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'

(I had these defined:
!define SHCNE_ASSOCCHANGED 0x8000000
!define SHCNF_IDLIST 0)


and you are sure BattlesofNorghan.exe contains atleast 3 icons


Umh, no, it contains only one icon?
So what must I do to fix this?


well, u have specified icon index 2
try: CreateShortCut "$DESKTOP\BattlesofNorghan.lnk" "$INSTDIR\BattlesofNorghan.exe" "" "$INSTDIR\BattlesofNorghan.exe" 0 SW_SHOWNORMAL "" "Play Battles of Norghan"


doh, thanks ^^