Files
tailscale/clientupdate
Nick Khyl cd4f621399 clientupdate: don't uninstall the Windows client after a failed update
If msiexec failed to install an update for any reason, installMSI
assumed it was a downgrade, which msiexec does not permit, uninstalled
the current version and tried again. If the second attempt failed too,
such as when a custom action in the new package kept failing,
the device was left without Tailscale.

Uninstall the current version only if the requested version is older
than it, and do so before running the installer. Otherwise, return
the error and let Windows Installer roll back to the current version.

If the current version has been uninstalled and Windows Installer
is busy with another installation, keep retrying with a backoff
for up to 30 minutes rather than leaving the device without Tailscale.

Fixes tailscale/corp#45537
Updates tailscale/corp#52316

Change-Id: I066480c718b3bfca53a65c54ebf948562bc6ba2b
Signed-off-by: Nick Khyl <nickk@tailscale.com>
2026-12-01 14:43:23 -08:00
..