scottlong Posted September 6, 2010 Share 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! Link to comment Share on other sites More sharing options...
Varian Posted September 6, 2010 Share 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. Link to comment Share on other sites More sharing options...
wakillon Posted September 6, 2010 Share 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.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
scottlong Posted September 6, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
Varian Posted September 6, 2010 Share 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 Link to comment Share on other sites More sharing options...
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