Yes, it does work now. Thanks
Brett Kapilik wrote: > > I believe it is because your Package is marked as Compressed but your > Media (2) is not compressed. In this case, MSI expects the source files > to be in the same folder as the msi file. From the MSI docs: > > Note that if the package is marked as compressed (Bit 1 is set), the > Windows Installer only installs files located at the root of the source. > In this case, even files marked as uncompressed in the File Table > <http://msdn2.microsoft.com/en-us/library/aa368596.aspx> must be > located at the root to be installed. To specify a source image that has > both a cabinet file (compressed files) and uncompressed files that match > the tree in the Directory Table > <http://msdn2.microsoft.com/en-us/library/aa368295.aspx> , mark the > package as uncompressed by leaving Bit 1 unset (value=0) in the Word > Count Summary property and set msidbFileAttributesCompressed > (value=16384) in the Attributes column of the File Table > <http://msdn2.microsoft.com/en-us/library/aa368596.aspx> for each file > in the cabinet. > > Hope that helps. > > - Brett > > > _____ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Maslov, > Igor > Sent: Thursday, April 19, 2007 3:46 PM > To: Maslov, Igor; wix-users@lists.sourceforge.net > Subject: [WiX-users] Placing data in subdirectories on a source > media > > > > 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 > > -- View this message in context: http://www.nabble.com/Placing-data-in-subdirectories-on-a-source-media-tf3609672.html#a10087050 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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