msi: Use an INSTALLSTATE variable to track install state of classes and extensions.