我需要为我的 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.
发布评论
评论(2)
我在 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.
最后,我使用 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.