Option Explicit Const msiOpenDatabaseModeTransact = 1Dim argNum, argCount:argCount = Wscript.Arguments.Count Dim openMode : openMode = msiOpenDatabaseModeTransact ‘This script adds a type 51 custom action into a given MSI database that‘ensures the ARPINSTALLLOCATION property is set to the primary install location‘during…