Sign in to follow this  
Followers 0
Hui

How can I use run command to install a patch (.msp) within autoit?

4 posts in this topic

I tried to install an application's patch using autoit script, I use the following Run command:

Run ("\\teimage\apps\Engineering\Frick-CoolWare\CoolWare_v6_20_Patch_3.msp")

then I get an error "Unable execute the external program".

I check the Run command syntax, it seems only can run .exe, .com, .bat, .pif, so I was wondering if there is a way to run .msp file.

If any one can help, I would greatly appreciated.

Share this post


Link to post
Share on other sites



You can use the ShellExecute function shown at the bottom of this link.

i.e. like:

_ShellExecuteDllCall("\\teimage\apps\Engineering\Frick-CoolWare\CoolWare_v6_20_Patch_3.msp")

“Give a man a script; you have helped him for today. Teach a man to script; and you will not have to hear him whine for help.”AutoIt4UE - Custom AutoIt toolbar and wordfile for UltraEdit/UEStudio users.AutoIt Graphical Debugger - A graphical debugger for AutoIt.SimMetrics COM Wrapper - Calculate string similarity.

Share this post


Link to post
Share on other sites

Msiexec runs msp files:

RunWait('msiexec /update \\teimage\apps\Engineering\Frick-CoolWare\CoolWare_v6_20_Patch_3.msp')

Share this post


Link to post
Share on other sites

Msiexec runs msp files:

RunWait('msiexec /update \\teimage\apps\Engineering\Frick-CoolWare\CoolWare_v6_20_Patch_3.msp')

Thank you very much MHZ, this method works.

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