Micheal
Posts: 7
Joined: Fri Mar 10, 2006 12:29 pm

If any feature/features not selected throw an error message

Hi,

I created some features
feature 1,
feature 2 and etc. At the time installation while selecting Typical installation installer will prompt for feature selection, I want throw an error message if none of the feature is selected. Is there any option for this. If not how to achieve it.


Thanks in Advance,
Micheal
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Micheal,

This can be done with a custom action like this:

In the "Custom Actions" page add a new "Error Message" custom action under "InstallExecuteSequence->InstallValidate". Use folowing option for the custom action:
Message Text: The installation cannot continue if you don't have at least one feature selected!
Execution Condition: (Not Installed) AND ((NOT (&MainFeature = 3)) AND (NOT (&Feature = 3)))

This example is for two features where MainFeature and Feature are the package features. You need to modify the custom action execution condition to fit your needs.

Hope this helps.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Micheal
Posts: 7
Joined: Fri Mar 10, 2006 12:29 pm

Thanks a lot and that solved my problem.

Return to “Common Problems”