Yes, that's documented in 
http://msdn.microsoft.com/en-us/library/aa372870(VS.85).aspx:

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 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, 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 for each file in the cabinet.





-----Original Message-----
From: Matt Johnson [mailto:ma...@timeamerica.com] 
Sent: Tuesday, May 04, 2010 12:12 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] can't find file in non-cab media

I figured it out, thanks to the examples you pointed at. Media/@Layout isn't 
important for this.  What worked was setting Package/@Compressed="no" and 
File/@Compressed="yes" on all my other files.  Previously, I had 
Package/@Compressed="yes", and File/@Compressed="no" on just my one external 
file.  I guess it only works in one direction.


Matt Johnson MCPD, MCTS, MCSD, MCDBA
Director of Application Development
Time America, Inc.
ma...@timeamerica.com | www.timeamerica.com


-----Original Message-----
From: Alexander Shevchuk (Volt) [mailto:a-ale...@microsoft.com] 
Sent: Tuesday, May 04, 2010 10:19 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] can't find file in non-cab media

Hi Matt,

I have some information (old because it covers WiX 2.0, but your problem is 
more of MSI-related issue) in 
http://blogs.technet.com/alexshev/archive/2008/04/04/from-msi-to-wix-part-16-installable-items-handling-installation-media.aspx
I am not 100% sure, don't have time to test it, but my understanding of Layout 
property is that it helps in compiling multi-CD(DVD) installations.  For 
example, you have an installation with thousands of files in one folder and 
they do not fit in one CD.  In this case you split files in that folder in 
multiple Media with different Layout folders.  So, you have after compilation 
your msi in the root folder and few External1, External2, etc subfolders.  
However, MSI expects these files during installation to be in their "actual" 
subfolders.  In my blog entry (section "Mix of uncompressed and compressed 
files")  uncompressed file is placed under Directory element with 
Id="INSTALLLOCATION" and LongName="MinimalInstallation".  If same approach is 
applied to the "thousands files in one folder" example, during install all 
External1, External2, etc must be named MinimalInstallation (obviously, they 
will be on different CD's).

Regards,
Alex


-----Original Message-----
From: Matt Johnson [mailto:ma...@timeamerica.com] 
Sent: Monday, May 03, 2010 2:56 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] can't find file in non-cab media

I have one very large file that I want to keep outside of my main installer. I 
plan on distributing a CD such as:

\Setup.msi
\External\BigFile.exe

My product media tags are thus:

<Media Id="1" Cabinet="main.cab" EmbedCab="yes" /> <Media Id="2" 
Layout="External" />

I then set DiskId="2" on the component owning BigFile.exe.

Wix seems to like this.  I build with Votive, vs2010, candle, light, etc.  and 
I get my output media just as above.  It even creates the External subdirectory 
and copies BigFile.exe into it.


HOWEVER - when I go to install, it errors because it's looking for BigFile.exe 
in the same directory as setup.msi.  It completely ignores the External 
subdirectory.

I dug through the msi with Orca, and can't find anywhere that references the 
External directory.  Looking at the MSI docs, I can't even find which table it 
should be in.  There is a Source column in the Media table that is blank, but 
MSI docs say that's for something else.

Ideas?  Help please.


Thanks,

Matt Johnson MCPD, MCTS, MCSD, MCDBA
Director of Application Development
Time America, Inc.
ma...@timeamerica.com | www.timeamerica.com



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to