Hi All
I can't get this right. I want some of my files to be packaged externally,
in sub-directories off the directory of the MSI image.
I couldn't find any examples of how to do this, and thus inferred that the
Media/@Layout was how to do it.
However, when I run the MSI it can't locate the file and fails.
Here is a WXS that I mocked up to replicate the problem:
When running the MSI, file3.txt file cannot be found even though it exists
in the "ext" sub-directory.
[code]
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Test"
UpgradeCode="73652A84-2CD9-4FD6-9202-0CD29451F6AD" Language="1033" Version="
0.0.0.0" Manufacturer="XYX">
<Package Id="*" Description="" Comments="" InstallerVersion="200"
Compressed="yes" />
* <Media Id="1" Cabinet="product.cab" EmbedCab="no" />
<Media Id="2" />
<Media Id="3" Layout="ext" />
*
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name="PFiles">
<Directory Id="WixExampleProductFolder" Name="Test Directory">
<Component Id="WixExampleFileComponent"
Guid="7068B84E-0727-4347-80F1-8C4916D833E4">
<File Id="WixExampleFile" Name="file1.txt" DiskId="1" Source="
file1.txt" />
</Component>
<Component Id="WixExampleFileComponent2"
Guid="B3819661-6BDB-45FF-AE56-C058289C0C90">
<File Id="WixExampleFile2" Name="file2.txt" DiskId="2"
Compressed="no" Source="file2.txt" />
</Component>
<Component Id="WixExampleFileComponent3"
Guid="DB705FEC-30BF-4EE0-8B4B-3653D88FB97F">
<File Id="WixExampleFile3" Name="file3.txt" DiskId="3"
Compressed="no" Source="file3.txt" />
</Component>
</Directory>
</Directory>
</Directory>
<Feature Id="TestFileProductFeature" Title="Features" Level="1">
<ComponentRef Id="WixExampleFileComponent" />
<ComponentRef Id="WixExampleFileComponent2" />
<ComponentRef Id="WixExampleFileComponent3" />
</Feature>
</Product>
</Wix>
[/code]
Any help is much appreciated.
Chris Stefano
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users