App-V showing 100% when closed
Hi All
i have sequenced an application using 4.6sp1 of the microsoft virtualisation app v sequencer, i have a program where when you close it it leaves a process in the system tray and a box also stays in the system tray, when you right click on this box and close it yourself it then goes to 0%
is there a way to kill this process off as well? otherwise when users click close, they will assume its closed and it hasn't really, its still in the system tray
thanks
Chris
Answers (3)
write this in after Post shutdown script :
taskkill /f "application exe name"
e.g. taskkill /f notepad.exe
or you can also run vbs
just change name from notepad.exe to your one.
************************************************
On error Resume next
Set WshShell = WScript.CreateObject("WScript.Shell")
Set oWmi = GetObject("winmgmts:")
'Get the process
sWmiq = "select * from Win32_Process where name='notepad.exe'"
Set oQResult = oWmi.Execquery(sWmiq)
'Kill all Processes
For Each oProcess In oQResult
iRet = oProcess.Terminate(1)
Next
************************************************