wixwindows-installer

How to avoid MSI install errors when ADDLOCAL contains a non-existant feature


We've got an MSI installer with a number of features. Over time features are added and removed as the underlying architecture changes or a feature becomes deprecated (perhaps it was only relevant on an older OS version).

At the same time we have automation that will run silent installs, passing ADDLOCAL on the command-line. Whenever we drop a feature in the MSI we have to also drop the feature name from the ADDLOCAL command-line argument otherwise the install will fail throwing:

Error 2711.The specified Feature name ('FOO') not found in Feature table.

Is there a way we can ignore these missing features such that our installs don't fail? This would give us more breathing room between when we drop a feature from our MSI and when we get around to updating the automation that runs the silent installs.

Thanks.


Solution

  • Nope. This falls into one of those "Don't do that" things.

    You could scan the MSI as part of your build and modify the command-line passed by your tool. That's probably the best option if you can't keep the tools up to date otherwise.