diff --git a/build/win32/code.iss b/build/win32/code.iss index a04e341fb34..195e63cf12a 100644 --- a/build/win32/code.iss +++ b/build/win32/code.iss @@ -1015,7 +1015,7 @@ begin Result := True; #if "user" == InstallTarget - if not WizardSilent() and IsAdminLoggedOn() then begin + if not WizardSilent() and IsAdmin() then begin if MsgBox('This User Installer is not meant to be run as an Administrator. If you would like to install VS Code for all users in this system, download the System Installer instead from https://code.visualstudio.com. Are you sure you want to continue?', mbError, MB_OKCANCEL) = IDCANCEL then begin Result := False; end;