Hi all,

I'm in the process of converting from WiX2 -> WiX3.

Everything is fine in WiX2... in WiX3, when I run the linker, I get the following error:

error LGHT0095: Multiple primary references were found for Feature 'OnlyFeature' in Product 'GUID' and Product 'SAME GUID'.

I have one file, no fragments, etc. The only relevant content is the following (GUIDs, filenames, etc. changed of course):

    <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="GUID3" DiskId="1">
<File Id="FIle3.dll" Name="File3.dll" KeyPath="yes" Source="Program Files\Program\File3.dll" />
      </Component>
      <Component Id="File1.exe" Guid="GUID4" DiskId="1">
<File Id="File1.exe" Name="File1.exe" KeyPath="yes" Source="Program Files\Program\File1.exe" /> <Shortcut Id="Shortcut1" Directory="ProgramMenuFolder" Name="Shortcut" Advertise="yes" Icon="Icon.exe" />
      </Component>
    </DirectoryRef>

    <DirectoryRef Id="INSTALLERCACHE">
      <Component Id="InstallerCache" Guid="GUID5" 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>


The only way I can make it work is to put the ComponentRefs directly under the <Feature> element. However, I also need to add dynamically linked files, and those tools are set up for FeatureRef/ComponentRefs.

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.

Thanks,

-kevin
-------------------------------------------------------------------------
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