Jump to content
Sign in to follow this  
loup001

Using AutoIt to run installation MSI

Recommended Posts

loup001

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?

Share this post


Link to post
Share on other sites
Exit

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")


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
loup001

Wow - "That was easy" and thanks!!

Share this post


Link to post
Share on other sites
JLogan3o13

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')

√-1 2^3 ∑ π, and it was delicious!

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  

×