You will need toChange:WHATEVERVARIABLE = WScript.CreateObject("WScript.Shell") To:WHATEVERVARIABLE = CreateObject("WScript.Shell") Due to:The installer runs script custom actions directly and does not use the Windows Script Host. The WScript object ...