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: 6592
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”