Here is another query
I have an application with just single feature , containing 30 components. I wish to install just 2 of them. I made use of the following command line to do so
Msiexec /i Something.msi COMPADDLOCAL={COMP1GUID},{COMP2GUID} /qb ALLUSERS=1
What followed next, the complete feature got installed. very opposite to my requirement. Also what i did to prevent the complete feature from getting installed was to change the feature level and make it more than INSTALLLEVEL, but even that didnt work. Any ideas, on what approach should i follow to achive my objective

Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



It won't work because the components belong to only 1 feature. 2 of the possible ways to achieve what you want:

1. Create another feature and put those 2 components that you want. Disable the other feature with 28 components.

2. Put a condition on each components that will be resolved with a property during installs. Up to you to decide how you gonna do it.

Be sure to test!!!

Answered 05/08/2013 by: dj_xest
Fifth Degree Black Belt

Please log in to comment

The installer uses this list to determine which features are set to be installed locally, based on the specified components. For each listed component ID, the installer examines all features linked to that component through the FeatureComponent table, and installs the feature that requires the least amount of disk space to install.

Answered 05/08/2013 by: jagadeish
Red Belt

  • Thanks Jagadeish and dj_Xest. Although i had some idea on creating a separate feature for two component.but wanted to achieve the same functionality with single feature. Anyways , thanks guys
Please log in to comment