Jump to content

AutoIt problem with Run (..)


Recommended Posts

Posted

hi,

i'm trying to automate the installation of some prog with AutoIt.

But i always get some error (i guess with the syntax):

Run ("progA.msi")

works fine, but while the follwing works fine on command line, it breaks the script:

Run ("progA.msi TRANSFORMS=progA.mst /qr")

doesn't work. Already tried quoting the mst, but didn't work. (all files in the same directory)

I already search for examples, but couldn't find anyting...

thx!


Posted

You cant apply a transform like that, you need to use 'msiexec' to run the msi file (good practice anyway).

This should work (untested, I dont use AutoIt)

Run ("msiexec.exe /i progA.msi TRANSFORMS=progA.mst /qr")

SP

Posted (edited)

Big THX!

works now.

Don't know where i saw it that way, but it always worked fine (even in RunOnceEx.cmd) except for the AutoIt-Script.

Edited by Srowi
Posted

You're welcome :)

It will work without the msiexec (generally) if you have no parameters, but it is always better to use the msiexec - maybe some system will not have the correct (or corrupted) file-associations (I know people that disable all assocs except for the critical ones) and so your installer would fail.

SP

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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