I had to use XMLPoke to inject a version number into a .wxs file. The
following link helped in getting XMLPoke to work with .wxs files...

http://solepano.blogspot.com/2006/11/problem-with-nants-xmlpoke-task.html

However it seems that NANT also injects the byteorder marks into the file at
the beginning when saving it, and visual studio commandline tool then errors
out when building the wix project with the following errors...

Error    1    Invalid token 'Text' at root level of document.
C:\autobuild\pn\3.2\sourcecode\Source\NetKPI\NetKPI_Install\NetKPI_Install.wxs
1    1    NetKPI_Install
Error    2    Unexpected XML declaration. The XML declaration must be the
first node in the document and no white space characters are allowed to
appear before it.
C:\autobuild\pn\3.2\sourcecode\Source\NetKPI\NetKPI_Install\NetKPI_Install.wxs
1    4    NetKPI_Install

The errors go away if I press backspace a few times in Visual studio at the
root of the document...

Any idea how to get either Nant to not input the byte order marks or Wix to
ignore them?

-- 
. Abdullah Ahmed
. [EMAIL PROTECTED]
-------------------------------------------------------------------------
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

Reply via email to