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:
- Created 3 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.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.