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

Adding versioning info to Windows binaries to fix the MSI upgrade #19397

Merged
merged 3 commits into from Oct 4, 2023

Conversation

pereyra-m
Copy link
Member

@pereyra-m pereyra-m commented Oct 3, 2023

Related issue
Closes #19379

Description

It was found that the upgrade fails because the installer has an "omus" (https://learn.microsoft.com/en-us/windows/win32/msi/reinstallmode) behavior by default, and after restoring the files to their previous state (without version), the .msi installer ignores them after deleting the previous ones.

It was decided that modifying this setting in the installer might be dangerous, so the version info was added.
These changes were taken from #13017 (thank you @jnasselle ).

Tests

The details are now filled
2023-10-03_23-19

A future v5.0.0-1 was simulated with the bump version script, and the upgrade was successfull
2023-10-03_23-41

  • Compilation without warnings in every supported platform
    • Windows
  • Package installation
  • Package upgrade
  • QA templates contemplate the added capabilities

@pereyra-m pereyra-m self-assigned this Oct 3, 2023
@pereyra-m pereyra-m linked an issue Oct 3, 2023 that may be closed by this pull request
@pereyra-m pereyra-m force-pushed the bug/19379-windows-msi-installer branch 6 times, most recently from 34e892a to ce2e1d0 Compare October 3, 2023 21:43
@pereyra-m pereyra-m force-pushed the bug/19379-windows-msi-installer branch 7 times, most recently from 3872aae to b69eff6 Compare October 4, 2023 01:25
@pereyra-m pereyra-m force-pushed the bug/19379-windows-msi-installer branch from b69eff6 to 0a3051d Compare October 4, 2023 01:37
@pereyra-m pereyra-m force-pushed the bug/19379-windows-msi-installer branch from 7bbe5f9 to 24450be Compare October 4, 2023 02:00
@pereyra-m pereyra-m marked this pull request as ready for review October 4, 2023 02:01
Copy link
Member

@Dwordcito Dwordcito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

All files are upgraded after executing the MSI installer.
image

@Dwordcito Dwordcito merged commit c8f1124 into 4.5.3 Oct 4, 2023
79 of 81 checks passed
@Dwordcito Dwordcito deleted the bug/19379-windows-msi-installer branch October 4, 2023 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error updating Windows agent using MSI Package
2 participants