Skip to content

Change installation directory when not using 'oneClick' with NSIS #596

@gswebspace

Description

@gswebspace

electron-builder version

  • 5.12.1

Building for

  • windows nsis x64

Building on

  • linux x64(Ubuntu 16.04)

Assuming 'oneClick' is set to false for NSIS, and two package.json scheme is used with the development package.json having the build object as follows -

"build": {
    "appId": "com.somerandom.name",
    "productName": "RandomName",
    "asar":false,
    "win": {
      "target": "nsis",
      "title": "TitleValue",
      "version": "1.0.0",
      "authors": "User Name"
    },
    "nsis":{
      "oneClick": false
    }
  }

The Installation directory(tested with Windows 10) defaults to

C:\Users\username\AppData\Local\Programs\appname

How can the user be allowed to change the installation directory ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions