从命令行将文件添加到 MSI?
我想为下载我的 MSI 安装程序文件的用户添加自定义配置文件。为此,我需要在下载之前将文件添加到预构建的 MSI 文件中。
有命令行方法可以做到这一点吗? (如果它在 Linux 或 Wine 下工作,则加分)
I would like to add a custom config file for users downloading my MSI installer file. To do this I need to add a file to the pre-built MSI file just before download.
Is there a command line way to do this? (bonus points if it works under Linux or Wine)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个名为
msidb 的命令行程序.exe
,包含在 Windows Installer SDK 并可以帮助您将文件添加到MSI。然而,仅仅将文件放入其中是不够的;还需要将文件放入其中。您需要更新文件, 目录和组件 表在安装中包含该文件,这意味着您需要很好地理解这些部分的工作原理以及使用它们的工具。There is a command-line program called
msidb.exe
, which is included in the Windows Installer SDK and can help you add files to the MSI. However, just putting the file in there isn't enough; you need to update the the File, Directory and Component tables to include the file in the installation, which means you need to have a pretty good understanding of how those pieces work and the tools to use them.