Classification: Public Thanks very much Phil I will do a: <Custom Action="CA_CheckIfServerOnLine" After="InstallInitialize">OLDERVERSIONBEINGUPGRADED OR UPGRADINGPRODUCTCODE AND SERVER_INSTALL="0"</Custom> >
Thanks, Steve -----Original Message----- From: Phil Wilson [mailto:phil.wil...@mvps.org] Sent: May-10-13 10:25 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Condition for Upgrading... Major upgrades have a property that gets set when the older version is found. To use Bob's example: <!- Major upgrade -> <Upgrade Id="$(var.UpgradeCode)"> <UpgradeVersion Minimum="$(var.ProductVersion)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" /> <UpgradeVersion Minimum="1.0.0" IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no" Property="OLDERVERSIONBEINGUPGRADED" /> </Upgrade> OLDERVERSIONBEINGUPGRADED can be used as your condition. If you're referring to an installed product that is being uninstalled and upgrades, use UPGRADINGPRODUCTCODE as the condition. Phil -----Original Message----- From: StevenOgilvie [mailto:sogil...@msn.com] Sent: Thursday, May 09, 2013 11:43 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Condition for Upgrading... Hi folks, I am confused, I looked within the WIX userlist and Googled this but I seem to have mixed results... I want to run a custom action on an Upgrade only.. I currently have it as: <Custom Action="CA_CheckIfServerOnLine" After="InstallInitialize">NOT Installed AND SERVER_INSTALL="0"</Custom> But in some cases it is being run on a fresh install :( I am using the MajorUpgrade element for upgrades... Thanks, Steve -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Condition-for- Upgrading-tp7585775.html Sent from the wix-users mailing list archive at Nabble.com. ---------------------------------------------------------------------------- -- Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on May-10-13 12:51:02 PM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users