PDA

View Full Version : InstallShield 10.5 And XML File Changes



anthony1234
12-29-2004, 12:06 PM
Can I Use the XML File Changes view to do that following:

1. I have three customers with each as customer numbers
abc010
efg020
xyz030
2. During the Installscript project installation process a customer will be prompted to enter its customer number for instance abc010

3. After entering the customer number a default xml file below will be updated
from:
<das_meta release="rb104" version="v10" QAVersionDisplay="117" company="0000">
<application_meta>
<customer_nbr>0000</customer_nbr>
<cust_cntry_cd/>
</application_meta>

To:
<das_meta release="rb104" version="v10" QAVersionDisplay="117" company="abc010">
<application_meta>
<customer_nbr>abc010</customer_nbr>
<cust_cntry_cd/>
</application_meta>

Note: The update is at the company attribute and the customer_nbr tag.

I have the following questions:
a. Can I use the XML File Changes view to accomplish the above scenerio
b. If not is there an installscript xml function to accomplish it
c. Can I use the ant functionality in avialable in Universal Installer project in the InstallScript project to accomplish the above scenerio?

MichaelU
12-29-2004, 12:27 PM
Sure. The XML File Changes view blurb states "You can use dynamic values from MSI Properties or text substitution to store different values into the XML file." As far as I know this should work fine for an attribute's value.

One thing to check out: your "XML" that you've posted is not valid as the entirety of an XML file. Hopefully it's just a snippet that is encased in some other root element in your real file. As shown, there is no single root element, and I expect the XML support would have problems with it.

anthony1234
12-29-2004, 12:38 PM
It is a snippet code that resides in a complete xml file with a root. Thanks

anthony1234
01-03-2005, 12:56 PM
I am relatively new to installshield can someone show me how to use the XML File Changes view to update an xml file by passing in a customer id when promted during the installation. Thanks

viplavbaxi
12-27-2005, 06:36 AM
Did anyone come up with a method to do this?