Skip to content
⌘ NSIS Forum Archive

How to run a .reg file

7 posts

sandal1306#

How to run a .reg file

Hi all -

I'm currently trying to launch a .reg file.
I have used the ExecWait function, which is working fine with .exe, but does nothing with a .reg...

Any suggestion would be more than welcome.
Takhir#
Try ExecShell, NSIS User Manual, 4.9.1.3. But ExecShell not waits for operation to be complited. Another way - run regedit itself
ExecWait "regedit.exe your.reg"
sandal1306#
Joel -

WriteReg is fine when you do your stuff.
Here I'm using a reg file from another software and don't want to rewrite it in my code....

Kichik -
Thank you for the update I will try this function.