I am using Visual Studio 2005 Setup and Deployment wizard to build the setup file for my application. Everything works fine but I'd like to add a condition that checks to see if an instance of my application is already running and if so prompt the user to exit from the app and then resume installation.
I'd like to do the same when the user tries to uninstall my application.
Any assistance on how to go about doing this is appreciated.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Exiting application before uninstalling
1 reply to this topic
Posted 11 January 2007 - 16:03
The MSI engine has built in functionality to detect any locked files that the installation wants to edit/remove/replace and prompt the user as to what to do about it (including closing the app). To make use of these functions though, you must declare the FilesInUse dialog (MsiRMFilesInUse dialog too to use the Restart Manager in Vista) details of which are well documented on MSDN.