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.