on
12 May 2023
09:36 AM
- edited on
03 Mar 2025
01:55 PM
by
PatrykAdamowicz
How to manually uninstall Dynatrace OneAgent on Windows hosts.
While trying to uninstall an old version of OneAgent on Windows you're getting an MSI error 1603.
This generally happens if the old .msi package pertaining to the same old version has been removed or deleted from the machine. Windows installer requires the same MSI package to uninstall a product.
To solve this issue, you must find the exact installer from a different machine or request Dynatrace to provide it to you. Ensure that the version you're requesting is supported at that moment, otherwise, it will require manual uninstallation from the machine.
If you do not have access to the MSI package yet, please manually uninstall OneAgent from the Windows host.
Follow the steps below with admin rights or get help from a local Windows administrator to execute the steps:
In the command prompt, please run the following command to find IdentifyingNumber
>wmic product where name='Dynatrace OneAgent' get IdentifyingNumber
Follow the steps below with admin rights or get help from a local Windows administrator to execute the steps:
After following the steps, in the last please remove all the registry entries with IdentifyingNumber
C:\Program Files\dynatrace\oneagent
%PROGRAMDATA%\dynatrace\oneagent
%SYSTEMDRIVE%\AI_RecycleBin
(if present)%SystemRoot%\System32\drivers\oneagentmon.sys
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\oneagentmon
C:\Program Files\WinPcap\uninstall.exe
(note that the OneAgent uninstaller removes WinPcap but keeps uninstall.exe, this step will remove that as well)Hopefully, you will be able to uninstall the old OneAgent version by following the manual uninstallation steps.
However, if the steps provided did not work, please contact Product Specialist/Technical Support at Dynatrace, mention that this article was used, and provide the following in the ticket:
Hi,
For better results, it is advisable to run the following command in command prompt and get the identifying number:
wmic product where name='Dynatrace OneAgent' get IdentifyingNumber
After following the steps, in the last please remove all the registry entries with IdentifyingNumber
Br/Nadeem