Problem Description
If you try to upgrade or install SCOM 2016 Agent manually on a Windows Server the upgrade or installation can fail with the following error message below.
Error Messages
1. “A newer version of Operations Manager is already installed on this computer. Setup cannot continue.”
2. “Microsoft Monitoring Agent was not installed.”
3. “The setup wizard was interrupted before the Microsoft Monitoring Agent could be completely installed.”
Cause
This can happen if you upgraded your SCOM Agents from SCOM 2012 to SCOM 2012 R2 and now trying to upgrade the Agent to SCOM 2016. Under these circumstances the SCOM 2012 Agent ProductCode {8B21425D-02F3-4B80-88CE-8F79B320D330}
can remain as an orphaned entry in the registry and cause the upgrade or installation to fail with the above mentioned error messages.
In our case we tried to upgrade version 7.1.10184.0 to 8.0.10918.0 ;
SCOM 2012 R2 Agent Version : 7.1.10184.0
to
SCOM 2016 Agent Version : 8.0.10918.0
Solution
Basically deleting the SCOM 2012 Agent ProductCode {8B21425D-02F3-4B80-88CE-8F79B320D330}
from the following registry keys and subkeys with REG.exe
or manually has fixed our problem in this case.
The registry Key “D52412B83F2008B488ECF8973B023D03
” under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\
belongs to the SCOM 2012 Agent too therefore we have to delete the whole “D52412B83F2008B488ECF8973B023D03
” key. The below two reg delete commands are enough to fix this problem.
You can use the following command to create a batch file, if you have lots of SCOM Agents affected from this problem and push it to the servers via Group Policy, Group Policy Preferences or SCCM .
REG DELETE COMMAND :
1. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D52412B83F2008B488ECF8973B023D03 /f
2. REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v “C:\windows\Installer\{8B21425D-02F3-4B80-88CE-8F79B320D330}\” /f
Good luck !