Installation OR upgrade of VMware tools on Windows 2016 Core may fail with error 1609

During the tool upgrade, installer remove existing version of tools then install latest version. This particular problem is seen with the installation of VMWare tools version 10.3.5 (build 10430147) on Windows 2016 Core operation system that fail prematurely because of error and doesn’t allow installation of existing version.

InstallationFAiled.jpg

Enable MSI log during installation OR upgrade.

Example syntax.

Setup64.exe /V"/lv C:\temp\vmware_install.log"

You may see following lines in MSI log
Please note, date/time are removed in below sample lines.


MSI (s) (FC:F4) PROPERTY CHANGE: Adding VM_PostInstall.A05FAB36_E570_4B23_8805_3633A16E8D19 property. Its value is '"C:\ProgramData\VMware\VMware CAF\pme\install\postInstall.bat" "C:\Program Files\VMware\VMware Tools\VMware CAF\pme\" "C
:\ProgramData\VMware\VMware CAF\pme\"'.
Action ended VM_PostInstall_SD.A05FAB36_E570_4B23_8805_3633A16E8D19. Return value 1.
MSI (s) (FC:F4) Skipping action: VM_StopVMwareProcs.869A7E00_8665_0000_83A8_EF0F76CF0001 (condition is false)

MSI (s) (FC!8C) Closing MSIHANDLE (60) of type 790531 for thread 4492
CustomAction VM_PostInstall.A05FAB36_E570_4B23_8805_3633A16E8D19 returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
MSI (s) (FC:BC) Closing MSIHANDLE (58) of type 790536 for thread 5876

Action Rollback. Rolling back action:
Rollback: VM_PostInstall.A05FAB36_E570_4B23_8805_3633A16E8D19
MSI (s) (FC:F4) [08:04:46:238]: Executing op: ActionStart(Name=VM_PostInstall.A05FAB36_E570_4B23_8805_3633A16E8D19,,)
MSI (s) (FC:F4) [08:04:46:238]: Executing op: ProductInfo(ProductKey={F32C4E7B-2BF8-4788-8408-824C6896E1BB},ProductName=VMware Tools,PackageName={F32C4E7B-2BF8-4788-8408-824C6896E1BB}.msi,Language=1033,Version=167968773,Assignment=1,ObsoleteArg=0,ProductIcon=VmwareIcon,,PackageCode={66C1BF82-7ADE-472F-B0AE-1E6A85835452},,,InstanceType=0,LUASetting=0,RemoteURTInstalls=0,ProductDeploymentFlags=3)

Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: "Installed VMware Tools".
The call to SRSetRestorePoint API failed. Returned status: 0. GetLastError() returned: 127 File will have security applied from OpCode.
SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Program Files\Common Files\VMware\InstallerCache\{F32C4E7B-2BF8-4788-8408-824C6896E1BB}.msi' against software restriction policy
SOFTWARE RESTRICTION POLICY: C:\Program Files\Common Files\VMware\InstallerCache\{F32C4E7B-2BF8-4788-8408-824C6896E1BB}.msi has a digital signature

Calling SRSetRestorePoint API. dwRestorePtType: 0, dwEventType: 102, llSequenceNumber: 0, szDescription: "Installed VMware Tools".
The call to SRSetRestorePoint API failed. Returned status: 0. GetLastError() returned: 127
Note: 1: 2203 2: C:\Windows\Installer\inprogressinstallinfo.ipi 3: -2147287038
Server not locked: locking for product {F32C4E7B-2BF8-4788-8408-824C6896E1BB}
Product: VMware Tools -- Installation failed.
Windows Installer installed the product. Product Name: VMware Tools. Product Version: 10.3.5.10430147. Product Language: 1033. Manufacturer: VMware, Inc.. Installation success or error status: 1603.
Cleaning up uninstalled install packages, if any exist
MainEngineThread is returning 1603

This issue is caused by the installation of component VMware CAF Management Agent service. This service by default remain stop post VMWare tools version 10.2.0. More details

The solution is to use  following syntax for VMWare tools installation.

setup64.exe /S /v"/qn REBOOT=R ADDLOCAL=Audio,BootCamp,Hgfs,FileIntrospection,NetworkIntrospection,Perfmon,TrayIcon,Drivers,MemCtl,Mouse,MouseUsb,PVSCSI,EFIFW,SVGA,VMCI,VMXNet3,VSS,Toolbox,Plugins,Unity REMOVE=CAF,Audio,BootCamp,Hgfs,FileIntrospection,NetworkIntrospection,Perfmon,Unity /l*v C:\temp\vmware1052_install.log"

 

Advertisements