Inno Setup modifies XML file based on user input

I am not too familiar with pascal, but I have a script that currently detects if java is installed if it does not install it. He then copies the Jboss folder to the directory that the user selects.

I want to allow the user to enter the IP / database schema information, then accept these values ​​and put them in the correct namespaces in the XML file inside the Jboss directory. I found some threads saying that you can add to it, but I think that I may have to parse the XML file.

+5
source share
1 answer

You can use the MS XML DOM to search and edit nodes (see the attached CodeAutomation.iss for an example) or run a simple line replace with a dummy file and markers using LoadStringFromFile()/ StringChange()/ SaveStringToFile().

+6
source

All Articles