如何替换 msi 安装程序中的文件? [英] How to replace a file in a msi installer?
本文介绍了如何替换 msi 安装程序中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想替换 msi 中的单个文件.怎么做?
I want to replace a single file inside a msi. How to do it?
推荐答案
使用 msi2xml.
此命令提取 MSI 文件:
This command extracts the MSI files:
msi2xml -c OutputDir TestMSI.MSI
msi2xml -c OutputDir TestMSI.MSI
打开OutputDir并修改文件.
要重建 MSI 运行:
To rebuild the MSI run:
xml2msi.exe -m TestMSI.xml
xml2msi.exe -m TestMSI.xml
您需要使用 -m 来忽略修改 MSI 文件时失败的MD5 校验和测试".
You need the -m to ignore the 'MD5 checksum test' that fails when an MSIs file(s) are modified.
这篇关于如何替换 msi 安装程序中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文