VDA stuck when updating

VDA stuck when updating

Sometimes (no idea why, seems random to me) the VDA update is stuck after prompted to reboot in the middle of the update like below.

After going through the logs I noticed that the VDA setup creates a RunOnce key just before the restart.

Get-content ”$env:LOCALAPPDATA\Temp\Citrix\XenDesktop Installer\XenDesktop Installation.log” -wait

After checking the registry path ”HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce” there was indeed a key created with the name ”!XenDesktopSetup”.

After deleting this key the update proceeded immediately.

I guess the registry key should delete itself after a reboot, but for whatever reason, it doesn’t. This update was from 7.18 to 1808, but have happened to me in all different versions from 7.15 and later.