Browse Source

Removing pre-Vista compatibility code (Inno Setup does not support older Windows versions anymore)

Source commit: 3053af56fedac889d255c6da37699986d48cbc87
Martin Prikryl 1 year ago
parent
commit
06cb030468
1 changed files with 1 additions and 9 deletions
  1. 1 9
      deployment/winscpsetup.iss

+ 1 - 9
deployment/winscpsetup.iss

@@ -411,13 +411,6 @@ begin
   MsgBox(Text, mbInformation, MB_OK);
 end;
 
-#ifdef Sponsor
-function IsWinVista: Boolean;
-begin
-  Result := (GetWindowsVersion >= $06000000);
-end;
-#endif
-
 procedure CutVersionPart(var VersionString: string; var VersionPart: Word);
 var
   P: Integer;
@@ -1379,8 +1372,7 @@ begin
 #ifdef Sponsor
     if VarIsEmpty(SponsorReq) then
     begin
-      // Need Vista for SHCONTCH_* constants
-      if WizardSilent or CmdLineParamExists('/NoSponsor') or (not IsWinVista) then
+      if WizardSilent or CmdLineParamExists('/NoSponsor') then
       begin
         Log('Skipping sponsor query request');
         SponsorStatus := 'N';