If multiple versions of the same product are installed, can a property be used to check for the a newer version and add a condition message and prevent an uninstall?
- WebSite 1.0.0 - Base Files (MajorUpgrade)
- WebSite 1.0.1 - Minor updates to files
- WebSite 1.1.0 - Base Files (MajorUpgrade)
Use case: Both WebSite 1.0.0 and WebSite 1.0.1 are installed on the webserver using the MSI package. When WebSite 1.0.0 is being uninstalled, I need to be able to prevent this if a newer version exists.
I considered using conditions but not sure if this is the best way to go.
<Condition Message="Newer version of the product must be removed">
Installed OR PRODUCTVERSION > 1.0.0
</Condition>
When WebSite 1.1.0 is installed it will remove the previous version because it has the base set of files needed.