Skip to content
⌘ NSIS Forum Archive

Building a 64bit installer on Linux platform

4 posts

hean01#

Building a 64bit installer on Linux platform

We are currently building NSIS 2.46 from source using mingw to produce a makensis binary for our build environment. This binary (makensis) produces a 32bit installer and we want to move on so it will build a 64bit installer.

Is it possible and what is required accomplish that ?


Regards,

Henrik Andersson
JasonFriday13#
Any version of NSIS 2 doesn't support 64 bit, maybe the native script compiler can but the installer can't.

NSIS 3 has unofficial 64 bit support for installers, and official support for 64 bit native script compilers on linux.

Do you really need 64 bit native installers? You can install 64 bit programs with a 32 bit installer, you just need a few different commands to do so (like SetRegView).
hean01#
Today we have an installer that includes both 32bit and 64bit version that will install correct version as detected. This works good for the client we are shipping. However for components we ship for Windows servers, WOW64 is optional [1], which pushes us towards building a 64bit installer.

NSIS 3 has unofficial 64 bit support for installers, and official support for 64 bit native script compilers on linux.
Can a makensis built on linux platform generate a 64bit installer using this unoffical support ?

If so, were can I found information about how to accomplish that ?


[1] https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Anders#
Start by adding TARGET_ARCH=amd64 to the SCons parameters. You also need a 64-bit compatible zlib library.