1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

ARM64 ProgramFiles correction

This commit is contained in:
George King
2025-07-19 17:10:21 +02:00
committed by GitHub
parent e0de49cfdd
commit 291bdb5229

View File

@@ -322,8 +322,16 @@ end;
function GetCommonProgramFilesDir: String;
begin
// Check if the installer is running on a 64-bit system
if IsWin64 then
if IsARM64 then
begin
if ExpandConstant('{#InstallerArch}') = 'x86' then
// For 32-bit installer on ARM64, return the 32-bit Program Files directory
Result := ExpandConstant('{commonpf32}')
else
// For AMR64 installer, return the Program Files directory
Result := ExpandConstant('{commonpf}')
end
else if IsWin64 then
begin
if ExpandConstant('{#InstallerArch}') = 'x64' then
// For 64-bit installer, return the 64-bit Program Files directory