创建一个将参数传递给 msiexec 的引导程序

发布于 2024-08-30 08:01:59 字数 449 浏览 3 评论 0 原文

我需要为我的 WiX 项目创建一个引导程序,我尝试使用 setupbld.exe,但它只允许我创建一个可执行文件来显示我的 UI 或一个充当静默安装程序的可执行文件,但两者都不是。

我需要能够使用参数运行生成的可执行文件,该参数将告诉它在安装过程中是否显示 UI。

我发现了这个John Robbins 的帖子 解释了如何重新构建在创建引导程序时使用的 setup.exe 存根,但我希望有一种更简单的方法来完成我需要的操作。

有谁知道创建引导程序的方法,我用它作为简单(带 UI)安装或静默安装运行。

I need to create a bootstrap for my WiX project I've tried using setupbld.exe but it will only allow me to create an executable that will show my UI or one that will behave as a silent installer but not both.

I need to be able to run the resulting executable with argument that will tell it wether or not to show the UI during installation.

I've found this post by John Robbins that explains how to re-build the setup.exe stub used in the creation of the bootstrap but I was hoping there is a simpler way to do what I need.

Does anyone know of a way to create a bootstrap that I use to run either as a simple (with UI) install or as a silent install.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情痴 2024-09-06 08:01:59

我在 dotNetInstaller rel="nofollow noreferrer">WiX 邮件列表很多,应该比 setupbld.exe 灵活很多,但我自己没用过。

更新:如果您有购买软件的预算,请尝试 MSI Factory(该演示仅在启动引导程序之前显示一个导航屏幕)。我们自己用这个,每一分钱都是值得的。

I've seen dotNetInstaller recommended on the WiX mailing list a lot, should be a lot more flexible than setupbld.exe but I haven't used it myself.

Update: If you've got budget to purchase software, try the bootstrapper that comes with MSI Factory (the demo just displays a nag screen before launching the bootstrapper). We use this ourselves and it's been worth every penny.

╭⌒浅淡时光〆 2024-09-06 08:01:59

最后,我使用 7zip 将 MSI 压缩为自解压存档。
您可以添加一个“配置”文件,让 7zip 在打开可执行文件时运行哪些文件。

请查看 7zip 手册了解更多详细信息

AT the end I've used 7zip to zip the MSI in a self extracting archive.
You can add a "config" file to let 7zip which files to run when opening the executable.

Check out 7zip's manual for more details.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文