Skip to content

Commit 5f5b75a

Browse files
committed
fix inno setup warning
1 parent cbc8bd8 commit 5f5b75a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎build/win32/code.iss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ begin
10151015
Result := True;
10161016
10171017
#if "user" == InstallTarget
1018-
if not WizardSilent() and IsAdminLoggedOn() then begin
1018+
if not WizardSilent() and IsAdmin() then begin
10191019
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
10201020
Result := False;
10211021
end;

0 commit comments

Comments
 (0)