File associating problem
Here the piece of code i have on my script, but for some reason is not working, I've read all the posts, etc...and i cant figure out why it is.
WriteRegStr HKCR ".psd" "" "MyProgram.exe"
WriteRegStr HKCR "MyProgram.exe" "" "My Program File"
WriteRegStr HKCR "MyProgram.exe\DefaultIcon" "" "$INSTDIR\bin\MyProgram.exe,1"
WriteRegStr HKCR "MyProgram.exe\shell" "" "open"
WriteRegStr HKCR "MyPrgram.exe\shell\open\command" "" '$INSTDIR\bin\Myprogram.exe"%1"'
I have another photo editing program wich works with file associating, but its adding this line in the registry:
PersistentHandler and then some hexadec string.
thanks!