Chilli24
10th February 2005 09:47 UTC
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 ?
Chilli24
10th February 2005 09:57 UTC
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 ?
flizebogen
10th February 2005 10:07 UTC
Try the following code:
InitPluginsDir
SetOutPath $PluginsDir
File "my reg file.reg"
Exec 'regedit /s "$PLUGINSDIR\my reg file.reg"'
Chilli24
10th February 2005 10:17 UTC
Thanks. It works.