Skip to content
⌘ NSIS Forum Archive

why

4 posts

Chadwick#

why

hey i was told that this line generates and error

ExecShell $INSTDIR\regkeyadd.reg

anyone know why?
Joost Verburg#
You should add a command like "open". See the documentation.

I recommend you to use WriteRegStr etc.
Chadwick#
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Program"="c:\\myprogram.exe"

what is that in a "WriteRegStr" form ?
Joost Verburg#
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "Program" "c:\\myprogram.exe"