electron-builder
electron-builder copied to clipboard
Exe and Msi installers produce 2 different applications
- Electron-Builder Version: 22.13.1
- Node Version: 14.0
- Target: nsis,msi
I have set up my builder with settings below
win: {
target: ["nsis", "msi"],
},
nsis: {
oneClick: false,
perMachine: true,
allowElevation: true,
installerIcon: "${installerIcon}",
license: "${license}",
menuCategory: "${menuCategory}",
uninstallDisplayName: "${productName}",
},
msi: {
oneClick: true,
perMachine: true,
menuCategory: "${menuCategory}",
uninstallDisplayName: "${productName}",
}
After processing, I can see 2 files EXE and MSI created. But if I install both of them, there will be 2 identical apps in Control Panel, same name but difference versions, e.g. 3.3.1 (exe) and 3.3.1.0 (msi). If I uninstall one, the other can still be used normally.
Just wondering is it the expected behavior? Can I just have one app showing in Control Panel or am I missing some configurations. Since they are the same app obviously, I just want them to override the existing version, not create another one.
Many thanks!
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Yes, still the case
This is still happening on latest version. Also, due to this issue MSI installer does not work correctly with auto-updater. latest.yml contains only entry about .exe file, so when looking for updates, it downloads the .exe installer and tries to install it, resulting in 2 separate installations of the same app on user machines. Also, seems like installation path is different for msi and nsis, even though they are configured identically.
I am facing the same issue, maybe there are some workarounds around here?
Same here. Is this behavior by design?
I just made an attempt at this through #7407 so far my changes seem to be working pretty well in my testing and validation