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?
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)
Please log in to answer
Posted by:
plangton
19 years ago
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
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
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
-----
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.
so that the conversation will remain readable.