Electron builder Application name in programs list without version on windows

Viewed 4985

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

2 Answers

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"
  },
  ...
}

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

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