Problem running msi-files?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
nowind
Newbie
Posts: 10
Joined: Thu Jul 10, 2008 11:51 am

Problem running msi-files?

Post by nowind » Mon Feb 22, 2010 9:02 pm

Hope someone can help, been searching an not found any clear answer.

RunProgram>D:\abc.msi (/qb) gives a error, error executing xxxxxx (-1)

ExecuteFile>D:\abc.msi is working fine, but I need to run several msi-files, and there is no wait command for executefile. It's no option to set Wait>##.....

Anyone who has a solution?

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Mon Feb 22, 2010 10:05 pm

I looked at file types information and found this under install.

"C:\WINDOWS\System32\msiexec.exe" /i "%1" %*

So my guess would be that you need to do:

RunProgram>C:\WINDOWS\System32\msiexec.exe /i D:\abc.msi

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Feb 23, 2010 5:09 am

You probably also want to include this line before you call the Run Program lines:

Let:RP_WAIT=1

This only needs to be set once, not before every instance, unless you set it back to 0 again after each Run Program command.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

nowind
Newbie
Posts: 10
Joined: Thu Jul 10, 2008 11:51 am

Post by nowind » Tue Feb 23, 2010 6:20 pm

Thanks JRL, this seems to work. I tried the msiexec.... too, but I must have done something wrong... :roll:

And Bob Hansen, I always use RP_WAIT=1, but I must have missed that I need this only once. Thanks!

:D

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts