Removing a specific function with msiexec

I installed a test application that has two functions (FirstFeature and SecondFeature). I want to remove only one function (SecondFeature) from the application. I tried using the REMOVE property on the command line. Here is the command used to remove SecondFeature.

msiexec /x RemoveFeatures.msi REMOVE="SecondFeature" /L*V log.LOG 

But it removes the full application. The log file indicates that REMOVE = ALL is added by default. Here is the log file details.

MSI (s) (24: B4) [17: 39: 05: 231]: Command Line: REMOVE = SecondFeature REMOVE = ALL

MSI (s) (24: B4) [17: 39: 05: 231]: REAL ESTATE MODIFICATION: adding the REMOVE property. Its meaning is "SecondFeature".

MSI (s) (24: B4) [17: 39: 05: 231]: REAL ESTATE CHANGE: REMOVE property change. Its current value is "SecondFeature". Its new meaning is "EVERYTHING".

Indicates that the value of the REMOVE property is overridden during the uninstall process. Do I need to set any other property to remove a specific function?

Any help is appreciated. Thanks in advance.

+7
source share
1 answer

As you noted, / x to remove. Full (ALL) uninstall.

Although this may be intuitive, you want to make an installation that removes the function.

 msiexec /i RemoveFeatures.msi REMOVE="SecondFeature" /L*V log.LOG 

You can also add / qb or / qn to make it non-interactive / silent.

+9
source

All Articles