Doh, I hadn't considered needing to reference the Id, that would make
keeping it known a good idea! 

 

Neil

 

From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: 26 April 2008 18:57
To: Neil Sleightholm
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Default File Id and Name from Source - bug?

 

Neil Sleightholm wrote: 

In this blog
http://www.joyofsetup.com/2007/12/07/simplifying-the-wix-v3-language/
Bob talks about the new file defaults. I think I have spotted a problem
with this and can't find and existing bug report. Before I raise one
could someone confirm that this doesn't handle Id illegal characters
properly, e.g. for Source="My-File.txt" it uses the Id="My-File.txt"
which is not legal. It also fails if there are spaces in the file name.


Yep. In those cases, you need an explicit Id. Defaulting Name and Id
from Source is a shortcut, not a replacement.




The other problem is probably not a bug but if you have the same file
name installed in to different folders (e.g. as you would with language
resources) it doesn't work as all the file Id's are the same. I would
guess that somehow adding the folder patch to the Id would be too
complicated.


See above. We don't munge the Id, just default it. Otherwise it would be
more difficult to use [#FileId] in formatted fields.



-- 
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to