set objShell = CreateObject("Wscript.shell")
Set objEnv = objShell.Environment("PROCESS")
' ********************************************************************************
'Main Routine
'*********************************************************************************
objEnv("SEE_MASK_NOZONECHECKS") = 1
objShell.Run("taskkill.exe /F /IM foo.exe"),,False
Install_Application()
objEnv.Remove("SEE_MASK_NOZONECHECKS")
WSCRIPT.QUIT
' ********************************************************************************
'Install Application
'*********************************************************************************
Function Install_Application()
'setup program
objShell.run("fooInstall.exe /silent"),1,true
Wscript.Sleep(5000)
End Function
No comments:
Post a Comment