skywalker
Posts: 15
Joined: Mon Jul 17, 2017 12:34 pm

LaunchFile: msiexec in cmd

Hey,
I have a big xy.cmd that is launched with Custom Action -> LaunchFile
The problem is that he isn't installing a little program with the following line:
msiexec /i c:\xy.msi /qn

When I run this xy.cmd as admin then it works.

I tried it with "Run as Administrator" and "Run under the LocalSystem account..."
But the line is still not running.

Any suggestions?
I don't want it run sepperate.

thanks
Attachments
adminsetting.PNG
adminsetting.PNG (14.48 KiB) Viewed 3347 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: LaunchFile: msiexec in cmd

Hello,

Please note that there is a Windows Installer limitation that states that you cannot run two installation processes at the same time. The only workaround you could try would be to place this custom action after "Finish Execution" in Install Execution Stage and uncheck "Wait for custom action to finish before proceeding" and "Wait for return code at the end of the sequence" options for this custom action.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
skywalker
Posts: 15
Joined: Mon Jul 17, 2017 12:34 pm

Re: LaunchFile: msiexec in cmd

Well, this is now working with your advice.

thank you Sorin :)
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: LaunchFile: msiexec in cmd

Hello,

You are welcome. I'm glad that you've got things working.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”