Windows: Create exe with one name & use another for the add/remove programs list
See original GitHub issue-
Version:
"electron-builder": "^20.9.0"
-
Target: Windows: NSI
Hello, I am after some help in creating my Electron application for windows using NSI which creates the installer for me.
I wish to have Electron to produce the exe as one name and to have a different name used for the add/remove programs uninstall list.
Here is a copy of my build section from my package.json
"build": {
"appId": "lucene.index.explorer",
"productName": "Lucene Index Explorer",
"extraResources": {
"from": "../LIE.Server/bin/dist/",
"to": "LIE.Server/bin/dist/",
"filter": [
"**/*"
]
},
"win": {
"target": [
"nsis"
],
"icon": "build/icon.png"
},
"nsis": {
"deleteAppDataOnUninstall": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "Lucene Index Explorer",
"artifactName": "LIE.Setup.${version}.${ext}"
}
}
So if I set productName
to LIE
which will generate a LIE.exe
and the Desktop and Start Menu shortcut shows up as Lucene Index Explorer
by using shortcutName
however in the Add or Remove Programs list it displays as LIE as opposed to Lucene Index Explorer.
Is there any config setting I have missed or can use, so I can achieve this please?
This will just make life easier for people viewing the running processes with Task Manager on Windows to see the running LIE.Server process and the main LIE application along side each in the list of processes IMO.
Look forward to hearing back from you.
Thanks, Warren 😃
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
@warrenbuckley I don’t think this is currently possible, as
productFileName
(which is later used to identify the actual output file name - the one you are trying to change) is generated based onproductName
using simple sanitization.If I’m right and this is the case though, it shouldn’t be too hard to add the
productFileName
option to the configuration file and only fall back onproductName
if it’s not provided.https://github.com/electron-userland/electron-builder/blob/2dda5fcb45d99a0a991d195a2f577e3dbca775eb/packages/electron-builder-lib/src/appInfo.ts#L32-L33
Feel free to close this and re-open if it its needed.