Bugs item #1722516, was opened at 2007-05-21 02:39
Message generated for change (Comment added) made by pmarcu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1722516&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: light
Group: v3.0
Status: Open
Resolution: None
>Priority: 1
Private: No
Submitted By: Jonas Eriksson (jayee)
>Assigned to: pmarcu (pmarcu)
Summary: Same name, wrong file

Initial Comment:
I'm creating an installation which holds several files with filenames that are 
identical but they reside in different directories. I have used heat to build 
the file list as shown below. What happens is that I have 2 files with the same 
name (resource.h) in different directories and during installation the same 
file is copied to both directories. There seems to be a problem with spaces in 
the Source tag as the file content is the same in all directories which starts 
the same (before the space). The name of the file is copied correctly, 
resource.h vs Resource.h like in the sample below, but the content and 
timestamp comes from the second file.

I think this is a bug in the light command, but maybe it can be in the candle 
instead.

I've used the build from 2007-05-11 (3.0.2911.0) but older builds (from feb) 
give the same result.

<?define Src="..\release\" ?>

   <Fragment>
      <DirectoryRef Id="ex_1">
         <Component Id="resource.h_1" 
Guid="{6E1DBB54-C726-48C2-BE9C-5831999A42AC}">
            <File Id="resource.h_1" Name="resource.h" KeyPath="yes" 
Source="$(var.Src)Samples\ex 1\resource.h" />
         </Component>
      </DirectoryRef>
   </Fragment>
   <Fragment>
      <DirectoryRef Id="ex_2">
         <Component Id="Resource.h_1" 
Guid="{463578C2-66F5-487F-9D7D-1AA7A509E4F5}">
            <File Id="Resource.h_1" Name="Resource.h" KeyPath="yes" 
Source="$(var.Src)Samples\ex 2\Resource.h" />
         </Component>
      </DirectoryRef>
   </Fragment>


----------------------------------------------------------------------

>Comment By: pmarcu (pmarcu)
Date: 2007-10-01 11:09

Message:
Logged In: YES 
user_id=1612676
Originator: NO

I think light and heat should both catch this.

----------------------------------------------------------------------

Comment By: Bob Arnson (barnson)
Date: 2007-05-21 17:27

Message:
Logged In: YES 
user_id=26581
Originator: NO

The CAB format doesn't support two file IDs that differ only by case. It's
undefined which file will be produced when the different IDs are supplied.
The bug here is that WiX should be noting that the IDs aren't distinct.
Unfortunately, neither light nor heat detects/warns about it. If you change
the File/@Id attribute, you'll be fine.

----------------------------------------------------------------------

Comment By: Jonas Eriksson (jayee)
Date: 2007-05-21 04:26

Message:
Logged In: YES 
user_id=799656
Originator: YES

Further investigation shows that the space in the Source tag does not
matter.
What matters is the File Id string... it is not case sensitive, and I
don't know if it should/must be.

Either heat.exe should not just make a case difference between the files,
or (better) the candle/light should be able to differ between the casing.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1722516&group_id=105970

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to