Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

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