Office 365 / 2019 updates fail to install
search cancel

Office 365 / 2019 updates fail to install

book

Article ID: 169958

calendar_today

Updated On:

Products

Patch Management Solution for Windows

Issue/Introduction

Worked through the process to create the Office 365 deployment outlined on 184965 "Deploying Microsoft Office 365 updates with Patch Management Solution", configured the Software Update Cycle schedule, and found the results as follows: 

  • Office365-16.0.7766.2096-Deferred.cab Failed --updatetoversion=16.0.7766.2096

Exit Code 1603, 1636

Note:

Similar messages can happen for Office 2019:

Returning result code 0x643
-----------------------------------------------------------------------------------------------------
Date: 7/26/2021 10:07:43 AM, Tick Count: 145271359 (1.16:21:11.3590000), Size: 262 B
Process: OfficeUpdater.exe (5888), Thread ID: 19444, Module: OfficeUpdater.exe
Priority: 4, Source: wmain

Program 'Office2019-16.0.10376.20033-PerpetualVL2019.cab for MS21-07-VL2019' completed. Exit code=1603. Execution context='Administrator'. RunAs='\'
-----------------------------------------------------------------------------------------------------
Date: 7/26/2021 10:07:43 AM, Tick Count: 145271375 (1.16:21:11.3750000), Size: 381 B
Process: AeXNSAgent.exe (14256), Thread ID: 1304, Module: smfagent.dll
Priority: 4, Source: ProgramExec

Environment

Patch Management Solution 7.5.x, 7.6.x and 8.x

Cause

Confirmed Exit Code 1605  occurred  when O365 was running and trying to update.

You may also see messages like these ones during the file execution, saying there is a process that is been called and it is failing:

Window 'OfficePowerManagerWindow' with HWND 160C8C for process 4DDC was found:
-----------------------------------------------------------------------------------------------------
Date: 7/26/2021 10:07:43 AM, Tick Count: 145271296 (1.16:21:11.2960000), Size: 326 B
Process: OfficeUpdater.exe (5888), Thread ID: 19444, Module: OfficeUpdater.exe
Priority: 4, Source: EnumWindowCallback

 

Post WM_CLOSE message to window with HWND 160C8C
-----------------------------------------------------------------------------------------------------
Date: 7/26/2021 10:07:43 AM, Tick Count: 145271312 (1.16:21:11.3120000), Size: 322 B
Process: OfficeUpdater.exe (5888), Thread ID: 19444, Module: OfficeUpdater.exe
Priority: 4, Source: FinderOfficeWindow::CloseWindowsOfTheProcess

 

Windows was found for OfficeClickToRun process in silent mode. An attempt was made to close the windows.
-----------------------------------------------------------------------------------------------------
Date: 7/26/2021 10:07:43 AM, Tick Count: 145271312 (1.16:21:11.3120000), Size: 388 B
Process: OfficeUpdater.exe (5888), Thread ID: 19444, Module: OfficeUpdater.exe
Priority: 4, Source: OfficeUpdater::Office2016Update::performUpdateScenario

Resolution

Advised the following remedial options:

  • Send notification to the users to close Office 365 / Office 2019 prior to patching
  • Make sure no Office windows are left open
  • Create custom Task Job or GPO (Group Policy) to run and turn off Office 365 / Office 2019