question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question - Build NSIS for both 32 and 64 bits

See original GitHub issue

With electron-builder v19.19.1, when I build for windows with defaults params build -w, I get a nsis installer who only works for 64 bits. Is it correct ?

In fact, I expected that by default, the nsis contain both 32 and 64 bits versions. What do you think to do this behaviour by default ?

And second, is there any way to define the build target arch for Windows only in the package.json ? Because, now I use build -wml --x64 --ia32 and it build 32 bits versions for linux too and I do not want that…

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

47reactions
cawa-93commented, Aug 5, 2017
"win": {
  "target": [
    {
      "target": "nsis",
      "arch": [
        "x64",
        "ia32"
      ]
    }
  ]
},
"linux": {
  "target": [
    {
      "target": "AppImage",
      "arch": [
        "x64"
      ]
    }
  ]
}

and use

$ build -wl
17reactions
GammaGamescommented, Jun 28, 2018

(In case anyone else gets here from google)

It gives me the error configuration.win has an unknown property 'arch' with the above settings. I was able to build by using this in package.json instead:

"scripts": {
  "dist": "electron-builder --ia32 --x64 -w"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Universal 32 and 64-bit installers - NSIS Forums
Hi, I like to maintain one installer for our software which has 32-bit and 64-bit versions of the binaries (exes and dlls).
Read more >
Choose between 32 and 64 bit for an NSIS installer?
I am needing to include Java within my installer, however, we will not know whether the client is using 32 or 64 bit...
Read more >
NSIS - electron-builder
Large strings are supported (maximum string length of 8192 bytes instead of the default of 1024 bytes). 32 bit + 64 bit¶. If...
Read more >
32-bit and 64-bit Windows: Frequently asked questions
Here are answers to some common questions about the 32-bit and 64-bit versions of Windows. How do I upgrade from the 32-bit to...
Read more >
makensis x64 installer - Winamp & Shoutcast Forums
The official NSIS source code can be compiled as 64-bit as well (but the System plug-in is not fully functional). 32-bit MakeNSIS can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found