Hey Bob,

There are no fragments. The section I included is all there is to it.

This is the entirety of the components/features/directories/etc.:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <?include "FileCache\ProductInfo.wxi"?>

  <Product  Id="$(var.ProductCode)"
            Name="$(var.ProductName)"
            Version="$(var.ProductVersion)"
            UpgradeCode="$(var.UpgradeCode)"
            Manufacturer="$(var.ProductManufacturer)"
            Language="$(env.langid)">

    <Package  Description="!(loc.INSTALLER_DESCRIPTION)"
              Comments="$(var.ProductName) $(var.ProductVersion)"
              Manufacturer="$(var.ProductManufacturer)"
              InstallerVersion="200"
              Platform="intel"
              Compressed="yes"
              Languages="$(var.LanguageNeutral)$(var.ProductLanguages)"
              SummaryCodepage="!(loc.CODEPAGE)"
              Keywords="Installer,MSI,Database" />

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder" Name="Program Files">
        <Directory Id="InstallFolder" Name="Install Folder">
          <Directory Id="INSTALLDIR" />
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder" Name="Programs" />
      <Directory Id="CommonAppDataFolder" Name="Application Data">
        <Directory Id="VendorCommonAppDataFolder" Name="Vendor">
<Directory Id="CachedInstallationsFolder" Name="Installer Cache"> <Directory Id="INSTALLERCACHE" Name="Program $ (var.ProductVersion)" />
          </Directory>
        </Directory>
      </Directory>
    </Directory>

<Feature Id="OnlyFeature" Title="Feature" Level="1" ConfigurableDirectory="INSTALLDIR" Absent="disallow" />

    <!-- Components -->
    <DirectoryRef Id="INSTALLDIR">
      <Component Id="File1.dll" Guid="GUID1" DiskId="1">
<File Id="File1.dll" Name="File1.dll" KeyPath="yes" SelfRegCost="4096" Source="Program Files\Program\File1.dll" />
      </Component>
      <Component Id="File2.dll" Guid="GUID2" DiskId="1">
<File Id="File2.dll" Name="File2.dll" KeyPath="yes" SelfRegCost="4096" Source="Program Files\Program\File2.dll" />
      </Component>
      <Component Id="File3.dll" Guid="GUID4" DiskId="1">
<File Id="File3.dll" Name="File3.dll" KeyPath="yes" Source="Program Files\Program\File3.dll" />
      </Component>
      <Component Id="File1.exe" Guid="GUID3" DiskId="1">
<File Id="File1.exe" Name="File1.exe" KeyPath="yes" Source="Program Files\Progam\File1.exe" /> <Shortcut Id="Shortcut" Directory="ProgramMenuFolder" Name="Program" Advertise="yes" Icon="Icon.exe" />
      </Component>
    </DirectoryRef>
    <DirectoryRef Id="INSTALLERCACHE">
      <Component Id="InstallerCache" Guid="GUID4" KeyPath="yes">
        <Condition><![CDATA[NOT DONTCACHEMSI]]></Condition>
        <CreateFolder />
<CopyFile Id="Program.msi" SourceProperty="SourceDir" SourceName="Program.msi" DestinationDirectory="INSTALLERCACHE" /> <RemoveFile Id="Program.msi" Directory="INSTALLERCACHE" Name="Program.msi" On="uninstall" /> <RemoveFolder Id="INSTALLERCACHE" Directory="INSTALLERCACHE" On="uninstall" />
      </Component>
    </DirectoryRef>

    <FeatureRef Id="OnlyFeature">
            <ComponentRef Id="File1.exe" />
            <ComponentRef Id="File1.dll" />
            <ComponentRef Id="File2.dll" />
            <ComponentRef Id="File3.dll" />
            <ComponentRef Id="InstallerCache" />
    </FeatureRef>

  </Product>
</Wix>



On Jan 12, 2008, at 11:07 AM, Bob Arnson wrote:

Kevin Richardson wrote:
I'm sure I've just missed something simple because I find it hard to believe that FeatureRef/ComponentRef isn't valid anymore. This is wix-3.0.3711.0.

Yes it's supported. Without both sections (e.g., Product and Fragment) that throw the error when linked, it's hard to offer advice.

--
sig://boB
http://joyofsetup.com/



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to