Skip to content

Commit

Permalink
Fix 64-bit detection in installer
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 authored Jun 26, 2023
1 parent 8ac252c commit ef03421
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/windows/installer/DOSBox-X-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ PrivilegesRequired=lowest
UninstallDisplayName={#MyAppName} {#MyAppVersion} {#MyAppBit}
UninstallDisplayIcon={app}\{#MyAppExeName}
WizardSmallImageFile=..\..\icons\dosbox-x.bmp
;MinVersion below 6.1 is not recommended, however set to 6.0 to support Vista
MinVersion=6.0

[Messages]
Expand Down Expand Up @@ -380,6 +381,7 @@ begin
if not IsWin64 then
begin
PageBuild.CheckListBox.ItemEnabled[0] := False;
PageBuild.CheckListBox.ItemEnabled[2] := False;
PageBuild.Values[1] := True;
end
else
Expand All @@ -398,6 +400,12 @@ begin
PageBuild.CheckListBox.ItemEnabled[2] := False;
PageBuild.CheckListBox.ItemEnabled[3] := False;
PageBuild.Values[4] := True;
if not IsARM64 then
begin
PageBuild.CheckListBox.ItemEnabled[4] := False;
PageBuild.Values[4] := False;
PageBuild.Values[5] := True;
end
end;
PageBuild.CheckListBox.AddGroup('Check the following box to select the SDL2 build as the default DOSBox-X build.', '', 0, nil);
PageBuild.CheckListBox.AddCheckBox('Default to SDL2 build (instead of SDL1 build) ', '', 0, False, True, False, True, nil);
Expand Down

0 comments on commit ef03421

Please sign in to comment.