File association problem
Hi
I'm stucked with file association which doesn't want to worrk.
Here's the code i'm using :
!define EXT "myext"
!define CODE "myapp"
WriteRegStr HKCR ".${EXT}" "" "${CODE}.Script"
WriteRegStr HKCR "${CODE}.Script" "" "${CODE} Script"
WriteRegStr HKCR "${CODE}.Script\DefaultIcon" "" "$INSTDIR\icon1_doc.ico,0"
WriteRegStr HKCR "${CODE}.Script\shell" "" "open"
WriteRegStr HKCR "${CODE}.Script\shell\open\command" "" '$INSTDIR\${CODE}.exe "%1"'
System::Call 'Shell32::SHChangeNotify(i ${SHCNE_ASSOCCHANGED}, i ${SHCNF_IDLIST}, i 0, i 0)'
The files are not associated, nor the icon.
The keys are correctly written on the registry, but it looks like windows (vista) doesn't care
I tried to reboot the computer, it doesn't change anything.
What am i doing wrong?
thanks for your help