From 5f5b75a746c8f4e2a7e583bb17a2a493dd04e4a6 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Tue, 7 Jul 2020 16:09:09 +0200 Subject: [PATCH] fix inno setup warning --- build/win32/code.iss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;