electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Exe and Msi installers produce 2 different applications

Open livlign opened this issue 3 years ago • 7 comments

  • 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!

livlign avatar Mar 01 '22 12:03 livlign

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.

stale[bot] avatar Apr 30 '22 19:04 stale[bot]

Yes, still the case

shrinidhi111 avatar May 10 '22 09:05 shrinidhi111

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.

themastersoda avatar May 25 '22 13:05 themastersoda

I am facing the same issue, maybe there are some workarounds around here?

sashytelt avatar Jun 01 '22 10:06 sashytelt

Same here. Is this behavior by design?

gujinku avatar Jun 28 '22 06:06 gujinku

I just made an attempt at this through #7407 so far my changes seem to be working pretty well in my testing and validation

ghost1face avatar Feb 02 '23 07:02 ghost1face