During uninstalling the Windows Agent, we detect several times the following messages:
We analyze this further and noticed that this is happening if you remove the following files:
- C:\Windows\Installer\ .msi
- check-mk-agent-1.x.x-xyz.msi
Windows can't uninstall the Checkmk Agent if both files are missing from the system. So please don't remove both files.
If you're using the Agent Bakery, please keep in mind that for restoring, you need the Agent from the bakery with the same hash as previously installed on the system.
If you delete both files accidentally, you need to follow these steps for uninstalling the Checkmk Agent successfully.
Step-by-step guide
- Remove the corresponding Registry: Computer*\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Check_MK_Agent*
Stop the Checkmk Agent Service
net stop Check_MK_Agent #(for CheckMK Agent 1.5) net stop CheckMKService #(for CheckMK Agent 1.6)
- Remove the Directory "C:\Program Files (x86)\check_mk"
- In Control Panel "\Programs\Uninstall a program" you will find one deprecated entry for Check_MK Agent
- In Control Panel "\Programs\Uninstall a program" you will find one deprecated entry for Check_MK Agent
- Download the troubleshooter for removing this entry:
- https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed
Uninstall CheckMK Agent with the troubleshooter
Open the uninstall program
Click Next
Click Uninstalling
Select your Checkmk Agent and click Next
Click Yes, try uninstall
Click Close the troubleshooter
- Reboot
Related articles