Terminate Program and .NET applications
Posted: Tue Mar 27, 2007 12:20 pm
When running an update or uninstall, I need to ensure that the application is closed down. I understand that I can use the 'Terminate Program' command to do this, but it only works with window class names or caption. Neither of these are predictable.
For example, for .NET apps you do not have control over the main window classname, it is created by .NET internally, e.g. WindowsForms10.Window.8.app.0.3e799b
The caption on our application is also not always static. If you open up a document, then our caption changes to show the open document name (as is common with other applications).
What is needed is a way to specify the actual application, or possibly a wildcard for the caption name. Ideally, I would think that InstallAware should detect this automatically and not even require modification to the script. It should scan all files it is getting to overwrite and if they are in use, then prompt user and Abort/Retry install until properly closed.
This is sorta critical in us moving away from current InstallShield.
Thanks
For example, for .NET apps you do not have control over the main window classname, it is created by .NET internally, e.g. WindowsForms10.Window.8.app.0.3e799b
The caption on our application is also not always static. If you open up a document, then our caption changes to show the open document name (as is common with other applications).
What is needed is a way to specify the actual application, or possibly a wildcard for the caption name. Ideally, I would think that InstallAware should detect this automatically and not even require modification to the script. It should scan all files it is getting to overwrite and if they are in use, then prompt user and Abort/Retry install until properly closed.
This is sorta critical in us moving away from current InstallShield.
Thanks