scottlong Posted September 6, 2010 Posted September 6, 2010 I install a .msi file via RunWait (@ComSpec & " /c msiexec path.msi /i /qb", @SW_HIDE) then run it, it can hide DOS window, but after some seconds, system popup another installation window, show installation progress. I want to know how to hide this window also? Thanks for your help!
Varian Posted September 6, 2010 Posted September 6, 2010 From http://support.microsoft.com/kb/227091: /q n|b|r|f ~ Sets the UI level. q , qn - No UI. qb - Basic UI. qr - Reduced UI. A modal dialog box is displayed at the end of the installation. qf - Full UI. A modal dialog box is displayed at the end of the installation. qn+ - No UI. However, a modal dialog box is displayed at the end of the installation. qb+ - Basic UI. A modal dialog box is displayed at the end of the installation. If you cancel the installation, a modal dialog box is not displayed. qb- - Basic UI with no modal dialog boxes. The "/qb+-" switch is not a supported UI level.
wakillon Posted September 6, 2010 Posted September 6, 2010 I install a .msi file via RunWait (@ComSpec & " /c msiexec path.msi /i /qb", @SW_HIDE) then run it, it can hide DOS window, but after some seconds, system popup another installation window, show installation progress. I want to know how to hide this window also? Thanks for your help! Try $_MsiPath = @ScriptDir & '\File.msi' RunWait ( 'msiexec /i "' & $_MsiPath & '" /qn /Quiet /NoRestart' ) AutoIt 3.3.18.0 X86 - SciTE 5.5.7 - WIN 11 24H2 X64 - Other Examples Scripts
scottlong Posted September 6, 2010 Author Posted September 6, 2010 From http://support.microsoft.com/kb/227091:/q n|b|r|f ~ Sets the UI level.q , qn - No UI.qb - Basic UI.qr - Reduced UI. A modaldialog box is displayedat the end of theinstallation.qf - Full UI. A modaldialog box is displayedat the end of theinstallation.qn+ - No UI. However, amodal dialog box isdisplayed at the end ofthe installation.qb+ - Basic UI. A modaldialog box is displayedat the end of theinstallation. If youcancel the installation,a modal dialog box isnot displayed.qb- - Basic UI with nomodal dialog boxes.The "/qb+-" switchis not a supported UIlevel.Sorry, I wrote wrong for first sentence, it should beRunWait (@ComSpec & " /c msiexec path.msi /i /qn", @SW_HIDE)qn - no UI, but the UI still popup after some seconds, It seems after executing msiexec, then loading anther process.
Varian Posted September 6, 2010 Posted September 6, 2010 (edited) Have you triedShellExecuteWait('path.msi', '/qn', '', 'install')or do you need a PID or STDOUT? Edited September 6, 2010 by Varian
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now