Problem description
Normally installation/upgrade/uninstall of Hybrid workload agent does not requires a reboot. But sometimes while Installing/Upgrade Hybrid Workload agent, at the end setup it would prompt for a reboot.
Cause
Kindly check if the PendingFileRenameOperations key is present under below registry.
Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
The key states that a reboot is pending due to a previous setup was unable to delete the file as it was in use, because of which the current Installation/Upgrade requires a reboot.
Resolution
If the PendingFileRenameOperations key is still present, kindly rename the key as PendingFileRenameOperations_old or delete the key.
Then try to Install/Upgrade the Agent and check.
๐ Note
โKindly export the registry key before making any changes, so that we can retrieve the registry setting if needed.