Jump to content

Using AutoIt to run installation MSI


Recommended Posts

I have been using AutoIt for several years and I am stumped with this one.

Trying to script the installation of Quest client MSI using the below script and it works:

$RunMe = "c:\Program Files\Quest\QAgent.msi"

ShellExecuteWait("msiexec.exe", '/i "' & $RunMe)

The issues is that I want the installation to run quietly using either /q or /qn.

When I add "/qn" to the Shell command, the script does not run.

Can someone let me know how the SHELL command should look like to get the MSI to install quietly and with no UI?

Link to comment
Share on other sites

I have been using AutoIt for several years and I am stumped with this one.

Trying to script the installation of Quest client MSI using the below script and it works:

$RunMe = "c:\Program Files\Quest\QAgent.msi"

ShellExecuteWait("msiexec.exe", '/i "' & $RunMe)

The issues is that I want the installation to run quietly using either /q or /qn.

When I add "/qn" to the Shell command, the script does not run.

Can someone let me know how the SHELL command should look like to get the MSI to install quietly and with no UI?

$RunMe = "c:\Program Files\Quest\QAgent.msi"

ShellExecuteWait($RunMe, "/q")

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

  • Moderators

Hi, loup001. Is there a reason you need to define the MSI in a separate line? You can run it all on one line for efficiency:

ShellExecute("msiexec.exe", '/i "c:Program FilesQuestQAgent.msi" /qn')

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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...