Receive values in installer from custom action Exe - 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!

ramit
Posts: 90
Joined: Thu Dec 18, 2008 11:51 am

Receive values in installer from custom action Exe

Hi

I am creating installer in Advance Installer 6.3 version. In my installer I am running an exe which is a .Net Consol Application as custom action.

I want to return some values (Array) from that Exe to installer, my question is how I can receive these values in Installer and on the basis of that I want to perform some operation in installer.

Please help.

Thanks
Amit
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Receive values in installer from custom action Exe

Hello,

I am afraid .EXEs do not support this behavior. The return value of an EXE can be:
- 0, in which case the EXE custom action is considered to have finished successfully
- non zero in which case the the EXE custom action is considered to have failed

Your custom action needs to be a .dll or a .vbs in order to pass data back to the installer. They do not pass data through return codes. Here is how a property is set through a vbscript:

Code: Select all

Session.Property("MYPROPERTY") = "my value"
Whereas in C/C++ you set a property using the MsiSetProperty function.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”