-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
In InnoSetup v6.4.0:
- Added new
ExecAndCaptureOutputsupport function to execute a program or batch file and capture its stdout and stderr outputs separately.
This is of particular interest to me, as it will hopefully allow us to drop the finicky ExecWithCapture() function.
In InnoSetup v6.3:
Support for Arm64 systems improved, and related enhancements
Setup now officially supports the installation of x64 apps on Arm64 Windows 11 systems, which are able to run x64 binaries via emulation. To enable your x64 app installers to run properly on Arm64 Windows 11, some minor changes may be needed in your scripts. Most importantly:
- In
ArchitecturesAllowedandArchitecturesInstallIn64BitMode, change any use ofx64tox64compatible.- In
Checkparameters and[Code], change any use ofIsX64toIsX64Compatible.- In
[Code], if there are anyProcessorArchitecture = paX64comparisons, replace them with calls toIsX64Compatible.The key difference between
x64/IsX64and the newx64compatible/IsX64Compatibleis that the latter matches both x64 Windows and Arm64 Windows 11.In most cases, you should make the above changes, because otherwise, users on Arm64 systems may not be able to run your installers. For example, an
ArchitecturesAllowed=x64setting will only allow the installer to run on x64 Windows --- not on Arm64 Windows 11. Or, if you ship x86 and x64 versions of your app in the same installer, the 32-bit x86 version may be chosen instead of the expected x64 version when running on Arm64 Windows 11.The
[Setup]section directivesArchitecturesAllowedandArchitecturesInstallIn64BitModehave been enhanced:
- Six new architecture identifiers have been introduced. Briefly:
arm32compatiblematches systems capable of running 32-bit Arm binaries.x64compatiblematches systems capable of running x64 binaries.x64osmatches systems running x64 Windows only. (Equivalent to the existingx64identifier, which is now deprecated.)x86compatiblematches systems capable of running 32-bit x86 binaries.x86osmatches systems running 32-bit x86 Windows only. (Equivalent to the existingx86identifier.)win64matches systems running 64-bit Windows, regardless of architecture.See the new Architecture Identifiers help topic for further details on each.- Boolean expressions are now supported. Through use of the
andoperator, for example, it is possible to require two architecture identifiers to match at the same time. See theArchitecturesAllowedhelp topic for usage examples.The
x64architecture identifier is now deprecated. If it is used, the compiler will issue a warning and substitutex64os, which has the same effect. But as mentioned above, in most cases, scripts should be changed to usex64compatiblebecause it matches both x64 Windows and Arm64 Windows 11.The 64-bit example scripts (
64Bit*.iss) have all been updated to usex64compatibleas preferred.Certain 64-bit functionality that previously only worked on x64 Windows now works on Arm64 Windows 11 as well. This includes:
- The
Permissionsparameter of the[Dirs]section when running in 64-bit install mode.- The
Permissionsparameter of the[Files]section when running in 64-bit install mode or when the64bitflag is used.- The
Permissionsparameter of the[Registry]section when running in 64-bit install mode or when the value of theRootparameter ends in64.- The
regtypelibflag of the[Files]section when running in 64-bit install mode or when the64bitflag is used.Note that all of the above remains unsupported on Arm64 Windows 10.Setup now logs the machine types supported by the system --- that is, what types of EXEs can be executed, either natively or via emulation. For example, when running on an Arm64 Windows 11 system, it logs:
Machine types supported by system: x86 x64 Arm32 Arm64.The
OnlyOnTheseArchitecturesmessage is not used anymore. Instead, theWindowsVersionNotSupportedmessage is now shown when Setup is started on an architecture that is not allowed by theArchitecturesAllowedexpression. (But please do not remove the message from translation files.)Pascal Scripting change: Added new
IsArm32Compatible,IsX64Compatible,IsX64OS,IsX86Compatible, andIsX86OSsupport functions. TheIsX64support function still exists but is now deprecated as explained above. Example testing all architecture identifiers:[Code]
function InitializeSetup: Boolean;
begin
if IsArm32Compatible then Log('IsArm32Compatible');
if IsArm64 then Log('IsArm64');
if IsX64OS then Log('IsX64OS');
if IsX64Compatible then Log('IsX64Compatible');
if IsX86 then Log('IsX86');
if IsX86OS then Log('IsX86OS');
if IsX86Compatible then Log('IsX86Compatible');
if IsWin64 then Log('IsWin64');
Result := True;
end;
Would be nice to add better Windows/ARM64 support (even though it seems that Delphi, i.e. the development environment underlying InnoSetup, does not have Windows/ARM64 target support yet).