Skip to content

nsis - portable & installer #1340

@kossolax

Description

@kossolax
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions