Old 19th June 2017, 08:08   #1
hean01
Junior Member
 
Join Date: Jun 2017
Posts: 2
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
hean01 is offline   Reply With Quote
Old 19th June 2017, 09:53   #2
JasonFriday13
Major Dude
 
JasonFriday13's Avatar
 
Join Date: May 2005
Location: New Zealand
Posts: 853
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).

"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 19th June 2017, 11:11   #3
hean01
Junior Member
 
Join Date: Jun 2017
Posts: 2
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.

Quote:
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
hean01 is offline   Reply With Quote
Old 19th June 2017, 11:34   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,578
Start by adding TARGET_ARCH=amd64 to the SCons parameters. You also need a 64-bit compatible zlib library.

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

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