Archive: Executing .reg files in silent mode


Executing .reg files in silent mode
How can I execute a .reg file during the installation process without the user seeing any pop-up windows ?
The only command that worked to execute the .reg file was ExecShell "" "$INSTDIR\${file_name50}" but this displays pop-up windows.
I want the user not to see any windows. (I don't want my entire setup to run in silent mode).
I've tried:
nsExec::Exec "$INSTDIR\${file_name50}"
nsExec::ExecToLog "$INSTDIR\${file_name50}"
None worked. What is the solution ?


I've tried also
ExecShell "" "$INSTDIR\${file_name50}" SW_HIDE
but the thing is that the pop-up window that appears ask the user if he really wants to update the reigstry.
What parameter should I use to tell the window to automatically choose YES and not display any windows ?


Try the following code:


InitPluginsDir
SetOutPath $PluginsDir
File "my reg file.reg"
Exec 'regedit /s "$PLUGINSDIR\my reg file.reg"'

Thanks. It works.