question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
skreborncommented, Apr 22, 2018

@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 on productName 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 on productName if it’s not provided.

https://github.com/electron-userland/electron-builder/blob/2dda5fcb45d99a0a991d195a2f577e3dbca775eb/packages/electron-builder-lib/src/appInfo.ts#L32-L33

0reactions
warrenbuckleycommented, Jul 2, 2019

Feel free to close this and re-open if it its needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Manually Remove Programs from the Add/Remove ...
Click Start, click Run, type regedit in the Open box, and then press ENTER. Locate and click the following registry key: HKEY_LOCAL_MACHINE\Software\Microsoft\ ...
Read more >
Program Is Not Listed in Add/Remove Programs After Installation
Shorten the Registry Key Name. Run Regedit.exe to view the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall Click ...
Read more >
Removing Invalid Entries in the Add/Remove Programs Tool
Start Registry Editor (Regedit.exe). · Locate the following key: · Locate the key to be deleted by locating the key name created by...
Read more >
Where does Add/Remove Programs get its information from in ...
So if I create a subkey under HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall and name it MyProgram then it will show up in Add/Remove ...
Read more >
Installed programs are incorrectly displayed - Windows Client
Resolution · Run Winnt32.exe from the \I386 directory. · When the Setup screen appears, proceed the upgrading. · Allow installation to complete.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found