Archive: Registry key creation problem?


Registry key creation problem?
I am making my installer write a couple of extra registry keys for file associations. There is a problem writing one key. I want the key's data look like this:

C:\Program Files\My Program\MyProgram.exe "%L"

So I use this code:

WriteRegStr HKCR "TVC\shell\open\command" "" "$INSTDIR\Webbrowser.exe "%L""

But the fact that the key's data contains a pair of ", it counts as a fifth argument, which gives an error.

How do I make my installer write a couple quote marks in the data of the key?


Never mind, I just figured it out