Click on the prerequisites link and in the right hand window under predefined launch conditions, click the IIS checkbox, and set your minimum install level. For Win2k8 and above, I found that the check function doesn't work, since WAS is installed, and adds the IIS files, so AI thinks IIS is installed, even if it isn't defined as a role. They are going to add another check (I hope), to a future version.
Below are steps you can use (thanks to Bogdan) to check for Win2k8 and Win7, to determine if IIS is installed there. This should work for XP and Win2k3, based on this REG key that I use:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\DisplayName\
If that key is there, IIS is installed as a role, and active.
Hope this helps.
For the moment you can also use this registry key as follows:
-- create a registry search from the Search page for the key you've specified
-- save the .aip file
-- open the .aip file with a text editor (Notepad++ for example) and edit this line:
<ROW Condition="AI_IISSEARCH OR AI_IISSEARCH_EX"
Description="[ProductName] cannot be installed on systems with Internet Information Services version smaller than [AI_MINIISVERSION]"
DescriptionLocId="AI.LaunchCondition.IIS" IsPredefined="true"
Builds="DefaultBuild"/>
-- set the parameter "Condition" to the following value:
"AI_IISSEARCH OR AI_IISSEARCH_EX OR CUSTOM_SEARCH"
-- assuming that "CUSTOM_SEARCH" is the name of your search (the one that looks for the registry key)
-- save the .aip file
-- open it with Advanced Installer and rebuild the package
Now your custom launch condition should also check for the registry entry.
FOLLOW US
Get the latest news in Application Packaging