Installing Selected Features of MSI with ADDLOCAL Property

Installing Selected Features of MSI with ADDLOCAL Property
umara's picture

Many times we have to customize the installation of vendor MSI, by selecting complete, typical or customize installation of the package. This will install particular features when selected. If we add another feature, it may not install, and we cannot see the files and registries added by the component present in this feature.

Using Custom Action:

Check for the custom action which is installing selected features and edit to add the feature.

Edit the custom Acton to add New Feature

Using Property:

Take log at the time of installing Vendor Msi. Search the log for ADDLOCAL property. Create new property "ADDLOCAL" in property table. Put the values displayed in the log file in addition to the feature that we want to install.

Note: This will generate ICE87 warning.
3.31818
Average: 3.3 (22 votes)

FeatureLevel

blacklisted_packager's picture

Why not use the featurelevel and instead altogether comment the custom action ?

I Agree, but

piyushnasa's picture

Yup, I agree with you that we can do this by setting the feature levels and it should work fine. But if there is already a Custom Action present which is installing the given number of features, then instead of modifying the vendor MSI, it will be the best to modify the Custom Action. And it will take less effort in cast the number of features to be installed are a lot.

Um

looeee's picture

You get the ice87 error becuse you are not supposed to hardcode ADDLOCAL in the Property Table. It will be forcing those features to be installed at repair-time and I'm sure that it can't be healthy at uninstall-time.

The condition on your customaction will force the features to be installed at repair-time. It should be "not Installed"

Also, yes, it is more usual to modify features in the Feature Table by changing their Level but the Custom Action solution should work well enough

looeee

thank god..

blacklisted_packager's picture

Atlast someone got the point i was trying to make.
Thanks Loee!!!

ADDLOCAL property in Command line

piyushnasa's picture

It is always better to use ADDDLOCAL property in Command line while installation of MSI, rather than changing the feature levels everytime. Suppose you have to deliver the MSI to a different departments in an organization, who require different features of MSI, it is easier to do that with ADDLOCAAL property rather than changing InstallLevels for all departments and making numerous mst's.