Try using the
OLDPRODUCTS property. Its value is a list with the Product Codes of the older versions of your installation package. This property is set only in a package which upgrades another package.
Maybe the
How do I uninstall another MSI package when my application is uninstalled? article can help.
Keep in mind Windows Installer can perform the uninstall automatically for you. Read more in the
Upgrade page.
All the best,
Mihai
FOLLOW US
Get the latest news in Application Packaging