Hi Ofer,
Here is the JScript version of the code:
var objService = GetObject("winmgmts:");
var objSoftware = objService.Get("Win32_Product");
var errReturn = objSoftware.Install("<InstallerPackage.msi>", "", true);
if (errReturn == 0)
Log.Message("Installation completed");
else
Log.Message("Installation failed");
Also, you can use the code below to run your msi file via the command line in your script:
var WshShell = new ActiveXObject("WScript.Shell"); //Creates the WScript.Shell object
WshShell.Run("msiexec.exe /i" + "<InstallerPackage.msi>"); //Installs the msi package via the command line