KIll the browser window after it launches another browser window in IE using the following vbscript:
----------------------------------------------------------------------------
Set oShell = CreateObject("WScript.Shell")
If oShell.AppActivate("type the IE window title you want to close here") Then
WScript.Sleep 500
oShell.SendKeys "%{F4}"
End If
----------------------------------------------------------------------------
place the path of the vbscript in the OSD file in the following XML tag:
DEPENDENCY> <SCRIPT EVENT="LAUNCH" TIMING="POST" PROTECT="TRUE" WAIT="TRUE"> <SCRIPTBODY>
type the name or path to the script here eg. killtask.vbs </SCRIPTBODY> </SCRIPT> </DEPENDENCY>
After you launch the appv package, the vbs script will kick in and kill the browser window you defined in the vbscript.
Job done :)
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.