nsis - portable & installer
See original GitHub issue- Version: 14.5.3
- Target: win64 - nsis/portable
When you are building both portable and installer, building fails. I’m using electron-builder@14.5.3
Exception: The process cannot access the file because it is being used by another process. package.json:
"win": {
"target": ["nsis", "portable"],
},
"nsis": {
"unicode": false,
"artifactName": "${productName}Installer.${version}.${ext}",
}
I suppose both output have the same artifactName and the same temporary file name (.nsis.7z), Can we also have a new file macro depending on installer-portable version we are building? ${productName}${buildTarget}.${version}.${ext}
Thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:12 (10 by maintainers)
Top Results From Across the Web
NSIS Portable (Windows installer creator) | PortableApps.com
NSIS (Nullsoft Scriptable Install System) Portable is a professional open source system to create standard Windows installers (as well as our launchers).
Read more >Download - NSIS - SourceForge
If you work frequently with NSIS scripts you might want to download a more complete development environment.
Read more >NSIS Portable 3.08.0.5 free download - Downloadcrew
NSIS (Nullsoft Scriptable Install System) is a very capable open source tool for creating Windows installers. It's fast, and extremely ...
Read more >PortableApps.com - Browse /NSIS Portable at SourceForge.net
Name Modified InfoDownloads / Week
Plugins and Addons 2020‑01‑20 0
Additional Versions 2013‑08‑20 3
NSIS Portable 2.46 Rev 2 2010‑06‑30 0
Read more >Use NSIS to create both normal install and portable install
The current way we create our portable installs is to install the game normally (using the NSIS-built installer), then zip the install ......
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’ve updated to 15.4.2, but building still fail. I suppose your previous patch fix when you don’t set a artifactName at all. Sorry to insist, but it’s look like we don’t understand each others.
If I build only a portable version it works. If I build only a nsis installer version it works. If I build both at the same time by setting “target”: [“nsis”, “portable”]" it still doesn’t work.
I’m pretty sure it’s because both process run in parallel, and both trying to build the archive with the same temporary name “designer-0.5.1-x64.nsis.7z”. Please note the “temporary name” is not the same as the final artifact name. “DesignerInstaller.0.5.1.exe”
I hope this clarify issue.
Hello again, The issue is still present on lastest release, but the issue is only present when you specify a custom artifact name.
Otherwise the compilation produce correctly the 2 outputs.
https://github.com/electron-userland/electron-builder/blob/master/packages/electron-builder/src/targets/nsis.ts#L132
But it doesn’t with that’s kind of config:
I hope this help.