clientupdate: clarify how to run update as Administrator on Windows (#10043)

Make the error message a bit more helpful for users.

Updates #9456

Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
pull/10038/head
Andrew Lytvynov 1 year ago committed by GitHub
parent 01604c06d2
commit 7f16e000c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -722,7 +722,12 @@ func (up *Updater) updateWindows() error {
} }
if !winutil.IsCurrentProcessElevated() { if !winutil.IsCurrentProcessElevated() {
return errors.New("must be run as Administrator") return errors.New(`update must be run as Administrator
you can run the command prompt as Administrator one of these ways:
* right-click cmd.exe, select 'Run as administrator'
* press Windows+x, then press a
* press Windows+r, type in "cmd", then press Ctrl+Shift+Enter`)
} }
if !up.confirm(ver) { if !up.confirm(ver) {
return nil return nil

Loading…
Cancel
Save