Skip to content
⌘ NSIS Forum Archive

Writing quotes into registry

2 posts

sag47#

Writing quotes into registry

I noticed in this thread:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


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
Red Wine#
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.