IISMAJORVERSION and IISMINORVERSION are set despite IIS being removed
问题 I'm creating an installer that has a dependency on IIS being installed. To test I'm using a virtual machine running Windows Server 2008 R2 which has the web server role installed. My installer checks whether IIS is installed using this conditional; <PropertyRef Id="IISMAJORVERSION" /> <PropertyRef Id="IISMINORVERSION" /> <Condition Message="Install requires IIS version 7.5 or later"> <![CDATA[Installed OR (IISMAJORVERSION AND ((IISMAJORVERSION = "#7" AND IISMINORVERSION >= "#5") OR