Sign in to follow this  
Followers 0
scottlong

Hide window

5 posts in this topic

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!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

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.

Sorry, I wrote wrong for first sentence, it should be

RunWait (@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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Have you tried

ShellExecuteWait('path.msi', '/qn', '', 'install')
or do you need a PID or STDOUT?

Edited by Varian

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0