From 7f16e000c9a9642f8c1add059e1d99258930ec52 Mon Sep 17 00:00:00 2001 From: Andrew Lytvynov Date: Wed, 1 Nov 2023 14:15:17 -0600 Subject: [PATCH] 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 --- clientupdate/clientupdate.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/clientupdate/clientupdate.go b/clientupdate/clientupdate.go index 2067cb4bb..7d0e3b38a 100644 --- a/clientupdate/clientupdate.go +++ b/clientupdate/clientupdate.go @@ -722,7 +722,12 @@ func (up *Updater) updateWindows() error { } 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) { return nil