Pascal Scripting: IsWin64

Prototype:

function IsWin64: Boolean;

Description:

Returns True if the system is running a 64-bit version of Windows that provides the API support Inno Setup requires to perform 64-bit installation tasks. If False is returned, you cannot utilize any of Inno Setup's 64-bit-only features.

Remarks:

This function will always return True on an x64 edition of Windows.

For this function to return True on an Itanium edition of Windows, the system must be running Windows Server 2003 SP1 or later. Older versions lack APIs that Inno Setup requires (e.g. RegDeleteKeyEx).

Example:
begin
  // Check IsWin64 before using a 64-bit-only feature to
  // avoid an exception when running on 32-bit Windows.
  if IsWin64 then
  begin
    MsgBox('64-bit program files reside in: ' +
      ExpandConstant('{pf64}'), mbInformation, MB_OK);
  end;
end;
See also:

Is64BitInstallMode
ProcessorArchitecture