Allow installing from an administrator user (#35202)

Release Notes:

- N/A
This commit is contained in:
localcc 2025-07-29 18:03:57 +02:00 committed by GitHub
parent 397b5f9301
commit aa3437e98f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1245,16 +1245,6 @@ Root: HKCU; Subkey: "Software\Classes\zed\DefaultIcon"; ValueType: "string"; Val
Root: HKCU; Subkey: "Software\Classes\zed\shell\open\command"; ValueType: "string"; ValueData: """{app}\Zed.exe"" ""%1"""
[Code]
function InitializeSetup(): Boolean;
begin
Result := True;
if not WizardSilent() and IsAdmin() then begin
MsgBox('This User Installer is not meant to be run as an Administrator.', mbError, MB_OK);
Result := False;
end;
end;
function WizardNotSilent(): Boolean;
begin
Result := not WizardSilent();