We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

nickbkeith
Posts: 3
Joined: Thu Apr 09, 2015 10:12 pm

Batch file custom action hangs

Hey all,

I have created an MSI package that calls for a custom action to run a batch file after the installation. The batch file calls up 3 separate EXEs. The first one goes with no problem, but then during the second it freezes. When I close out of the command box I get a dialogue box that states "There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor". When I hit OK the second EXE then begins to run and does so successfully. However I am then prompted that the Setup Wizard ended prematurely.

Any ideas?

Thanks in advance.
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: Batch file custom action hangs

Hello,

Please keep in mind that two MSI packages cannot run at the same time (in your case it is the main package and any other .exe package that you have added).
Every time you want to embed an MSI-based package into another MSI package, you should use the Prerequisites feature. For more details about how to add a prerequisite in your package you can take a look on the Add Prerequisite tutorial.

So, for your specific scenario, you can go in the Prerequisites page, add the "setup.exe" file in the "Feature-based" folder, then go in the "Setup Files" tab of your prerequisite and write the "/qn" argument in all three "Install Command Lines" fields. In this case you don't need to add the "setup.exe" file in a temporary folder because it will be embedded in the main MSI package.

However, please keep in mind that as mentioned at the bottom of the Prerequisite Setup Files Tab article, if the Professional version of Advanced Installer is used, a prerequisite can be installed in silent mode only if the main package is installed with Full UI, otherwise you will need an Enterprise or Architect version.

Just let us know if you have any other question.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”