Hi,
Please note that the "FilesInUse" and "MsiRMFilesInUse" dialogs are shown automatically by Windows Installer and they cannot be controlled. However, you can create your own custom action which checks if Outlook is running and prompt the user.
Note that the
Detect and stop a process how-to explains an approach for this. Also, the
Uninstall another MSI when my product is uninstalled how-to contains sample code for showing a Yes/No message box and performing some actions based on the button pressed by the user.
For example, you can detect if the process used by Outlook is running. If it is, you can show a custom message box to the user about this and ask if he wants to stop it. If he clicks "Yes" you can stop the process and if he clicks "No" you can make the custom action wait for about 10 seconds and detect the process again.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging