Skip to content

nsis to use productName rather than name for install path #1100

@timfish

Description

@timfish
  • electron-builder@11.2.0
  • win32

pacakge.json

{ 
  "name": "myapp",
  "productName": "My App",
  "author": "My Company",

...
    "nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true,
      "menuCategory": true,
      "runAfterFinish": false
    },

On selecting per machine install, the default path is:

C:\Program Files (x86)\My Company\myapp

Whereas I was hoping for:

C:\Program Files (x86)\My Company\My App

I simply want to do this to match the existing installers of My Company.

Obviously productName can contain characters which are not valid for use in file paths, so this functionality as a default might not be a good idea.

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