Doing the upgrade with a verbose log will tell you if it's finding the previous 
product. One gotcha when everything else looks correct is that the older 
install could have per user (or per system) and your upgrade is the opposite. 

Phil W 

-----Original Message-----
From: Daniel Sniderman [mailto:dani...@magenic.com] 
Sent: Friday, March 16, 2012 9:47 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Migration from VS Setup Project to WIX - not uninstalling

We are currently using a Visual Studio 2010 Setup project to generate the MSI 
for our application and I'm developing a replacement in WIX.  Currently - it's 
not uninstalling the previous (Visual Studio generated) installation.  I found 
a solution on Stack Overflow - but it's not working.
I used Orca to find the UpgradeCode for the previous installation and that is 
what I'm using

Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Product Id="*" Codepage="1252" Language="1033" Manufacturer="Abbott 
Laboratories" Name="$(var.Name)" 
UpgradeCode="{52E1A44E-FE13-48CE-8599-CDEDDB569F70}"
           Version="3.5.7" >
    <Package Compressed="yes" InstallerVersion="300" Languages="1033" 
Manufacturer="Abbott Laboratories" Platform="x86"  />
    <Upgrade Id="{52E1A44E-FE13-48CE-8599-CDEDDB569F70}" >
      <!--<UpgradeVersion OnlyDetect="yes" Minimum="$(var.Version)" 
Property="NEWERVERSIONDETECTED" IncludeMinimum="no" />
      <UpgradeVersion OnlyDetect="no" Maximum="$(var.Version)" 
Property="OLDERVERSIONBEINGUPGRADED" IncludeMaximum="no" />-->
      <UpgradeVersion
            Minimum="1.0.0.0" Maximum="99.0.0.0"
            Property="PREVIOUSVERSIONSINSTALLED"
           IncludeMinimum="yes" IncludeMaximum="no" />
    </Upgrade>
    <Property Id="PREVIOUSVERSIONSINSTALLED" Secure="yes" />
    <InstallExecuteSequence>
      <RemoveExistingProducts After="InstallInitialize" />
    </InstallExecuteSequence>



Daniel P. Sniderman| Sr Consultant| Magenic
MCSD.NET, MCTS: Team Foundation Server 2010 Administration

333 E. Butterfield Rd. Suite 100, Lombard, IL 60148
Mobile: 847-668-4882  | eFax 847-390-7810
magenic.com | dani...@magenic.com<mailto:dani...@magenic.com>


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to