Quantcast
Channel: VMware Communities : Popular Discussions - VMware ThinApp: Discussion Forum
Viewing all articles
Browse latest Browse all 57744

Stop child process on exit of parent

$
0
0

Hi,

 

I'm struggling with my Office 2010 ThinApp and have come to the point where I need kill some child processes spawned.

 

The situation;

- user tries to save a document to a webservice (SharePoint)

- office launches Microsoft Office Upload Center and uploads the file - all is well

- user closes all office applications - problem!

 

The sandboxes won't close properly since the Upload Center is still running... this apparently is two files (MSOSYNC.EXE and MSOUC.EXE).

 

So I try to make a script to kill these two process OnFirstParentExit... but either the script is not running or it's getting confused by the fact that the upload center process "inherits" the name of the Parent. I.e. if Word.exe started and launched the Upload Center then it will spawn a Word.exe process instead of the "expected" MSOUC.EXE. Now, I can't kill Word.exe because it could be Excel doing the upload job, and I can't kill ALL Office entry points because while the user would maybe exit Word he could still want Excel up and running... makes sense?

 

Is there anyway to actually stop the process I want? (I.e. get it's "proper" name or even taskid without playing around manually with tasklist and taskkill?

 

(I'm currently using ThinApp 4.6.1 on Windows XP SP3)


Viewing all articles
Browse latest Browse all 57744

Trending Articles