I\'m using Inno Setup.
Can someone please tell me how to terminate the setup, if the Windows version is 32-bit?
Or to be more specific, when the setup star
Just return False
from the InitializeSetup, when you detect a 32-bit system (using the IsWin64 function).
function InitializeSetup(): Boolean;
begin
Result := True;
if not IsWin64 then
begin
SuppressibleMsgBox('Error:The Windows version is 32bit', mbError, MB_OK, MB_OK);
Result := False;
end;
end;
See also Exit from Inno Setup Installation from [code].
Or simply use the ArchitecturesAllowed directive.
See also: