Just spent the whole day trying to re-install DPM 1801 (Server 2016 / SQL 2016 SP2 CU5) after major issues, only for it to fail with the dreaded “4387” error..
Already had SSMS v16.5.3 installed so wasn’t that. spent several hours of retries, including a reinstall of SSMS 16.5 with no luck.
Eventually got it installed by running “mofcomp” to recompile all the SQL Server MOF’s..
Fortunately, I had a powershell script that loops through each version of SQL Server:
$sqlpath = "C:\Program Files (x86)\Microsoft SQL Server"
$sqlmofs = (gci -Path $sqlpath -Filter *.mof -Recurse).Fullname
foreach ($mof in $sqlmofs)
Reran the DPM Installer and bingo! It started to install