How to create a setup file that just enters registry keys?
I want to create a setup file that just sets some registry keys that are defined by the user. It doesn't have to install any files and it should do the same as this .reg-file:
---------------------------------------------
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts]
[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games]
[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Generals]
"Language"="english"
"InstallPath"=">>>>E:\\Generals\\<<<<"
"MapPackVersion"=dword:00010000
"Version"=dword:00010006
[HKEY_LOCAL_MACHINE\SOFTWARE\Electronic Arts\EA Games\Generals\ergc]
@=">>>>ENTER CD-KEY HERE<<<<"
---------------------------------------------
The user should change the values that are marked like this >>>>bla<<<<. The rest should just be written in the registry. I don't know how to create a plain registry-installer because NSIS always gives me an error when I try to enter the registry keys with the "WriteRegStr"-command:
Error: invalid script: never had OutFile command
Error - aborting creation process
And furthermore I have no idea how to create a user-prompt so that the user can change the 2 values I described above...