'Electron builder - define appId for MSI installer
I'm facing this issue when using electron builder to create EXE and MSI installer. These 2 installers will install 2 different applications to my pc, as I can see 2 identical app showing in Control Panel>Uninstall, the exe has version like 1.0.0 and msi has version 1.0.0.0
Look further to the registry, I see they created 2 keys GUID under Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
The key for exe path probably is the hash of appId while I don't know what would be the key for msi. What I want to achieve is they would end up in the same key, or in other words, when I install the exe version first then install msi version, it should overwrite the existing installed version (from previously exe install).
Hence this questions:
- Is it possible to define appId when build with target msi?
Maybe I'm looking for a workaround or trick since they have written this in the doc, but who knows, just some hope I guess:
appId = com.electron.${name} String | “undefined” - The application id. Used as CFBundleIdentifier for MacOS and as Application User Model ID for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
