Archive: Writing quotes into registry


Writing quotes into registry
I noticed in this thread:
http://forums.winamp.com/showthread....+delete+folder

That a suggestion for writing quotes into the registry is:


WriteRegStr HKCR "myFile\shell\open\command" "" '"$INSTDIR\myprog.exe" "%1"'


Here is how it is a more proper method that I've found:

WriteRegStr HKCR "myFile\shell\open\command" "" "$\"$INSTDIR\myprog.exe$\" $\"%1$\""


Just thought I'd mention that to all the NSIS users out there. I've also noticed that it is not in the NSIS help documentation (Windows Help File) in the variables section. I think it should be added.
SAM

Here is how it is a more proper method that I've found:
Do you mind explain us regarding to what is more proper this method?


Just thought I'd mention that to all the NSIS users out there. I've also noticed that it is not in the NSIS help documentation (Windows Help File) in the variables section. I think it should be added
Be aware before you celebrate that you discovered America, that you have read the documentation thoroughly :-)
See NSIS manual 4.2.4 Constants Used in Strings.