"There is no script engine for file extension '.js'" message appears during installation

During a Microsoft Windows installation, if you receive a message that reads There is no script engine for file extension '.js', repair or reinstall the Windows Script Engine.

Symptoms

During installation, you receive a message that reads There is no script engine for file extension '.js'.

Causes

The Microsoft Windows Script Engine is not installed or is not operational.

Environment

Microsoft Windows

Diagnosing the problem

Open a command prompt window and enter the following command:
cscript myfile1.js

where myfile1 is the name of a new file.

If you receive the following message, there is a problem with the Windows Script Engine installation:
Input Error: There is no script engine for file extension ".js".

Resolving the problem

Repair or reinstall the Windows Script Engine. Refer to Microsoft documentation for more information. There are known problems with the Windows Script Engine that cause this error.