I'm using Inno Setup, and I need to install a third-party driver. Everything is OK, except that this third-party installation program asks to restart the machine, before my installation script terminate.
Example: I need to install two drivers, the second need the first installed, but the first driver needs to restart the machine.
[Run]
Filename: "FirstDriver.msi"; Flags: shellexec waituntilterminated;
Filename: "SecondDriver.msi"; Flags: shellexec waituntilterminated;
I'd like to restart only my installation is complete. How can I do it?
The solution that worked for me was:
Filename: "{sys}\msiexec.exe"; Parameters: "/package ""{app}\FirstDriver.msi"" /qn /norestart /passive"; Flags: shellexec waituntilterminated; Check: not Is64BitInstallMode; StatusMsg: "Installing my First Driver";
I needed to specify that directory of msiexec.exe to work, using the constant {sys}, to get msiexec.exe from System folder.
Try calling the third-party installers with the /norestart command-line argument:
[Run]
Filename: "FirstDriver.msi"; Parameters: /norestart; Flags: shellexec waituntilterminated;
Filename: "SecondDriver.msi"; Parameters: /norestart; Flags: shellexec waituntilterminated;
Edit
See this question for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With