Instead of using the old Upgrade authoring, use the MajorUpgrade authoring and take a look at the AllowSameVersionUpgrades attribute. Note that this is a really bad idea(tm) in the field.
-- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.® Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: Ben Metheny [mailto:benmeth...@gmail.com] Sent: Friday, May 30, 2014 11:03 AM To: WiX-users@lists.sourceforge.net Subject: [WiX-users] Uninstall then Reinstall Same Package I have a requirement to allow 'overwrite' of same version. I've tried various combinations of <Upgrade>, here is my current: <Upgrade Id="INSERT_GUID_HERE"> <UpgradeVersion OnlyDetect="yes" Property="SELFFOUND" Minimum="1.0.0" IncludeMinimum="yes" Maximum="1.0.0" IncludeMaximum="yes" /> <UpgradeVersion OnlyDetect="yes" Property="NEWERFOUND" Minimum="1.0.1" IncludeMinimum="no" /> </Upgrade> and in InstallExecuteSequence I have: <RemoveExistingProducts Before="InstallInitialize" /> I think the 'right' thing to do is to require uninstall and then reinstall 'manually', but my requirement is to allow user to go through installer forms - using custom managed BA - and change values, including 'INSTALLLOCATION'. I've been able to handle a 'Modify' operation correctly in the BA, showing all required screen with values from previous install filled. Is there some way to force MSI to uninstall itself then install again? I suppose I could, from the BA, run the msi with /uninstall options then run it again with /install options but is this the best way to do something like that? ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users