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!

anhnn123

need help?

I'd like to be able to collect the return code from an executable launched from a custom action into a property. Is this possible?

Thanks,
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: need help?

Hello,

The only way to do that is to set the related Properties right from your custom action code implementation code.

Please note that you can't set a Property from a .EXE Cusom Action. Also, please bare in mind that the .EXE custom actions must return a value of "0" in order to succeed, otherwise the installer will interpret it as a failure.

As a workaround for this, you can create your .EXE custom action as a DLL file using our "How to integrate and debug custom actions" tutorial.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”