I have developed a custom extension and have found that if I use
newline/return character xml codes in text fields, WiX incorrectly generates
the temporary IDT files. Thus when WiX is trying to apply the IDT files to
the MSI, it fails. For example, suppose I have the following custom table:

<CustomTable Id="MyCustomTable">
   <Column Id="Info" Type="string" Width="0" Localizable="yes"
Description="..." />
   <Row>
      <Data Column="Info">First line&#xD;&#xA;&#xD;&#xA;Second line</Data>
   </Row>
</CustomTable>

WiX generates the correct IDT file which looks like:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/file/n5214598/Custom_Table.png
 

Notice the characters codes where the new line and return characters are at.

If I try and use my custom extension, WiX doesn't add these character codes
to the IDT file. It actually keeps the new lines and spaces. At first I
thought maybe my extension was acting up but I tested this use the WiX
Firewall extension with something like:

<File Source="C:\Program Files\Windows Installer XML v3.5\bin\candle.exe">
   <f:FirewallException Scope="any" Id="Hello_There" Name='hello
&#xD;&#xA;&#xD;&#xA; ther'  />
</File>

The error you get in Visual Studio is:
Error   12      There was an error importing table '<table>' from file
'C:\Users\jnewton\AppData\Local\Temp\vzpbgirf\<table>.idt'.
C:\Users\jnewton\AppData\Local\Temp\vzpbgirf\<table>.idt        1       1       

Is there a workaround to this? Maybe I am doing something wrong but you can
use those xml codes in other WiX tables and they work great. 


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-New-Lines-in-Text-Fields-for-Custom-WiX-Extension-Doesn-t-Work-tp5214598p5214598.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to