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

Windows: Enable MSI installer to upgrade between feature versions #872

Merged

Conversation

micahsnyder
Copy link
Contributor

@micahsnyder micahsnyder commented Mar 26, 2023

The MSI installer can find previous ClamAV installs to non-standard locations such at D:\ClamAV instead of C:\Program Files\ClamAV but only if upgrading to a new patch version of the same feature version.

E.g. can find an upgrade 1.0.0 to 1.0.1, but cannot automatically find and upgrade 1.0.1 to 1.1.0.

This change will make it so all minor feature versions will store the install path to the same key in the registry.

A consequence of this change is that you can no longer install multiple feature versions of ClamAV using the MSI installer. If you want multiple ClamAV minor versions installed on Windows you will need to install using the ZIP package.

This change will not allow the MSI installer to automatically find and upgrade across different major versions.
E.g. cannot find and upgrade 0.105.2 to 1.1.0 because the former is major version 0, and the latter is major version 1. This is intentional because it is more likely that there will be breaking changes to config files and other user interfaces when we go to ClamAV 2.0.0.

Fixes: #861

The MSI installer can find previous ClamAV installs to non-standard
locations such at D:\ClamAV instead of C:\Program Files\ClamAV but only
if upgrading to a new patch version of the same feature version.

E.g. can find an upgrade 1.0.0 to 1.0.1, but cannot automatically find
and upgrade 1.0.1 to 1.1.0.

This change will make it so all minor feature versions will store the
install path to the same key in the registry.

A consequence of this change is that you can no longer install multiple
feature versions of ClamAV using the MSI installer.
If you want multiple ClamAV minor versions installed on Windows you will
need to install using the ZIP package.

This change will not allow the MSI installer to automatically find and
upgrade across different major versions.
E.g. cannot find and upgrade 0.105.2 to 1.1.0 because the former is
major version 0, and the latter is major version 1.
This is intentional because it is more likely that there will be
breaking changes to config files and other user interfaces when we go to
ClamAV 2.0.0.
@micahsnyder micahsnyder merged commit 4e3008a into Cisco-Talos:main Mar 30, 2023
21 of 24 checks passed
@micahsnyder micahsnyder deleted the CLAM-2286-msi-upgrade-guid branch March 30, 2023 03:19
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.

msi installer doesn't detect old versions of clamAV installed under a non-standard pathname.
2 participants