Hello ,
I'm trying to do a simple thing :) - put files (either uncompressed or
cab) in subdirectories on a source media.
Result - is an error dialog, saying that required file is not found.
I found several links on the topic here, but still can't make it work.
Here is what I do:
<Product Id="{...}" Name="MyTestApp" Language="1033"
Version="1.00.00.00" Manufacturer="Test" >
<Package Manufacturer="Test" InstallerVersion="200"
Compressed="yes" Id="*" Languages="1033" />
<Media Id="1" Cabinet="data.cab" EmbedCab="no"
VolumeLabel="test1" DiskPrompt="!(loc.DiskPromptString)"
Layout="SourceSubdir" />
<Media Id="2" VolumeLabel="test1"
DiskPrompt="!(loc.DiskPromptString)" Layout="SourceSubdir" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="MyCompany" Name="My Company">
<Directory Id="INSTALLLOCATION" Name="Test App"
SourceName="SourceSubdir" >
<Component Id="MainExecutable"
Guid="{F738FBEC-7AC8-4e0b-A4A6-3905F9411EB8}">
<File Id="main_exe" Compressed="yes" Name="main.exe"
DiskId="1" Source="C:\projects\main.exe" Vital="yes" KeyPath="yes">
<File Id="readme_txt" Compressed="no"
Name="readme.txt" DiskId="1" Source="C:\projects\readme.txt">
Other combinations of source/target directories didn't work either:
<Directory Id="INSTALLLOCATION" Name="Test App" >
<Directory Id="D1" Name="Subdir"
SourceName="SourceSubdir">
<Component Id="MainExecutable"
Guid="{F738FBEC-7AC8-4e0b-A4A6-3905F9411EB8}">
<File Id="main_exe" Compressed="yes"
Name="main.exe" DiskId="1" Source="C:\projects\main.exe" Vital="yes"
KeyPath="yes">
Msi builds, but when I run installation it can not find files located in
"SourceSubdir" directory on the source media.
If I copy those files (data.cab and readme.txt) to the same location
where MSI file is, then installation finishes without error.
I believe this functionality works with Windows Installer itself, and
looks like it can be done through WiX.
Likely I'm missing some small detail, but can't find what.
Thank you in advance,
Igor
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users