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
File association problem
5 posts
i'm using vista64, could the problem comes from that?
Originally posted by mksoft_Classes keys are reflected between 32-bit and 64-bit registry so that should not be an issue, but you can try "SetRegView 64" to make sure.
i'm using vista64, could the problem comes from that?
PaR
it doesn't fix the problem
When you open regedit, does it show alongside with the other associated extensions? My guess would be permissions problem. Maybe HKCR is not writable in the context you're running.