问题描述
我对pascal不太熟悉,但是我得到了一个脚本,该脚本当前可以检测是否安装了Java,如果没有安装的话.然后它将Jboss文件夹复制到用户选择的目录.
I'm not too familiar with pascal but I got a script going that currently detects whether java is installed, if not it installs it. Then it copies a Jboss folder to the directory that the user chooses.
我想允许用户输入一些数据库IP/架构信息,然后获取这些值并将其放入Jboss目录内XML文件中正确的名称空间中.找到一些线程说可以附加到它,但是我想我可能需要能够解析xml文件.
I want to allow the user to enter some database IP/schema information then take those values and put it inside the correct namespaces in an XML file inside the Jboss directory. Found some threads saying that you can append to it but I think I might need to be able to parse the xml file.
推荐答案
您可以使用MS XML DOM查找和编辑节点(请参阅随附的 CodeAutomation.iss ),或者使用LoadStringFromFile()
/StringChange()
/SaveStringToFile()
.
You can either use the MS XML DOM to find and edit the nodes (see the included CodeAutomation.iss for an example) or do a simple string replace with a dummy file and markers using LoadStringFromFile()
/StringChange()
/SaveStringToFile()
.
这篇关于Inno Setup根据自定义输入修改XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!