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!
File associating problem
4 posts
MyPrgram is not MyProgram
Space before %1 and some other corrections
WriteRegStr HKCR "MyProgram.exe\shell\open\command" "" '"$INSTDIR\bin\Myprogram.exe" %1'
WriteRegStr HKCR "MyProgram.exe\shell" "" "open"
line may be skipped I guess
Space before %1 and some other corrections
WriteRegStr HKCR "MyProgram.exe\shell\open\command" "" '"$INSTDIR\bin\Myprogram.exe" %1'
WriteRegStr HKCR "MyProgram.exe\shell" "" "open"
line may be skipped I guess
I made those changes, but still not working, i wonder if you actually have to add more stuff when it comes to image files??
Any ideas?
Any ideas?
Solved! thanks!! it was actually the space between the exe file and the %1
thanks!!
thanks!!