/build/static/layout/Breadcrumb_cap_w.png

Close open applications?

Hey guys
i have recently had to create a custom .mst for the installation of microsoft project professional 2003 for deployment and have a tricky situation.
the package still hasnt been released for production yet because when installing it, i need to somehow close all other microsoft software that may be open such as anything to do with office and internet explorer, otherwise we get an error accessing the registry
is there a way to prompt users with a dialog that tells them to close all open applications and hit continue to install, if there are open applications?

0 Comments   [ + ] Show comments

Answers (2)

Posted by: plangton 19 years ago
Second Degree Blue Belt
0
Hi ictu packager,

Are you familiar with vbscripting? You could create a custom action as a vbscript that looks for these active processes, and if they are there presents a dialog to the user asking them to shut them down before continuing. You could even kill the processes if they are still active. If you like, I could hack something up that you could modify for your own devices, though it might take me a little while.

Hope that helps

Rgds

Paul
Posted by: MSIPackager 19 years ago
3rd Degree Black Belt
0
Here's a sample script pinched from MS which terminates the process named Diagnose.exe.. Hope it helps!

-----

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
("SELECT * FROM Win32_Process WHERE Name = 'Diagnose.exe'")
For Each objProcess in colProcessList
objProcess.Terminate()
Next
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