run exe custom launch condition - Advanced Installer Community

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!

RandomName
Posts: 8
Joined: Thu Aug 20, 2009 7:23 am

run exe custom launch condition

I'm trying to run a temporary exe in the installer and check the result to for a custom launch condition. I've tried running a custom action and getting the result, but the temporary file doesn't exist yet. I've tried running as an attached custom action, but there's no way to check the return code.

Any suggestions to make this work?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: run exe custom launch condition

Hi,

Unfortunately custom action return codes cannot be handled manually. This is a Windows Installer limitation. However, you can try this approach:
- create a custom action which launches the EXE, checks it's return code and sets it in an installer property
- add the custom action after the "InstallUISequence" -> "MigrateFeatureStates" standard action so it runs after the temporary files are extracted

For this custom action you can try using a C++ DLL or VBScript.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”