Archive: Icons are not displayed/updated after installation


Icons are not displayed/updated after installation
Hi,

when I create file associations in the registry and set the DefaultIcon key under the HKCR entries, it all works fine and the necessary registry keys are created just the way they should be.

But after the installation is completed, windows explorer and desktop do not update to display the new icons.

Does anybody know what could cause this?

Here are the keys i am writing (for extension .ext1):

HKCR ".ext1" "" "MyApp.EXT1"

HKCR "MyApp.EXT1" "" "MyApp File"
HKCR "MyApp.EXT1\DefaultIcon" "" "$INSTDIR\ext1.ico"
HKCR "MyApp.EXT1\shell" "" "open"
HKCR "MyApp.EXT1\shell\open" "" "&Open with MyApp"
HKCR "MyApp.EXT1\shell\open\command" ""
"$\"$INSTDIR\MyApp.exe$\" $\"%1$\""

Thanks in advance...


I dunno where i've seen this, Forum Thread or NSIS Archive Page. I didn't tested it.

!define SHCNE_ASSOCCHANGED 0x8000000
!define SHCNF_IDLIST 0

Section ""
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
SectionEnd


Hi flizebogen,

thanks alot... that saved my problem!!


god, what a morning...

i certainly meant "solved" my problem...