PDA

View Full Version : XML Configuration



KeithHurst
09-18-2012, 07:37 AM
Hi,

very newbie to InstallShield so please bear with me.

I have managed to produce an installer which deploys the required Win32 app/file, set up the registry based on user input (default folder locations and the like), and create a new, or upgrade an existing, SQL catalogue.

Different clients of ours require differnent files installed. I was hoping to hve an XML configuration file along the lines of...

<client name='abc'>
<userfiles>
<file>file1.txt</file>
<file>file2.txt</file>
</userfiles>
</client>
<client name='def'>
<userfiles>
<file>file1.txt</file>
<file>file2.txt</file>
</userfiles>
</client>

etc....

then in InstallScript MSI simply set one property, the client name, in this case to abc or def then read in and set InstallScript variables to the rest of the configurations held in the XML document.

In the above example a LIST type variable containing the files needed for the specific client.

Is this doable without having to COM out to VB or C# and modify the ISM?

What's the best way?

Thanks,
Keith

MichaelU
09-18-2012, 12:13 PM
Have you tried InstallShield Collaboration and possibly the DIM Editor? It doesn't result in quite as concise a file as what you describe, but I think it might fit the rest of your described scenario. If you do require a file as concise as you describe, then you will probably need to explore the COM automation options in InstallShield.

KeithHurst
09-18-2012, 12:28 PM
I will look into these.

I started looking at including an xml file into the Support Files area then opening it with CreateObject in a CustomAction but even that's giving me gip, even though I have the right file path with SUPPORTDIR etc...

Thanks,
Keith