You need a reference element to any one bit inside the fragment.  The way Wix 
linking currently works, a linkage to one item in a fragment brings in the 
whole fragment.

For example, if you have a Component element in a fragment, you would link in 
the fragment using a ComponentRef with the appropriate Id attribute.

--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 



-----Original Message-----
From: Troy Teixeira [mailto:tteixe...@polariswireless.com] 
Sent: Thursday, March 01, 2012 2:58 PM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] How to reference a wxs file from another

I know that this is a very elementary question since I'm new to this, but could 
someone tell what lines of code I would add to a WXS file to reference it to 
one containing Fragments.

I have a Product.wxs file and another wxs file named Directory.wxs which 
contains a bunch of Fragments. How can I tell the Product.wxs file to use the 
Directory.wxs file? Below is the code from the Product.wxs file.

The situation is that when the automated build is happening the MSI file is not 
including all of the necessary files for the program to work.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>

   <Product Id="*" UpgradeCode="{39A1B384-06D2-4C12-BB18-95641CF2F9DD}" 
Version="1.0.0.0" Language="1033" Name="Altus Client" Manufacturer="Polaris 
Wireless">
     <Package InstallerVersion="300" Compressed="no"/>
     <Media Id="1" EmbedCab="no" />
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="PROGRAMFILESFOLDER" Name="Altus Client">
        <Directory Id="APPLICATIONROOTDIRECTORY" Name="Altus Client"/>
      </Directory>
      <!-- Step 1: Define the directory structure -->
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ApplicationProgramsFolder" Name="Altus Client"/>
      </Directory>
    </Directory>
       <Property Id="WIXUI_INSTALLDIR" Value="APPLICATIONROOTDIRECTORY" />
    <UIRef Id="WixUI_InstallDir" />
    <DirectoryRef Id="APPLICATIONROOTDIRECTORY">
      <Component Id="AltusClient.exe" 
Guid="{39A1B384-06D2-4C12-BB18-95641CF2F9DD}">
        <File Id="AltusClient.exe" 
Source="$(var.AltusClient.TargetDir)\AltusClient.exe" KeyPath="yes" 
Checksum="yes"/>
      </Component>
    </DirectoryRef>
<!-- Step 2: Add the shortcut to your installer package -->
    <DirectoryRef Id="ApplicationProgramsFolder">
      <Component Id="ApplicationShortcut" Guid="*">
        <Shortcut Id="ApplicationStartMenuShortcut" Name="Altus Client" 
Description="Altus Client Program" 
Target="[APPLICATIONROOTDIRECTORY]AltusClient.exe"
                  WorkingDirectory="APPLICATIONROOTDIRECTORY"/>
        <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/>
        <RegistryValue Root="HKCU" Key="Software\Microsoft\AltusClient" 
Name="installed" Type="integer" Value="1" KeyPath="yes"/>
      </Component>
    </DirectoryRef>
    <Feature Id="AltusClient" Title="Altus Client" Level="1">
      <ComponentRef Id="AltusClient.exe" />
      <!-- Step 3: Tell WiX to install the shortcut -->
      <ComponentRef Id="ApplicationShortcut" />
    </Feature>
  </Product>

</Wix>


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning Cloud computing makes 
use of virtualization - but cloud computing also focuses on allowing computing 
to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to