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.

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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
kossolaxcommented, Mar 13, 2017

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.

The process cannot access the file because it is being used by another process.

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.

0reactions
kossolaxcommented, May 16, 2017

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:

    "nsis": {
      "artifactName": "${productName}Installer.${version}.${ext}",
      "installerIcon": "resources/images/logo.ico",
      "installerHeaderIcon": "resources/images/logo.ico",
    },
    "portable": {
      "artifactName": "${productName}Portable.${version}.${ext}"
    }

I hope this help.

Read more comments on GitHub >

github_iconTop 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 >

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