I have been wracking my brain on this for a day and a half. I am trying 
to make an installer that will uninstall the older version of the 
software and install the new. The old version is in the registry as 2.1 
and the new one I am trying to install is 2.2.1

For the life of me, I cannot create an msi file that uninstalls the old 
version and installs the new. I have worked through the tutorial linked 
from wixtoolset.org, and have googled around the net looking for a 
solution to this. It keeps coming back and telling me:

"Another version of this product is already installed. Installation of 
this version cannot continue. To configure or remove the existing 
version of this product, use Add/Remove Programs on the Control Panel."

(I am using a Windows 2003 server instance as my development environment).

I have a wxs file that begins with:

   <Product Name="SomeProduct Scanner $(var.VersionNo) Build 
$(var.BuildVersion)" Id="$(var.ProductCode)" 
UpgradeCode="$(var.UpgradeCode)"
     Language="1033" Codepage="1252" Version="$(var.VersionNumber)" 
Manufacturer="Some Business">

     <Package Id="*" Keywords="Installer"
       Description="SomeProduct $(var.VersionNumber) Build 
$(var.BuildVersion) Installer"
       Comments="SomeProduct is a registered trademark of Some Business" 
Manufacturer="Some Business"
       InstallerVersion="100" Languages="1033" Compressed="yes" 
SummaryCodepage="1252" />

     <Media Id="1" Cabinet="SomeProduct.cab" EmbedCab="yes" />

     <Upgrade Id="$(var.UpgradeCode)">
         <UpgradeVersion Property="OLD_VERSION_FOUND"
             Minimum="0.0.0"
             IncludeMinimum="yes"
             Maximum="$(var.VersionNumber)"
             IncludeMaximum="no"
             OnlyDetect="no"
             IgnoreRemoveFailure="yes"
             MigrateFeatures="yes"
             Language="1033" />
     </Upgrade>

     <InstallExecuteSequence>
       <RemoveExistingProducts After="InstallInitialize" />
     </InstallExecuteSequence>

-- 
Tim Hawes
Programmer
haw...@anx.com
Direct: 919-695-4282
Cell: 919-656-2135


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to