I have tested this (on a system upgraded from 8.5 to 8.5.1) and did not see a problem building distributions that upgrade each other.
It is expected that the package code changes every build. That is actually the defining characteristic of the package code. From an
MSDN doc:
No two nonidentical .msi files should ever have the same package code.
If you are not seeing proper upgrading, I would first double check that your distribution's version number is 1) higher in the newer build of the distribution, and 2) being autoincremented on each build. Next I would use Orca to compare the UpgradeCode GUIDs (in the Properties table) of the two MSIs and ensure they are the same. Next, take a look at the Upgrade table. It should look like the attached screenshot (except with a different upgrade code and version numbers).
Are you ending up with two separate installations of your application? How do you know that the older installation is not being removed? Another very useful thing would be to get an installer log. On a system that has an existing installation, try running a newer version of the distribution from the command line like this:
setup.exe /log installLog.txt
If you could post that log, along with the the new and old MSI files, I could probably figure out what the issue is.

Message Edited by Mert A. on
06-20-2008 11:15 AM