Okay, I'm sure this is going to sound like a dumb question, but...

In these old Wix 2.0 projects I'm upgrading, we generate a bunch of msms that 
get pulled into the several product msis.  In the module projects there was 
something like the following:
  <Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="INSTALLDIR">
...
    </Directory>
  </Directory>

Then the <Merge> references would be included in the product directory tree.  

Chalk it up to my ignorance, but I thought the <Directory Id="INSTALLDIR"> in 
the modules seemed superfluous, so trying to clean things up while I did the 
upgrade, I removed them - thinking that the <Merge> element in the desired 
<Directory> of the Product was sufficient to say where I wanted the result put.

The msis all build but when I went to install one, all of the msm output gets 
dumped in the Product INSTALLDIR, not in the subdirectory defined in the 
Product setup.

Below are some examples of what I mean, and I was just wondering why the 
modules had to have that extra directory declaration?  Obviously there's 
something I'm missing.

Thanks
Mark


<Module Id="_3rdPartyModule" Language="1033" Version="1.0.0.0">
  <Package Id="AD4BA45B-4093-4ff6-A532-21DB00F9B5AB" Description="3rd Party 
Components" Comments="Functionality provided by external modules"
     Manufacturer="MyCompany" InstallerVersion="300" />
  <Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="INSTALLDIR">
       <Component Id="AspChart.Dll" Guid="215DE3EB-BE47-4741-8C0B-3AFF00E51F5C" 
SharedDllRefCount="yes">
          <File Id="ASPCHART.DLL" Name="ASPCHART.DLL" 
Source="$(var.TheBuildFolder)\Build\3rdParty\AspChart.dll" Vital="yes" 
KeyPath="yes">
              <TypeLib Id="F174ED14-F7A9-11D0-A014-080009AB4447" Language="0" 
MajorVersion="1" MinorVersion="0"
                      Description="ASPChart Library" HelpDirectory="TARGETDIR" 
Cost="1" Advertise="yes">
                 <Class Id="F174ED16-F7A9-11D0-A014-080009AB4447" 
Context="InprocServer32" Description="ChartObject" Version="1.0">
                   <ProgId Id="ASPChart.Chart" Description="ChartObject" />
                 </Class>
              </TypeLib>
           </File>
        </Component>
    </Directory>
  </Directory>
</Module>

Included in
<Product Id="$(var.GUID)" Name="Prospero Forums Server v1.00.$(var.Version)" 
Language="1033" Version="1.0.$(var.Version)" Manufacturer="Prospero 
Technologies">
  <Package Id="*" Description="Prospero Forums Server Installer" 
Comments="http://www.prospero.com"; InstallerVersion="300" 
InstallScope="perMachine" Compressed="yes"/>
  <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" />
  <Property Id="TARGETDIR" Value="C:\MyHome" />
  <Directory Id="TARGETDIR" Name="SourceDir">
    <Directory Id="Binaries" Name="Binaries">
        <Merge Id="_3rdPartyModule" Language="1033" 
SourceFile="..\3rdPartyModule\bin\$(var.config)\3rdPartyModule.msm" DiskId="1" 
/>
        <Component Id="InstallConfig" 
Guid="D746C5C0-12CB-4d4a-AA65-361D578F09F5">
          <File Id='InstallConfig.exe' Name='InstallConfig.exe' DiskId='1' 
Source='..\InstallConfig\bin\$(var.config)\InstallConfig.exe' Vital='yes' />
          <File Id='InstallConfig.pdb' Name='InstallConfig.pdb' DiskId='1' 
Source='..\InstallConfig\bin\$(var.config)\InstallConfig.pdb' />
        </Component>
    </Directory>
    <Directory Id="Other" Name="Other ">
        <Merge Id="OtherModule" Language="1033" 
SourceFile="..\OtherModule\bin\$(var.config)\OtherModule.msm" DiskId="1" />
    </Directory>
  </Directory>
  <Feature Id="Complete" Title="Prospero Forums Server" Description="The 
complete package." Level="1">
    <MergeRef Id="_3rdPartyModule" />
  </Feature>
</Product>

        

------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to