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
- :
- Can I change XML files without the test substitution?
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
Jun 01, 2010
03:21 AM
Can I change XML files without the test substitution?
I have always seen XML file change in IS made with the text substitution.
Ok, but how can I change XML files during installation by parsing the XML? :confused: I don't want to handle the file as a normal text...
Infact, if I want to let my user be able to change one XML file during the MAINTEINANCE MODE, but I can't do this ...
Why? Because I make a marker inside the XML file - something like this:
@PUT_THE_USER_STRING_HERE@
that will be changed be the "XML File Changes" with the user's data.
But if I want to re-change this file during another installation (i.e. during the MAIN MODE) I should replace the marker again: but isn't possiblle...!
Is there any way (without spit blood...) to handle XML files in IS (or with some extra-IS tricks)?
I think it's time for IS to resolve this problem, isn't it ??!!
Thanks to all!
Ok, but how can I change XML files during installation by parsing the XML? :confused: I don't want to handle the file as a normal text...
Infact, if I want to let my user be able to change one XML file during the MAINTEINANCE MODE, but I can't do this ...
Why? Because I make a marker inside the XML file - something like this:
that will be changed be the "XML File Changes" with the user's data.
But if I want to re-change this file during another installation (i.e. during the MAIN MODE) I should replace the marker again: but isn't possiblle...!
Is there any way (without spit blood...) to handle XML files in IS (or with some extra-IS tricks)?
I think it's time for IS to resolve this problem, isn't it ??!!
Thanks to all!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jun 04, 2010
01:52 PM
If is unique, it should be straightforward. For example, in an InstallScript project I used the XML File Changes view to create file UpdateMe.xml with root element and subelement
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)