conditional component installation - 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!

BobM
Posts: 11
Joined: Tue Aug 22, 2006 9:05 am

conditional component installation

Hi,

I have components A and B that are displayed in the components dialog, and component C which is not displayed.

I want component C only to be installed if component B is installed.

I set the condition for C to be...
((!B = 3) AND NOT (&B = 2)) OR (&B = 3)

I would expect B to be installed only if the user selects B, but this does not work - C is not installed.

What is wrong with this?
Thanks
Bob
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

You are probably referring to features because components are not visible in dialogs.

To accomplish what you need you must organize your package into 3 features (A,B and C). To make the feature C install only when B is installed, simply drag C into B (make the feature C a child of feature B)

In the "Feature Properties" for C you check the "Follow Parent" checkbox and you set the "Display" field to "Not Displayed".

You can read more about components and features here:
http://msdn2.microsoft.com/en-us/library/aa372830.aspx
http://msdn2.microsoft.com/en-us/library/aa372840.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”