I created an installation package (via WIX) that takes advantage of instance conversion, which allows you to install it several times on the same computer. Without thinking about it, I also added support for major updates (as I did many times before).
Today the new version of the product was installed for the first time, and the behavior was not quite what I expected: despite the fact that the installation was aimed at a new instance, it seems that all other instances (all in the older version) were deleted.
Looking back, this was not particularly surprising because all instances use the same update code. According to the documentation for the FindRelatedProducts action, this and the version are the only criteria for determining which products should be targeted for removal.
How can I create this installation package so that when installing a new version, only the target instance is updated and the other instances are left alone?
I suspect the answer may be that I should completely remove the โmain updateโ function, but I have seen several installation examples with multiple instances that use it, so I'm not sure. In addition, it occurs to me that I am probably not processing the product code correctly because it needs to be updated using the version number, but the conversion transforms use a fixed product code. For some reason I do not think that this is the problem, but I thought that I should mention this just in case.
source share