jorgeltx
Posts: 10
Joined: Tue Sep 09, 2008 6:30 pm

Install CHAINED Package when needed

We built an MSI package which installs several other Chained packages. To improve the user experience, we associated a Feature with each Chained package allowing the user to choose which Chained package to install. (Customize/Modify). The exercise has an adverse effect which we need your help to overcome.

Our configuration allows the user to go to Programs/Features and modify the configuration of the package. If a previously installed feature is removed, the uninstall process also uninstalls the associated Chained package.

If the user chooses to install a feature (it’s associated chained packaged is not installed), the components associated with the feature (registry entries, files) are installed but the associated chained package fails to installs. Close examination of the log files indicates that MSI is attempting to reinstall the chained package instead of installing it.

Is there a method/PROPERTY we can use to force a chained package to install at a later time when the user decides to modify the package configuration?

Thanks

JL
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install CHAINED Package when needed

Hi,

Unfortunately this is not supported by Advanced Installer. However, I added this improvement on our TODO list and it will be available in a future version. Thank you for your suggestion.
I'm afraid that currently there are no workarounds.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Install CHAINED Package when needed

Hi,

This can be done by changing the conditions of the chained package to use the associated feature. For example, if the feature associated with the chained install has the identifier "Feature", the install condition would be:

Code: Select all

((&Feature = 3) AND NOT (!Feature = 3))
and the uninstall condition would be:

Code: Select all

((&Feature = 2) AND (!Feature = 3)) 
This way the chained package should be installed when the feature is installed and uninstalled when the feature is uninstalled.

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

Return to “Common Problems”