I have applied SQL Server 2016 SP2 CU4 (13.0.5233.0), when I try to apply CU5 or CU7 now it fails, the error seems to be it is not seeing the proper install version. If I search the registry I see the proper version and if I run @@version it sees the proper version
select @@version
Microsoft SQL Server 2016 (SP2-CU4) (KB4464106) - 13.0.5233.0 (X64)
Nov 3 2018 00 :01:54 Copyright (c) Microsoft Corporation Enterprise
Edition:Core-based Licensing (64-bit) on Windows Server 2012 R2 Standard 6.3 <X64> (Build 9600: ) (Hypervisor)
The Error from the install is this;
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Common Files
Component error code: 1642
Component log file: C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20190529_130437\MSSQLSERVER\sql_common_core_Cpu64_1.log
Error description: The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version
of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
Feature: Integration Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: SQL Server Common Files
Component error code: 1642
Component log file: C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20190529_130437\MSSQLSERVER\sql_common_core_Cpu64_1.log
Error description: The upgrade cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade may update a different version
of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade.
Any help would be appreciated