/build/static/layout/Breadcrumb_cap_w.png

Watch for running processes

I have created a package that installs a home grown plugin for Outlook. The package works great except my manager wants it to pop up a warning if outlook is currently running. My Question is how do I detect if the process is running from within the MSI and pause the installation until it is closed. I am currently using Wise package Studio 5.1 to create the package and using ZENWorks 3.2 to push the install

0 Comments   [ + ] Show comments

Answers (3)

Posted by: MSIPackager 19 years ago
3rd Degree Black Belt
0
Hi,

We had a similar situation when we repackaged Adobe Acrobat (PDF Author) - had to stop the acrotray.exe process during the uninstall. We used embedded vbscript in the execute deferred sequence after StartServices:

--------------
Set ProcessSet = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery("select * from Win32_Process")
ProcessName = "AcroTray.exe"
For Each Process In GetObject("winmgmts:{impersonationLevel=impersonate}!//localhost").ExecQuery("select * from Win32_Process where Name='" & ProcessName & "'")'
Process.Terminate
Next
--------------

Hope this helps,
Rob.
Posted by: ILikeStuff 19 years ago
Senior Yellow Belt
0
Thanks Rob.

I ended up writing an autoit script to pop up a dialog during the install Execute sequence that pauses the install until the user closes Outlook. I don't think a Partner would look too fondly upon us killing outlook if (s)he is in the middle of crafting a lengthy email. :)

Question, why did you stick the script in the execute deferred sequence?
Posted by: MSIPackager 19 years ago
3rd Degree Black Belt
0
OK I lied, just checked again and the custom action is in the Execute Immediate sequence, not Execute Deferred [:)]

Cheers,
Rob.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ