Help - Search - Members - Calendar
Full Version: AutoIt problem with Run (..)
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
Srowi
hi,

i'm trying to automate the installation of some prog with AutoIt.
But i always get some error (i guess with the syntax):
CODE
Run ("progA.msi")

works fine, but while the follwing works fine on command line, it breaks the script:
CODE
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!
seapagan
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)
CODE
Run ("msiexec.exe /i progA.msi TRANSFORMS=progA.mst /qr")

SP
nakira
Run ("msiexec /i progA.msi TRANSFORMS=progA.mst /qr")
Srowi
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.
seapagan
You're welcome smile.gif

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




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.