MSFN Forum: AutoIt problem with Run (..) - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AutoIt problem with Run (..) Run("acdsee.msi TRANSFORMS=acd.mst /qr") Rate Topic: -----

#1 User is offline   Srowi 

  • Group: Members
  • Posts: 7
  • Joined: 24-July 04

Posted 15 September 2005 - 07:21 AM

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!


#2 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 15 September 2005 - 08:20 AM

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

#3 User is offline   nakira 

  • Member
  • PipPip
  • Group: Members
  • Posts: 118
  • Joined: 18-July 04

Posted 15 September 2005 - 08:22 AM

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

#4 User is offline   Srowi 

  • Group: Members
  • Posts: 7
  • Joined: 24-July 04

Posted 15 September 2005 - 08:36 AM

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.

This post has been edited by Srowi: 15 September 2005 - 08:36 AM


#5 User is offline   seapagan 

  • Member
  • PipPip
  • Group: Members
  • Posts: 229
  • Joined: 09-March 04

Posted 15 September 2005 - 09:28 AM

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

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy