Archive: why


why
hey i was told that this line generates and error

ExecShell $INSTDIR\regkeyadd.reg

anyone know why?


You should add a command like "open". See the documentation.

I recommend you to use WriteRegStr etc.


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"Program"="c:\\myprogram.exe"

what is that in a "WriteRegStr" form ?


WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Run" "Program" "c:\\myprogram.exe"