I was able to get past this error in your example by adding this inside the 
Fragment

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

-----Original Message-----
From: Don Walker [mailto:don.wal...@versaterm.com] 
Sent: Wednesday, July 11, 2012 8:49 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Bug? UpgradeVersion element causing LGHT0094 error

In WiX version 3.6.3109.0 I am getting the following build error:

Product.wxs(16,0): error LGHT0094: Unresolved reference to symbol 
'WixAction:InstallExecuteSequence/RemoveExistingProducts' in section 
'Product:*'.
The same error appears for line 18.

My test example follows:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?define VtmUpgradeCode="2545b9f8-cb58-4a66-bbb8-5c6df40de836" ?>
  <?define VtmVersionMin="1.0.0.0" ?>
  <?define VtmVersionMax="1.1.0.0" ?>
  <?define VtmVersion="1.0.1.0" ?>
  <Product Id="*" Name="TestProject1" Language="1033" Version="1.0.0.0" 
Manufacturer="WiXTest"
    UpgradeCode="$(var.VtmUpgradeCode)">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" 
/>

    <MediaTemplate />

    <Upgrade Id="$(var.VtmUpgradeCode)">
      <UpgradeVersion Maximum="$(var.VtmVersionMin)" IncludeMaximum="no" 
OnlyDetect="yes" Property="VTMOLDERVERSIONDETECTED" />
      <UpgradeVersion Minimum="$(var.VtmVersionMax)" IncludeMinimum="yes" 
OnlyDetect="yes" Property="VTMNEWERVERSIONDETECTED" />
      <UpgradeVersion Minimum="$(var.VtmVersionMin)" 
Maximum="$(var.VtmVersion)" IncludeMinimum="yes" IncludeMaximum="yes"
                      Property="VTMOLDERVERSIONBEINGUPGRADED" />
      <UpgradeVersion Minimum="$(var.VtmVersion)" 
Maximum="$(var.VtmVersionMax)" IncludeMinimum="no" IncludeMaximum="no"
                    Property="VTMNEWERVERSIONBEINGDOWNGRADED" />
    </Upgrade>

    <Feature Id="ProductFeature" Title="TestProject1" Level="1">
      <ComponentGroupRef Id="ProductComponents" />
    </Feature>
  </Product>

  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder">
        <Directory Id="INSTALLFOLDER" Name="TestProject1" />
      </Directory>
    </Directory>
  </Fragment>

  <Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
    </ComponentGroup>
  </Fragment>
</Wix>

let me know if this is a bug and I'll file an official bug report. If not, let 
me know what I did wrong.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to