Old 23rd November 2019, 22:45   #1
anadem
Junior Member
 
Join Date: Mar 2007
Posts: 12
Question 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 is offline   Reply With Quote
Old 24th November 2019, 01:17   #2
anadem
Junior Member
 
Join Date: Mar 2007
Posts: 12
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)
anadem is offline   Reply With Quote
Old 24th November 2019, 02:18   #3
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 884
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.

"Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
NSIS 3 POSIX Ninja
Wiki Profile
JasonFriday13 is offline   Reply With Quote
Old 24th November 2019, 18:25   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,196
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:

Quote:
!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}

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
arm, windows arm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump