Sorry I have not been following this thread but if all you are trying to do is remove old installs then you only need OLDERVERSIONx elements, I tend to make the version number the biggest value possible e.g. <Upgrade Id="E67489D8-3F90-4BF9-84F4-CB0FEQQ920C7"> <UpgradeVersion Minimum="0.0.0" Maximum="127.254.32767" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSION1" /> </Upgrade>
This will remove an install with the upgrade code E67489D8-3F90-4BF9-84F4-CB0FEQQ920C7 and any version number. (The weird Maximum value gets around a bug in one of the ICE validations otherwise it could be 255.255.32767.) Neil -----Original Message----- From: Vern Graner [mailto:v...@txis.com] Sent: 15 February 2013 23:52 To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Question on multiple targets for "Upgrade ID"? SOLVED OK, just wanted to share how I got this working.. It was a matter of adding multiple upgrade code sections and using incrementing unique property names like this: <!-- ============ All old versions UPGRADE IDs START ================== --> <Upgrade Id="E67489D8-3F90-4BF9-84F4-CB0FEQQ920C7"> <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSION1" /> <UpgradeVersion Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSION1" /> </Upgrade> <Upgrade Id="30CGGA79-4FG4-4F32-B1B0-ED50584AQQC1"> <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSION2" /> <UpgradeVersion Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSION2" /> </Upgrade> <Upgrade Id="6DD6FDDB-QRGF-4726-8108-0B5BQQQB7236"> <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSION3" /> <UpgradeVersion Minimum="0.0.0" Maximum="$(var.ProductVersion)" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSION3" /> </Upgrade> <!-- ============ All old versions UPGRADE IDs END ================== --> Thanks to Phil for the hints! :) Vern -- Vern Graner CNE/CNA/SSE | "If the network is down, then you're Senior Systems Engineer | obviously incompetent so why are we Texas Information Services | paying you? Of course, if the network http://www.txis.com | is up, then we obviously don't need Austin Office 512 328-8947 | you, so why are we paying you?" (c)VLG ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users