Jump to content

Hide window


 Share

Recommended Posts

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

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

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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...