Skip to content
⌘ NSIS Forum Archive

how to launch a reg silently?

5 posts

atlas95#

how to launch a reg silently?

Hello, plz help me, I search how to launch a reg silently?
How to do?
flizebogen#
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"
war59312#
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

🙂
Anders#
Note: choice is win9x only, and nsis has a sleep command (looks to me like you are waiting 4 seconds bfore launching GetRight)