Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题是关于 install4j 4.2.8 的。
我们可以从用户的输入中获取用户的信息。使用用户输入更新 xml 文件很容易。
但是安装过程中是否可以用上面修改过的xml文件替换war/jar文件中的xml文件呢?有什么动作可以做这个工作吗?
您必须使用“提取 ZIP 文件”操作将 WAR 文件提取到临时目录,对 XML 文件运行“替换 XML 文件中的文本”操作并使用“创建 ZIP”文件操作来覆盖原始 WAR文件。
install4j 6.1+ 的更新
从 install4j 6.1 开始,有一个“修改 ZIP 文件”操作可以修改 ZIP 文件中的文件。