Installation of Second Scan Engine fails

Problem

The installation of the second scan engine will fail because the installer does an IIS check.

Environment:
SQL server
Primary Scan engine with IIS installed.
Secondary scan engine (Services only)


Expected Behaviour:
When installing second scan engine with services only installation completes successfully.
Actual Behaviour:
When installing second scan engine:
Prerequisites checker passes, installation fails with non descriptive error. See screenshot below.
No usable issue stored in the context, unable to resolve filename 'screenshot.PNG'
Repro:
Install a scan engine with UI and DB (Any SE and DB configuration)
Build a second scan engine VM with no iis just Scan engine prerequisites.
Start the installer.
Select custom install
Remove UI from the list of installation items
Provide DB credentials and host name
Test the connection
Upon successful connection proceed to the next step
Verify all the prerequisites are matched proceed to the next step
Provide existing encryption key
Start the install
Installation should fail.


Solution

Navigate to Server Manager,

Add Roles and Features Wizard, under Server Roles, select Web Server (IIS)  and Install.

Once installed

Start the installer.

Select custom install

Remove UI from the list of installation items

Provide DB credentials and host name

Test the connection

Upon successful connection proceed to the next step

Verify all the prerequisites are matched proceed to the next step

Provide existing encryption key

Start the install to complete.