/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

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.
Answered 01/13/2005 by: MSIPackager
Third Degree Black Belt

Please log in to comment
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?
Answered 01/13/2005 by: ILikeStuff
Senior Yellow Belt

Please log in to comment
0
OK I lied, just checked again and the custom action is in the Execute Immediate sequence, not Execute Deferred [:)]

Cheers,
Rob.
Answered 01/14/2005 by: MSIPackager
Third Degree Black Belt

Please log in to comment