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.
Archive: How to run a .reg file
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.
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"
ExecWait "regedit.exe /s your.reg"
It works perfectly using calling regedit...
Thank you to both of you
You can also use Reg2NSIS
What's wrong with WriteReg* functions?
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.