Hello, plz help me, I search how to launch a reg silently?
How to do?
how to launch a reg silently?
5 posts
You can create Registry entry directly with NSIS commands WriteRegStr, WriteRegDWORD a.s.o. In Addition you can use Windows Regedit.exe
Use it this way:
Exec [Pathto]\Regedit.exe /S "name of reg file"
Use it this way:
Exec [Pathto]\Regedit.exe /S "name of reg file"
Example:
@echo off
ConsoleTool /HIDE
REGEDIT /S GetRight.reg
CHOICE.COM /N /CY /TY,4 >NUL
cd C:\Program Files\GetRight
Start GetRight.exe
cls
🙂
@echo off
ConsoleTool /HIDE
REGEDIT /S GetRight.reg
CHOICE.COM /N /CY /TY,4 >NUL
cd C:\Program Files\GetRight
Start GetRight.exe
cls
🙂
Note: choice is win9x only, and nsis has a sleep command (looks to me like you are waiting 4 seconds bfore launching GetRight)