on 12 May 2023 09:36 AM - edited on 05 Jun 2023 09:03 AM by Karolina_Linda
While trying to uninstall an old version of OneAgent on Windows you are 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, either you have to find the exact installer from a different machine or request Dynatrace to provide it to you. Make sure that the version you are 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 do a manual uninstall of OneAgent from the Windows host.
Follow the steps below with admin rights or take help from a local Windows administrator to execute the steps:
Manual uninstall of oneagent in case of msi 1603 error:
INSTALL_DIR
and RUNTIME_DIR
directories [1].C:\Program Files\dynatrace\oneagent
%PROGRAMDATA%\dynatrace\oneagent
%APPDATA%
:
OneAgent
ruxit
(if present)%SYSTEMDRIVE%\AI_RecycleBin
(if present)%SystemRoot%\System32\drivers\oneagentmon.sys
pnputil.exe
, delete driver from DriverStorepnputil.exe /enum-drivers
Dynatrace LLC
, note the "published name" (e.g. oem2.inf)pnputil.exe /delete-driver <published name>
sc stop oneagentmon
sc delete oneagentmon
sc.exe
fails for whatever reason, you can manually delete the service's registry key 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, by following the manual uninstallation steps, you will be able to uninstall the old OneAgent version. However, if the steps provided did not work, please get in touch with product/tech support at Dynatrace.
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