Hi Bob,
Yes, I saw that and hoped it's a bug :). You confirmed me it's not a bug.
However, I beleive this is a bit like "the hard way to do it".
It would be a lot more easier to define and use like:
- DiskId defined in Directory element
- if DiskId missing in DirectoryRef element, default to Directory element
DiskId, or if this is missing also to DiskId "1"
I eventually packed my files in the right cabs using the DirectoryRef/@DiskId,
but I was not happy to have to do it like this.
Because I had to update more than 120 wxs files where the DirectoryRefs were.
It would have been a lot more easier to maintain in the future and faster to do
it in only 10 wxs files which actually define the directory structure.
I am pretty sure others have setups with a lot more wxs files than mine,.. so:
Is there any chance of getting this behaviour available in the (hopefully
close) future?
Any chance of it becoming a "feature request" for WiX ?
Thanks,
Adrian
Adrian Gantoi wrote:
- I defined several Medias (several cabinets)
- I defined the Directory structure
- I placed all the Components within DirectoryRefs
If I set the DiskId attribute in the Directory elements, all files will end up
in the first defined cabinet (and receive warnings about empty cabinets).
If I set the DiskId attribute in the DirectoryRef elements, all files are
packed in the correct cabinets.
Directory/@DiskId cascades only to its children. It doesn't persist outside the
fragment, so you can't use a DirectoryRef and have the DiskId previously set
cascade to "new" children. The general model is to define your Directory
hierarchy in one place and use DirectoryRef/@DiskId when you define your
components.
--
sig://boB
http://joyofsetup.com/
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC
-------------------------------------------------------------------------
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