Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows installer #437

Closed
simonlast opened this issue May 24, 2016 · 4 comments
Closed

Windows installer #437

simonlast opened this issue May 24, 2016 · 4 comments

Comments

@simonlast
Copy link

The windows output seems to export a folder with a bunch of files, including a .exe. What is the recommended way to distribute this? I tried zipping the whole folder and that seemed to work, but when I tried just the .exe it threw an error.

@develar
Copy link
Member

develar commented May 25, 2016

https://github.com/electron-userland/electron-builder#in-short step 4 "And then you can run npm run pack or npm run dist (to package in a distributable format (e.g. dmg, windows installer, deb package)). Both scripts are the same because If script named dist or name has prefix dist:, flag --dist is implied."

Related: #413

@VerteDinde
Copy link

VerteDinde commented Sep 13, 2017

@develar So sorry to comment on an old issue, but I'm having a similar problem and it looks as though the docs and functionality has changed somewhat since this issue was opened.

Context: My Mac build is working perfectly, but the Windows build is only producing the .exe file and a win-unpacked full of files - no .nupkg or others.
Version: electron-builder: 19.12.0
electron-builder.json:

  },
  "win": {
    "target": "nsis"
  },
  "nsis": {
    "perMachine": true
  }

Thanks so much!

@develar
Copy link
Member

develar commented Sep 14, 2017

Default target now is nsis, not Squirrel.windows

@VerteDinde
Copy link

@develar Gotcha! Sorry, just to clear, is the output of the NSIS target only an .exe file, or also an .msi and .nupkg?

I'm trying to generate an .msi specifically, but am having trouble doing so through the NSIS target. I had read through the NSIS target docs here (https://www.electron.build/configuration/nsis), but couldn't find the value to pass in. I had tried both "noMsi: false" and "msi: true" and both threw errors.

Thanks so much! I really like your tool and would be happy to make a docs PR. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants