Is there a way to parse out of the ADDLOCAL in a custom action inside the MSI to check the features that were specific to see if they exist before this error is generated?

Question

Is there a way to parse out of the ADDLOCAL in a custom action inside the MSI to check the features that were specific to see if they exist before this error is generated?

I have a problem where a user enters a features on the command line (this populating ADDLOCAL) but they type it in wrong.

Windows Installer generates a cryptic 2711 error which leaves the under scratching their head.

Answer

Perform your evaluation via custom action before the CostInitialize action.

Content credit also belongs to

[Author: Robert Flaming]

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at https://www.microsoft.com/info/cpyright.htm.