fix inno setup warning

This commit is contained in:
Joao Moreno
2020-07-07 16:09:09 +02:00
parent cbc8bd84ae
commit 5f5b75a746

View File

@@ -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;