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

[MM-61994] Fix UpgradeCode to use the old one, allow MSI to uninstall both #3237

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

devinbinnie
Copy link
Member

Summary

An issue with the newer MSI installer (present since v5.9) was that it would not uninstall previous versions installed by the old MSI installer. This was due to a change in the UpgradeCode, which was manually created for the old MSI, and automatically generated by electron-builder for the new one. electron-builder did support a way to prescribe it, but I had missed adding that.

This PR both adds the original UpgradeCode that we used from the old MSI, as well as adds another step to the new installer that will uninstall versions v5.9 and v5.10 that used the auto-generated UpgradeCode. This alongside the script that uninstalls the EXE should make sure the app uninstalls all other versions of the Desktop App before proceeding to install the new one.

Ticket Link

https://mattermost.atlassian.net/browse/MM-61994

Fixed an issue where the new MSI installer would not uninstall versions before v5.9 installed via MSI

@devinbinnie devinbinnie added this to the v5.11.0 milestone Dec 3, 2024
@devinbinnie devinbinnie requested review from a team and sbishel and removed request for a team December 3, 2024 18:15
@devinbinnie devinbinnie added the 2: Dev Review Requires review by a core committer label Dec 3, 2024
@devinbinnie devinbinnie added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Dec 4, 2024
@devinbinnie devinbinnie merged commit c08b1f3 into master Dec 4, 2024
37 of 38 checks passed
@devinbinnie devinbinnie deleted the MM-61994 branch December 4, 2024 16:32
@devinbinnie
Copy link
Member Author

/cherry-pick release-5.10

@mattermost-build
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit that referenced this pull request Dec 9, 2024
… both (#3237)

Co-authored-by: Devin Binnie <[email protected]>
(cherry picked from commit c08b1f3)
@mattermost-build mattermost-build added the CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone label Dec 9, 2024
devinbinnie added a commit that referenced this pull request Dec 9, 2024
devinbinnie added a commit that referenced this pull request Dec 9, 2024
* [MM-61994] Fix UpgradeCode to use the old one, allow MSI to uninstall both (#3237)

Co-authored-by: Devin Binnie <[email protected]>

* [MM-62029] Require MSIINSTALLPERUSER for auto update to work (#3239)

Co-authored-by: Devin Binnie <[email protected]>

* [MM-60416] Check for the presence of the EXE uninstaller before trying to run it (#3238)

Co-authored-by: Devin Binnie <[email protected]>

---------

Co-authored-by: Devin Binnie <[email protected]>
devinbinnie added a commit that referenced this pull request Dec 9, 2024
devinbinnie added a commit that referenced this pull request Dec 9, 2024
* [MM-61994] Fix UpgradeCode to use the old one, allow MSI to uninstall both (#3237)

Co-authored-by: Devin Binnie <[email protected]>

* [MM-62029] Require MSIINSTALLPERUSER for auto update to work (#3239)

Co-authored-by: Devin Binnie <[email protected]>

* [MM-60416] Check for the presence of the EXE uninstaller before trying to run it (#3238)

Co-authored-by: Devin Binnie <[email protected]>

---------

Co-authored-by: Devin Binnie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants