Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exe and Msi installers produce 2 different applications #6683

Open
livlign opened this issue Mar 1, 2022 · 6 comments
Open

Exe and Msi installers produce 2 different applications #6683

livlign opened this issue Mar 1, 2022 · 6 comments

Comments

@livlign
Copy link

livlign commented Mar 1, 2022

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

@stale
Copy link

stale bot commented Apr 30, 2022

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 stale bot added the backlog label Apr 30, 2022
@shrinidhi111
Copy link

Yes, still the case

@stale stale bot removed the backlog label May 10, 2022
@themastersoda
Copy link

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.

@sashytelt
Copy link

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

@gujinku
Copy link

gujinku commented Jun 28, 2022

Same here. Is this behavior by design?

@ghost1face
Copy link
Contributor

ghost1face commented Feb 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants