Launch Condition: IIS Installed? |
The following demonstrates how an MSI could check to see if IIS is installed (checks for the existance of a particular registry value):
#( ;--- Look for a service registry value ---------------------------------- <$RegistryRead Property="IISINSTALLED4CONFIG" HKEY="LOCAL_MACHINE" KEY="SYSTEM\CurrentControlSet\Services\W3SVC" NAME="DisplayName" Condition="not Installed" Default="NoIIS" > #) #( <$AbortIf condition=^IISINSTALLED4CONFIG = "NoIIS"^ Message=^The install of "<$ProdInfo.ProductName>" version <$Productversion> can't continue as it requires IIS (and IIS isn't installed on this machine).^ Seq="AppSearch-" SeqTable="InstallUISequence InstallExecuteSequence" > #)