Skip to content
⌘ NSIS Forum Archive

Is NSIS available for ARM cpus?

4 posts

anadem#

Is NSIS available for ARM cpus?

I've been loaned a sweet little ARM-based laptop and installed a program which seemed to use the NSIS installer. Is there an NSIS for ARM? (Perhaps the ARM laptop can run x86-based apps?) I need to package some files for Windows on ARM.

thanks
anadem#
I should have phrased that better: can NSIS make an installer which will work on an ARM cpu (the package would be built on an x86/64-based Windows machine)
JasonFriday13#
You can make arm based installers but it's still not fully tested yet. You will have to compile it yourself. If you have an arm compiler, you can use TARGET_ARCH='arm64' on the command line.

[edit] Reading up on an article on the microsoft site, you can run a 32bit windows exe on arm using emulation (the official nsis release is 32bit). So there is more than one option.
Anders#
Native arm64 support is not complete. Most of NSIS will compile but I don't have hardware to test on.

Since the Windows ARM64 supports 32-bit x86 emulation you can use a normal NSIS installer with some minor changes:

!include x64.nsh

Function .onInit
${IfNot} ${IsNativeARM64}
MessageBox MB_ICONSTOP "ARM64 version blah blah!"
Quit
${EndIf}
SetRegView 64
FunctionEnd

Section
${DisableX64FSRedirection}
SetOutPath $InstDir
File MyApp.exe
SectionEnd
${EnableX64FSRedirection}