View Full Version : File Names & Capitalization
tdexter
07-06-2007, 08:10 AM
I have a file named graphic.bmp and another file named GRAPHIC.bmp. They both show up as differant components. When run from the MSI, they both keep their differant names, yet the last .bmp added to the build is placed in both folders.
C:\My Program\graphic.bmp --
-- both of these end up as the same file
C:\My Program\Utils\GRAPHIC.bmp --
I have resolved the issue by doing a bunch of renaming and changing them back, but this is a chore I am hoping not to have to do.
Lorne
07-06-2007, 01:26 PM
Hmmm...you shouldn't have to do any renaming.
What is the destination folder for the two files?
Would you be able to send me the .wxs file that was generated?
tdexter
07-09-2007, 10:32 AM
45ELBOW.BMP is 2KB in size.
45 Elbow.bmp is 384 KB in size.
They are coming and going to two differant folders.
tdexter
08-21-2007, 02:00 PM
I am back to this problem and just checking to see if anything has been figured out.
Lorne
08-21-2007, 02:32 PM
Thanks for the reminder, actually...somehow I missed your response.
<Fragment>
<DirectoryRef Id="FolderBMP">
<Component Id="File45ELBOW.BMP" Guid="24B4C3F4-C137-4BAE-8A32-8C11436DA2B2">
<File Id="File45ELBOW.BMP" Name="45ELBOW.BMP" DiskId="1" KeyPath="yes" Source="C:\Sample\BMP\45ELBOW.BMP"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<DirectoryRef Id="Digi">
<Component Id="File45Elbow.bmp" Guid="0EA14A7B-73FA-4979-92F7-832527F2A8DC">
<File Id="File45Elbow.bmp" Name="45 Elbow.bmp" DiskId="1" KeyPath="yes" Source="C:\Sample\Digi\45 Elbow.bmp"/>
</Component>
</DirectoryRef>
</Fragment>The two files are getting file IDs that differ by case only: File45ELBOW.BMP and File45Elbow.bmp. It could be that WiX is having a problem with that.
What are the file IDs set to in the resulting .msi file when you open it with Orca?
tdexter
08-21-2007, 02:47 PM
I hope this is what you are looking for. I found ORCA online and opened the MSI. Just one thing to say, WOW.
File File Name Component
File45Elbow.bmp File45Elbow.bmp y7cwid3t.bmp|45 Elbow.bmp
File45ELBOW.BMP File45ELBOW.BMP 45ELBOW.BMP
Lorne
08-21-2007, 03:01 PM
Okay, I'm able to duplicate it here, and it's really odd...the case of the IDs is preserved in the .msi file, everything looks good in Orca, it just doesn't work right when you install it.
Possible Workaround:
I was able to make it work by putting the files into separate cabinet files.
Choose Project > Media.
Click Add to add a new media source.
Enter a unique media ID (e.g. "2").
Enter something appropriate in the Disk name field, e.g. "Disk 2" or "workaround.cab" or something.
Change the cabinet filename to a unique name, e.g. "workaround.cab" or "other.cab" or "setup2.cab" or something.
Click OK.
Double-click on one of the files in question, and set its media source to the media ID you used. We want each file to use a different media ID.
Build the setup.msi again and test it.
tdexter
08-21-2007, 04:37 PM
Thank you, it worked great.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.