Thank you to everyone who helped, I got it working in the end. It just took
a while to sink in.

 

From: Neil Sleightholm [mailto:[EMAIL PROTECTED] 
Sent: 06 March 2008 13:21
To: Ryan O'Neill; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Unable to force upgrade

 

Ryan

 

I thought this might help you, it is my bare minimum template install.

 

Neil

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- 

                Simple WiX template - This example installs a file in to a
directory. 

-->

 

<!-- This is application version number, update for each release -->

<?define Version = "1.0.1" ?>

 

<Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi";>

  <Product Id="????????-????-????-????-????????????" Name="Simple WiX
template $(var.Version)" Language="1033" Version="$(var.Version)"
Manufacturer="ACME" UpgradeCode="10B99CC9-5D83-4489-82F3-368E772B803D">

    <Package Id="????????-????-????-????-????????????" Description="Simple
WiX template Installation" InstallerVersion="200" Compressed="yes" />

 

    <!-- Support Information shown in Add/Remove programs (this is optional)
-->

    <Property Id="ARPCOMMENTS"><![CDATA[Simple WiX template]]></Property>

    <Property Id="ARPCONTACT"><![CDATA[WiX]]></Property>

 

    <CustomAction Id="NewerVersion" Error="A later version of [ProductName]
is already installed." />

 

    <Directory Id="TARGETDIR" Name="SourceDir">

      <Directory Id="INSTALLDIR" />

    </Directory>

 

    <Feature Id="DefaultFeature" Level="1"
ConfigurableDirectory="TARGETDIR">

      <ComponentRef Id="Test.dll" />

    </Feature>

 

    <Upgrade Id="10B99CC9-5D83-4489-82F3-368E772B803D">

      <UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes"
Property="NEWERVERSIONDETECTED" />

      <UpgradeVersion Minimum="0.0.0" Maximum="$(var.Version)"
IncludeMinimum="yes" IncludeMaximum="no"
Property="OLDERVERSIONBEINGUPGRADED" />

      <Property Id="OLDERVERSIONBEINGUPGRADED" Secure="yes" />

    </Upgrade>

 

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

 

    <UIRef Id="WixUI_ErrorProgressText" />

 

    <InstallExecuteSequence>

      <Custom Action="DIRCA_INSTALLDIR"
Before="CostInitialize"><![CDATA[INSTALLDIR=""]]></Custom>

      <Custom Action="NewerVersion"
After="FindRelatedProducts">NEWERVERSIONDETECTED</Custom>

      <RemoveExistingProducts After="InstallFinalize" />

    </InstallExecuteSequence>

 

  </Product>

</Wix>

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan O'Neill
Sent: 04 March 2008 19:57
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Unable to force upgrade

 

Guess that wasn't it. I'll start with a small version tomorrow and see if I
can get it working on a tiny project first. As a beginners guess it might be
something to do with the uninstallation UI that has been authored.

 

Thanks

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alexander
Shevchuk
Sent: 04 March 2008 18:07
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Unable to force upgrade

 

Ryan,

 

You did not show all the relevant to major upgrade code:

-          Did you change the Product/@Id, Package/@Id, and
Product/@Version?

-          Do you have Product/@Language listed in or equal to
Package/@Languages?

-          Do you schedule a RemoveExistingProducts action in the
InstallExecutesequence?

-          Do you use custom action to prevent downgrading?

 

Regard,

Alex

 

 

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan O'Neill
Sent: Tuesday, March 04, 2008 7:27 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Unable to force upgrade

 

In my attempts to force an application to uninstall completely before being
reinstalled (major upgrade) I have followed the instructions here
(http://www.tramontana.co.hu/wix/lesson4.php) and I keep getting 'another
version of this product is already installed'. I've kind of inherited this
installer so I am still learning about what it does, is it possible that the
upgrade is being stopped by a custom action or is the fault in the code
below?

 

I've also checked
http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-part-8-
major-upgrade.aspx but can't see what I am missing.

 

Any help would be much appreciated.

 

  <?define FirstProductVersion="0.8.0" ?>

  <?define ProductVersion="0.9.0" ?>

 

  <Product Id="{D6B41223-1108-4EC5-8BB3-9B12B245753C}" Language="1033"
Manufacturer="zz" Name="zz"
UpgradeCode="{E4EC9E2F-43E1-42AD-85F4-A425C9EF2AAE}"
Version="$(var.ProductVersion)">

    <Package Comments="zz" Compressed="yes" Description="ViaPost"
InstallerVersion="300" Languages="1033" Manufacturer="zz" Platform="intel"
Id="*" />

 

    <Upgrade Id="{E4EC9E2F-43E1-42AD-85F4-A425C9EF2AAE}">

      <UpgradeVersion Minimum="$(var.FirstProductVersion)"
IncludeMinimum="yes" Maximum="$(var.ProductVersion)" IncludeMaximum="no"
OnlyDetect="no" Language="1033" Property="UPGRADEFOUND" />

      <UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no"
OnlyDetect="yes" Language="1033" Property="NEWPRODUCTFOUND" />

    </Upgrade>

 

 

Regards

 

Ryan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to