[WiX-users] UCS-2 Little Endian encoding of MSI Log file problem.

2006-09-18 Thread Roy Abou Assaly

When I install an msi, I am keeping a log like so:

c:\msiexec /i foo.msi /l* foo.log

The problems is that when I open foo.log, it turns out it's in UCS-2 Little
Endian encoding.  Chaning the encoding in .NET is trivial, but we have a
legacy app that needs to append to the log file, and it's in VB6.  I'm
having quite a bit of trouble converting the file to ASCII from UCS-2 Little
Endian.  Without the conversion, the file gets mangled with garbage.

Is there a particular reason why UCS-2 Little Endian is used to create the
MSI log file?  I don't think VB6 has the programmatic capacity to natively
read such an encodingI'm googling a solution now :-/
-- 
View this message in context: 
http://www.nabble.com/UCS-2-Little-Endian-encoding-of-MSI-Log-file-problem.-tf2292707.html#a6368349
Sent from the wix-users mailing list archive at Nabble.com.


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] UCS-2 Little Endian encoding of MSI Log file problem.

2006-09-18 Thread Roy Abou Assaly

Solution:

Someone replied...the answer was to use the MultiByteToWideChar function to
convert from ANSI to UCS-2 before appending to the file.

Thanks!



Roy Abou Assaly wrote:
 
 When I install an msi, I am keeping a log like so:
 
 c:\msiexec /i foo.msi /l* foo.log
 
 The problems is that when I open foo.log, it turns out it's in UCS-2
 Little Endian encoding.  Chaning the encoding in .NET is trivial, but we
 have a legacy app that needs to append to the log file, and it's in VB6. 
 I'm having quite a bit of trouble converting the file to ASCII from UCS-2
 Little Endian.  Without the conversion, the file gets mangled with
 garbage.
 
 Is there a particular reason why UCS-2 Little Endian is used to create the
 MSI log file?  I don't think VB6 has the programmatic capacity to natively
 read such an encodingI'm googling a solution now :-/
 

-- 
View this message in context: 
http://www.nabble.com/UCS-2-Little-Endian-encoding-of-MSI-Log-file-problem.-tf2292707.html#a6371589
Sent from the wix-users mailing list archive at Nabble.com.


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users