Error Uninstalling CDM+: No rules match the specified criteria.
Problem
Installing or uninstalling CDM+ on Windows fails. This could also occur when installing a newer version during the uninstallation phase for the existing program.
Upon examining the uninstallation/install log, you see an error similar to this:
Dumping PowerShell invoke log ... --> Found PowerShell path: C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0\powershell.exe --> PowerShell Script Execution Result Code: 1 --> PowerShell Script Execution log: No rules match the specified criteria. CustomAction RemoveFromFirewall returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) Action 12:30:44: Rollback. Rolling back action:
Solution 1
Open a command prompt as an administrator and run:
netsh advfirewall firewall add rule name="CDM+" dir=in action=allow program="C:\Program Files\Suran\CDM+\CDM+.exe"
Retry the uninstall.
If this does not work move to solution 2.
Explanation
The CDM+ installer manages a rule in the Windows Firewall to allow incoming network connections to CDM+. When uninstalling, this rule is removed.
However, if the rule does not exist, it cannot be removed and uninstallation will fail. The solution is to add this this rule back into the firewall so the uninstaller can remove it.
CDM+ 11.1 changes the installer that failures to configure the firewall do not block installation or uninstallation.
Solution 2
- Install and run the Microsoft Program Install and Uninstall troubleshooter
- Select Uninstalling when available
- Choose CDM+ program when given the option what program to repair
- Once finished repairing CDM+
- Close the program
- Retry the uninstall
Explanation
The existing CDM+ installation in the Windows Installer registry is corrupted. Microsoft's Program Install and Uninstall troubleshooter tool will clean up the registry and allow a clean uninstall.