Help \ How to install and enable Internet Information Services (IIS)

Prerequisites

Internet Information Service (IIS) is installed with Windows, but is turned off by default. To enable / turn on IIS, go to "Control Panel \ Programs \ Programs and Features" and click "Turn Windows features on or off". Then check "Internet Information Services" and click OK.

Internet Information Services - IIS

Actual Installer allows you to configure your setup program to check and enable IIS. For this use Additional Prerequisites.

To check if IIS is enabled we need to check the file "%windir%\system32\inetsrv\InetMgr.exe". If it exists, IIS is enabled.

Note: Because of Windows subsystem WoW64, you need to add two prerequisites of IIS (one for 32-bit and second for 64-bit).

Go to General \ Prerequisites \ Additional Prerequisites and click Add:

Name: 		Internet Information Services (IIS)
Command: 	https://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/
Platform: 	32-bit
Condition: 	File Exists
Value 1: 	<SystemDir>\inetsrv\InetMgr.exe
Value 2: 

Name: 		Internet Information Services (IIS)
Command: 	https://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/
Platform: 	64-bit
Condition: 	File Exists
Value 1: 	<WindowsDir>\sysnative\inetsrv\InetMgr.exe
Value 2: 

So if this file doesn't exist, the setup program will show a user a message saying that IIS is not installed, and will prompt to install it (by opening a web page, e.g. https://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/), where described an instruction on how to turn on IIS.

Also, it is possible to enable / turn on Internet Information Services (IIS) via command-line. In the above example, in the Command field use:

<SystemDir>\cmd.exe /C start /w pkgmgr /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI

More info on how to enable all or specific components, click here.

Note that this command requires administrator rights, so your setup program must be launched with admin rights. To do it, set the "Install Product for" option to "All Users" (page General \ Parameters). Addiotinaly for the Modern theme select the option "Run as administrator" on the "Interface \ Main" page.


How to check if specific version of Internet Information Services (IIS) is used

Version of Internet Information Services is stored in the registry value "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\VersionString" (e.g. "Version 10.0"). To check this value use the following (in this example we check that IIS has a minimum version 10.0):

Name: 		Internet Information Services (IIS)
Command: 	https://www.howtogeek.com/112455/how-to-install-iis-8-on-windows-8/
Platform: 	Any
Condition: 	Registry Value Greater or Equal
Value 1: 	HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\VersionString
Value 2: 	10.0

Note: when comparing version numbers, the setup program discards non-numeric characters, so "Version 10.0" will be read as "10.0".