Ali Altaf
Ali Altaf

Reputation: 400

Electron builder Application name in programs list without version on windows

Im using electron builder and have set name and productName in package.json of my electron app, but when I make the installer using nsis and install the application on windows, In the applications list or programs list in windows settings it shows version in the name of the application which I dont want, so is there configuration of electron-builder or nsis that I can use to make that work ? You can see the issue here

Upvotes: 4

Views: 7938

Answers (2)

255kb - Mockoon
255kb - Mockoon

Reputation: 6974

According to the documentation you can use the uninstallDisplayName option to define a different name for the uninstall menu:

"build": {
  "productName": "MyApp",
  "nsis": {
    "artifactName": "MyApp.setup.${version}.${ext}",
    "uninstallDisplayName": "MyApp"
  },
  ...
}

Upvotes: 10

Hai Pham
Hai Pham

Reputation: 2225

You just have to put your version in package.json For example:

{
  "name": "MyApp",
  "version": "1.0.1",
  "build": {
     ...
  }
}

Upvotes: 0

Related Questions