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.

Cannot build msi packages on macOS Catalina (10.15) (nsis is fine)

See original GitHub issue
  • Version: 22.2.0
  • Electron Version: 6.0.10
  • Electron Type (current, beta, nightly): current
  • Electron Updater version: 4.1.2
  • Target: msi

I can create an nsis package (MyApp Setup.exe) on macOS Catalina with the configuration:

    "win": {
      "icon": "build/icons/icon.ico",
      "sign": "./electron/winsign.js",
      "publisherName": "MyCompany Ltd"
    },
    "nsis": {
      "perMachine": false
    },

using this command:

electron-builder build --win -c.extraMetadata.main=build/electron/main.js --publish never

BUT

I cannot create an msi target. If I try with this configuration:

 "win": {
      "target": "msi",
      "icon": "build/icons/icon.ico",
      "sign": "./electron/winsign.js",
      "publisherName": "MyCompany Ltd"
    },
    "nsis": {
      "perMachine": false
    },

I get this error:

  • building        target=MSI arch=x64 file=dist/MyApp 0.3.4.msi
  ⨯ macOS Catalina doesn't support 32-bit executables and as result Wine cannot run Windows 32-bit applications too  
  ⨯ /Users/me/gitrepos/myapp/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE

I’ve also tried with the --x64 flag to no joy.

I need to be able to build an msi for our users. Actually, I need to be able to build a silent installer package AND an msi, but that’s part of another ticket.

How can I get building msi-s working?

This is similar to #4305 but people there are building nsis, not msis.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
Ayzriancommented, Oct 30, 2020

I think it is expected that you can not build .exe file on MacO. Please use Windows machine to product Windows artifacts e.g. MSI.

0reactions
stale[bot]commented, Mar 20, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install software on macOS "The ins… - Apple Community
I cannot install any software using the Installer app where it takes you through the steps from Introduction to Summary.
Read more >
Fixed Issues - Ivanti
User Certificate authentication fails in Mac OS when a generic exception occurs during the certificate structure is validation. PRS-403552. Client cert ...
Read more >
Trouble opening installer/software on Mac OSX Catalina, Big ...
Solution: Make sure you have dragged the installer package to /Applications to complete the installation. Our users have found that dragging the ...
Read more >
Deploy Take Control Agent with Group Policy and Active ...
Solution · Sign in to your Admin Area · Go to Devices · Select Add Device · Set the Operating System field to...
Read more >
Can NSIS be used to package MSI installers? - Stack Overflow
Use x64.nsh to detect the platform and then extract & execute. Something like this: !include x64.nsh Section Initpluginsdir ${If} ...
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