Srowi Posted September 15, 2005 Posted September 15, 2005 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!
seapagan Posted September 15, 2005 Posted September 15, 2005 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
nakira Posted September 15, 2005 Posted September 15, 2005 Run ("msiexec /i progA.msi TRANSFORMS=progA.mst /qr")
Srowi Posted September 15, 2005 Author Posted September 15, 2005 (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 September 15, 2005 by Srowi
seapagan Posted September 15, 2005 Posted September 15, 2005 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now