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
- :
- Change XML file during install
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
‎Jan 30, 2009
04:07 AM
Change XML file during install
I have an InstallScript project builded with IS 2009 SP2.
With my setup I install an xml file.
My goal is to change the xml file with values that I don't know when I create my project, but I know only during installation.
Infact, a dialog ask to the user some data, and this information must be present in that xml file (after IS has installed, of course).
I know that IS has "XML File Change", but with this feature I can only change XML file with static data.
How can I do it?
Thank a lot...
With my setup I install an xml file.
My goal is to change the xml file with values that I don't know when I create my project, but I know only during installation.
Infact, a dialog ask to the user some data, and this information must be present in that xml file (after IS has installed, of course).
I know that IS has "XML File Change", but with this feature I can only change XML file with static data.
How can I do it?
Thank a lot...
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2009
10:15 AM
Please see the help topic "Using InstallScript Text Substitution to Dynamically Modify XML Files".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2009
10:28 AM
Ok..
but let me know if I've understood all Ok: if I use a function that do a text substitution directly in the xml file, it is the same?
I was thinking that IS supply a function that allow users to modify the string table entries (used by XML File Changes) ... something like this:
string table entry
ID_STRING_XML
and in the InstallScript .rul file, use a function that sound like this:
ReplaceItem(ID_STRING_XML, strUserValue)
But maybe I thought wrong...
Isn't it?
but let me know if I've understood all Ok: if I use a function that do a text substitution directly in the xml file, it is the same?
I was thinking that IS supply a function that allow users to modify the string table entries (used by XML File Changes) ... something like this:
string table entry
ID_STRING_XML
and in the InstallScript .rul file, use a function that sound like this:
ReplaceItem(ID_STRING_XML, strUserValue)
But maybe I thought wrong...
Isn't it?
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)