PDA

View Full Version : Reading XMl Data



rajvittal
03-26-2007, 01:16 PM
Hi

I was trying to use .net assemblies inside installshield. It works for functions that return simple data types such as strings and integers. But suppose I wish to return datatypes such as XmlNode or Nodelist etc, is this how, we are supposed it to make it work?

1) set object = createobject (MSXML*.*) //create a node , nodelist etc
make a call to CoCreateObjectDotNet
object= FunctionFromDotNetThatReturnsNodeList(........)


We dont have any specific XML Datatypes within installscripts?

Thanks in advance for any suggestions.
Rajesh

Christopher Painter
07-09-2007, 12:06 PM
You might want to read this for ideas:

http://blog.deploymentengineering.com/2006/08/more-fun-with-cocreateobjectdotnet.html

This trick only works on .NET Framework classes which happened to be interopable with COM.

Otherwise no, MSI really only knows strings and InstallScript really only knows NUMBER, STRING, OBJECT and VARIANT.