install-MSInospaces.vbs

Option Explicit
 
Dim wshShell, strCmd, oEnv
 
Set wshShell = CreateObject("WScript.Shell")
 
Set oEnv = wshShell.Environment("PROCESS")
oEnv("SEE_MASK_NOZONECHECKS") = 1
 
wshShell.Run "msiexec /i \\SERVERNAME\pathwithnospaces\yourmsi.msi /qn /norestart", 0, True
 
oEnv.Remove("SEE_MASK_NOZONECHECKS")
Set oEnv = Nothing
Set wshShell = Nothing