This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- XML File Changes
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 10, 2009
12:30 PM
Changing values in XML file
I have an app.config file which I need too change some values in.
I have read the section in the helpfile called:
Using InstallScript Text Substitution to Dynamically Modify XML Files
But I cannot get this to work. I created an entry in the string table called:
ID_AUTOMATIC_FLAG and set it to True.
In the XML File Changes view I then go to the element properties advanced tab and try and reference this with, this ends up changing to {ID_STRING50}
In my script I then use
TextSubSetValue(@ID_AUTOMATIC_FLAG, "False", TRUE);
The substitution in my xml file always ends up with something like
<ID_AUTOMATIC_FLAG>
I have also tried this syntax
TextSubSetValue(, "False", TRUE);
and this
TextSubSetValue("", "False", TRUE);
but that does not appear to work either
Could someone clarify how this is supposed to work, the main problem appears to be in setting the element content, it does not appear to recognise the string table value, I have tried numerous variations, enclosing it in quaotes, using [] brackets but nothing seems to work.
I have read the section in the helpfile called:
Using InstallScript Text Substitution to Dynamically Modify XML Files
But I cannot get this to work. I created an entry in the string table called:
ID_AUTOMATIC_FLAG and set it to True.
In the XML File Changes view I then go to the element properties advanced tab and try and reference this with
In my script I then use
TextSubSetValue(@ID_AUTOMATIC_FLAG, "False", TRUE);
The substitution in my xml file always ends up with something like
I have also tried this syntax
TextSubSetValue(
and this
TextSubSetValue("
but that does not appear to work either
Could someone clarify how this is supposed to work, the main problem appears to be in setting the element content, it does not appear to recognise the string table value, I have tried numerous variations, enclosing it in quaotes, using [] brackets but nothing seems to work.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
08:59 AM
You can write install script function to create XML object and update the nodes :
use CreateObject("Microsoft.XMLDOM") to create object.
-Mrunmayee
use CreateObject("Microsoft.XMLDOM") to create object.
-Mrunmayee
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 15, 2009
03:15 PM
Do I assume that the existing XML File Changes feature does not work. I have tried every combination I can think of without success.