Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > FilesInUse Dialog help
 

FilesInUse Dialog help

When uninstalling my product (a Microsoft Word Add-In) whilst Word is open, I get a dialog saying 'The following applications should be closed before continuing the install:'. I was trying to investigate how I could display the same dialog when my product is being installed. I have been looking at my msi file in Orca and have found the dialog FilesInUse. However, when previewing this dialog in Orca it does not look or have the same text as the dialog I am receiving. I have tried changing the caption of this dialog, saving the msi file and then installing and uninstalling my product. The dialog still shows but not with my edited caption. I then uninstalled my product with logging and the logging suggests that the FilesInUse dialog is being shown but it is not the same as the one I am seeing in Orca. Is this the same dialog or not?
IT_Graduate  Thursday, August 13, 2009 11:09 AM
Windows has its own version of this dialog that it will show in some circumstances, one of which is that the dialog in the MSI file doesn't have the right controls.

Visual Studio doesn't natively support you doing this because you don't get to say exactly where in the install your custom actions will run (install custom actions all run at the end of the install after all the files are installed). The general answer is that you run a custom action that calls MsiProcessMessage with an INSTALLMESSAGE_FILESINUSE record.

Visual Studio setup aren't fully-featured, that's all, they don't offer IDE support to all the features of Windows Installer.
Phil Wilson
PhilWilson  Thursday, August 13, 2009 5:46 PM
Windows has its own version of this dialog that it will show in some circumstances, one of which is that the dialog in the MSI file doesn't have the right controls.

Visual Studio doesn't natively support you doing this because you don't get to say exactly where in the install your custom actions will run (install custom actions all run at the end of the install after all the files are installed). The general answer is that you run a custom action that calls MsiProcessMessage with an INSTALLMESSAGE_FILESINUSE record.

Visual Studio setup aren't fully-featured, that's all, they don't offer IDE support to all the features of Windows Installer.
Phil Wilson
PhilWilson  Thursday, August 13, 2009 5:46 PM

You can use google to search for other answers

Custom Search

More Threads

• ClickOnce Manual Update - Abort if there is an exception
• Meaning of COMSelfReg value for Register property in COM EXEs
• How to install 3rd party dll and register with reg.bat file?
• ClickOnce Application Cache and Environment Variables
• ClickOnce: unable to write manifest.
• Disable One-click Security
• The path is not valid. Check the directory for the database
• Running My Application After Install
• Stopping multiple instances of an application
• looking to validate an idea--feature suggestion regarding VS deployment and connection strings