Archive: Setting a Registry Value


Setting a Registry Value
I am trying to set a registry value during the installation.

I want to create the following entry

Name: (default)

Type: RG_SZ

Value: C:\Program Files\Test\Test.exe "%1"

I can get everything except for the "%1" at the end, any help would be appreciated.

Thanks in Advance,

Mike



WriteRegStr HKCU "software\foo" "" 'C:\Program Files\Test\Test.exe "%1"'

or

WriteRegStr HKCU "software\foo" "" "C:\Program Files\Test\Test.exe $\"%1$\""


You probably want to quote the path aswell