Hello lovely helpful people!
So I'm trying to run a CU3 upgrade on a SQL2016 SP1 CU1 installation. however every time I run it I get a failure.
Error details:
§ Error installing SQL Server Common Files
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.
Error code: 1642
Log file: C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20170802_102407\DCL\sql_common_core_Cpu64_1.log
Visit http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=13.0.4435.0&EvtType=sql_common_core.msi%400x162A16FE%400x1642 to get help on troubleshooting.
Action required:
Use the following information to resolve the error, and then try the setup process again.
Feature failure reason:
An error occurred for a dependency of the feature causing the setup process for the feature to fail.
I am running the SQL 2016 SP1 CU3 patch (and tried SP1 CU2 with same result) and the installed version is SQL 2016 SP1 with CU1 so it's the correct version.
I looked into the mentioned log file and found the following
MSI (s) (C8:F0) [10:27:02:439]: Unknown\Absent: {D8187061-3FF7-4121-8E90-3FCD07B81118} - D:\c5dc44b1908424ca85017948160b\x64\setup\sql_common_core_msi\sql_common_core.msp
MSI (s) (C8:F0) [10:27:02:439]: Product: SQL Server 2016 Common Files - Update '{D8187061-3FF7-4121-8E90-3FCD07B81118}' could not be installed. Error code 1642. Additional information is available in the log file C:\Program Files\Microsoft SQL Server\130\Setup
Bootstrap\Log\20170802_102407\DCL\sql_common_core_Cpu64_1.log.
MSI (s) (C8:F0) [10:27:02:439]: Windows Installer installed an update. Product Name: SQL Server 2016 Common Files. Product Version: 13.0.1601.5. Product Language: 1033. Manufacturer: Microsoft Corporation. Update Name: {D8187061-3FF7-4121-8E90-3FCD07B81118}.
Installation success or error status: 1642.
MSI (s) (C8:F0) [10:27:02:439]: Note: 1: 1708
MSI (s) (C8:F0) [10:27:02:439]: Product: SQL Server 2016 Common Files -- Installation failed.
MSI (s) (C8:F0) [10:27:02:439]: Windows Installer installed the product. Product Name: SQL Server 2016 Common Files. Product Version: 13.0.1601.5. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1642.
MSI (s) (C8:F0) [10:27:02:439]: Attempting to delete file C:\Windows\Installer\7086a.msp
MSI (s) (C8:F0) [10:27:02:439]: MainEngineThread is returning 1642
MSI (s) (C8:BC) [10:27:02:439]: No System Restore sequence number for this installation.
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.
In digging about I found the following article:
https://support.microsoft.com/en-us/help/969052/how-to-restore-the-missing-windows-installer-cache-files-and-resolve-p
from running that I got the following
================================================================================
PRODUCT NAME : SQL Server 2016 Common Files
================================================================================
Product Code: {57846DA8-8B5D-4466-B850-E8CDFC94046C}
Version : 13.1.4001.0
Most Current Install Date: 20170216
Target Install Location:
Registry Path:
HKEY_CLASSES_ROOT\Installer\Products\8AD64875D5B866448B058EDCCF4940C6\SourceList
Package : sql_common_core.msi
Install Source: \x64\setup\sql_common_core_msi\
LastUsedSource: m;1;E:\x64\setup\sql_common_core_msi\
sql_common_core.msi exists on the LastUsedSource path, no actions needed.
Installer Cache File: C:\Windows\Installer\3c5d42.msi
Package exists in the Installer cache, no actions needed.
Any missing packages will update automatically if needed assuming that
the LastUsedSource exists.
Should you get errors about C:\Windows\Installer\3c5d42.msi or E:\x64\setup\sql_common_core_msi\sql_common_core.msi then you
may need to manually copy the file, if file exists replace the problem file,
Copy and paste the following command line into an administrative command prompt:
Copy "E:\x64\setup\sql_common_core_msi\sql_common_core.msi" C:\Windows\Installer\3c5d42.msi
Which I believe suggests all is well and I've looked and there is a file already at C:\Windows\Installer\3c5d42.msi which has the same properties as the file on the install media.
Where I was
I've additionally tried to run a repair with SQL 2016 SP1 media which completed successfully but on trying to re-run the CU3 and CU2 update it again failed. When I do run the CU3 update now it shows the version number for the shared components at that of
CU3 but lists the install status and incomplete.
If anyone has any ideas I'd really appreciate it as I'm not really sure what to do next now.