cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Kotiomkin
Level 5

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...
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

Please see the help topic "Using InstallScript Text Substitution to Dynamically Modify XML Files".
0 Kudos
Kotiomkin
Level 5

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?
0 Kudos