Rocket.Chat.Electron icon indicating copy to clipboard operation
Rocket.Chat.Electron copied to clipboard

Msi Windows package do not remove old version

Open KarimH22 opened this issue 2 years ago • 8 comments

Describe the bug When I launch the msi package it installed the new version without removing old version unlike exe package

Configuration Windows 10 Pro 20H2 , 19042.928 Rocket Chat.Electron Desktop 3.6 msi package / 3.3

To Reproduce

  1. Installed one version RocketChat Electron vn.y
  2. Get the msi package vn.z
  3. Run msi
  4. After installation, Windows see vn.y and vn.z RocketChat Electron

Expected behavior msi package shall remove previous version on desktop and install new, not the case, same issue than auto update not working

You should remove msi package from your build.

KarimH22 avatar Dec 07 '21 07:12 KarimH22

Auto update is fixed in the lastest releases. You are running msi installer for the first version?

jeanfbrito avatar Jan 14 '22 17:01 jeanfbrito

Hi I did the following actions on Windows 10:

  1. installation of version 3.7.3 with exe package (only user/for all)
  2. I took the 3.7.5 msi package and ran it => Result both versions are installed , msi is only 190Mo and exe is 490 Mo

For me the expected result should be more that msi package removed the old one and put the new one

look this screenshot another version installed rocketchatissue_msiVSexe

KarimH22 avatar Jan 16 '22 22:01 KarimH22

Maybe this is the problem, start installing using the .exe and after using .msi installer. Seems like the .exe is installing differently from the .msi and right now I cant say if this is the right behaviour. Thanks for clarifying.

jeanfbrito avatar Jan 17 '22 11:01 jeanfbrito

Can someone please help to fix this issue? I use msi to install, but after clicking to update the new version, there will be 2 versions, if you install it with exe, there will be no problem

t10430 avatar Jan 20 '22 08:01 t10430

This is some issue with the electron builder that we use to create the installers. I'm trying to find a fix.

jeanfbrito avatar Jan 20 '22 22:01 jeanfbrito

Please test if the issue happens using the same installer with our latest releases. I tested and didn't found the problem.

jeanfbrito avatar Jun 24 '22 19:06 jeanfbrito

Hello sorry but the issue is still present I installed only for me as a user the version 3.8.6 within the rocketchat-3.8.6-win.exe installer Then I downloaded rocketchat-3.8.7-win-x64.msi and ran it.

When I ran Rocket-Chat from windows menu, indeed I can see that version is 3.8.7 BUT as you can see the last installation was put inside %APPDATA%/Local/programmes/rocketchat and not overwrite %APPDATA%/Local/programmes/Rocket.Chat (and maybe not removed the windows register value) So that Windows still see 2 Rocket Chat installation/versions.

rocketchat_2instances_appdatalocalpath rocketchat_2instancesjpg rocketchat_lastversion

KarimH22 avatar Jun 25 '22 18:06 KarimH22

I'm investigating on how to fix this. For now keep using the same version of installer instead of mixing .exe with .MSI. the MSI installer install differently and I didn't found why electron builder do this yet.

jeanfbrito avatar Jul 03 '22 14:07 jeanfbrito