I don't think that it is possible to read an XML file from Binary stream
directly, but you can use a custom action (C++ DLL) that extracts data from
binary stream to a temp folder, reads it, and sets MSI properties
accordingly. It's not directly related to WiX though, but could be handy for
some people I guess.

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lingappa
Sent: Tuesday, July 10, 2007 11:28 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Reading from/Writing to configuration file

 

Is it possible to read File which is in MSI Database? Is it possible to
extract one file at the start of installation (meaning while showing first
or second screen)? your inputs will appreciated. Thanks in advance. Regards,
Lingappa 

Lingappa wrote:

Hi, I need to read the configuration information from input xml config file
and display it to the user. Then user can modify the values and those values
will be updated to web.config after users modification. I have written the
custom action in VBScript to read the input xml config file (/using
msxml2.DOMDocument). Problem is WIX expects the input xml path to be
physical path(I mean it reads the default path as \System32 folder). Meaning
I will have to ship the input xml config file separatly with the MSI. I
would like to know how do i embed this input xml file in the MSI, so that i
can read this file using VBScript. I think is it possible to extract that
file from MSI database and copy to the temporary location before reading the
file. Thanking you in advance. Regards, Lingappa 

 

  _____  

View this message in context: Re:
<http://www.nabble.com/Reading-from-Writing-to-configuration-file-tf4027789.
html#a11516735>  Reading from/Writing to configuration file
Sent from the wix-users <http://www.nabble.com/wix-users-f4470.html>
mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to