The issue you are facing with uninstalling the MSI application on recent Windows updates seems to be related to how Windows Installer handles the uninstallation process, particularly with applications running in the background or encountering errors during uninstallation.
Here are some steps and considerations to help solve this issue:
Ensure Proper Uninstallation: Make sure that your MSI installer is correctly configured to handle uninstallation gracefully, including stopping any background processes associated with the application during uninstallation.
Check for Errors and Logging: Review the MSI installer logs (msi*.log
files typically found in %temp%
directory) to identify any specific errors or issues encountered during uninstallation. Look for error codes or messages that could indicate why the uninstallation process is failing to remove associated files.
Handle Background Processes: Ensure that your uninstallation process properly stops and removes any background processes or services that belong to the application being uninstalled. Background processes can sometimes prevent files from being removed or cause the uninstallation to fail.
Update MSI Package: If possible, update your MSI package to address any issues identified through logs or testing. Ensure that all components and files associated with the application are correctly configured for uninstallation.
Test on Clean Systems: Test the uninstallation process on a clean system or virtual machine to ensure that there are no conflicting applications or settings causing the uninstallation to fail.
Consider Administrative Rights: Ensure that the uninstallation is performed with administrative rights, as certain operations may require elevated privileges to complete successfully.
User Interface Options: The error message about "advertised application is unsafe" suggests that there might be issues with how the MSI package is configured regarding the user interface options during installation. Review the MSI package settings related to installation and uninstallation user interface options (UI Level
, UILevel
, etc.) to ensure they are configured correctly.
Consult MSI Documentation: Refer to Microsoft's documentation on Windows Installer (MSI) for troubleshooting uninstallation issues and recommended best practices.