Installed build from source fails with Unhandled Exception


I am having trouble making an installed build from the Unreal Engine 4.18 from source.
It worked on one machine and now I am trying to do the same thing on another machine and it fails.

I am running the command:

RunUAT.bat BuildGraph -target="Make Installed Build Win64" -script=Engine/Build/InstalledEngineBuild.xml -clean -set:HostPlatformOnly=true

The InstalledEngineBuild.xml is unmodified.

My specs are:
Windows 10,
Visual Studio 2017 (I tried 2015 as well)

Here is the output:

Any help would be greatly apreciated!

After days of trying to solve this, the only solution was a fresh Windows installation. The issue must have been something with my Visual Studio or WindowsSDK configuration.