Makes use of the INSTALLSTATE enum, which can be found here - http://pinvoke.net/default.aspx/Enums.INSTALLSTATE