Install file on 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!

Dave C
Posts: 1
Joined: Fri Oct 22, 2010 12:07 pm

Install file on condition

Currently evaluating the enterprise licence and I was wondering if it was possible for the installer to run an exe that is part of the install package that returns a value (say zero or one) and then only install some files based on that return value.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Install file on condition

Hi Dave,

You cannot condition the installation of a file based on a return code of a custom action. What you can do is to set a condition based on the value of a public property. This is done in the Organization page.

You can set this public property from a VBScript or C++ DLL, not from an EXE. You can add the VBScript or DLL as a new attached custom action.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”