Skip to content
⌘ NSIS Forum Archive

Setting a Registry Value

2 posts

MikeInVancouver#

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
Anders#

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