如何创建运行自解压exe的wix bootstrapper应用程序作为exepackage [英] how to create a wix bootstrapper application that runs self extracting exe as an exepackage

查看:131
本文介绍了如何创建运行自解压exe的wix bootstrapper应用程序作为exepackage的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个安装软件包,它们是我们应用程序的先决条件.这两个都是从供应商处下载的自解压可执行文件,其中包含实际的setup.exe以及数百个安装所需的文件和文件夹.当我在引导程序应用程序中使用exe软件包运行sfx exe时,它将运行提取部分,然后启动安装setup.exe,然后在安装仍在进行时关闭提取exe.这将导致下一个exe程序包尝试过早运行,并最终导致安装混乱.

I have 2 installation packages that are prerequisites for our application. Both of these are downloaded from the vendor as self extracting executables containing the actual setup.exe and hundreds of files and folders required for the installation. When I run the sfx exe using an exepackage in the bootstrapper application it will run the extraction portion then kick off the installation setup.exe and then close the extraction exe while the installation is still going. This causes the next exepackage to try to run prematurely and ends up with a messy install.

是否可以使用wix解决此问题?我尝试使用运行自定义操作的标准安装程序来提取文件和setup.exe,然后运行安装exe,然后等待直到安装exe被终止,然后再移至第二个软件包,但安装setup.exe被卡住并执行了在启动wix安装程序的msiexec终止之前不能继续.

Is there a way to work around this using wix? I have tried using a standard setup that runs a custom action to extract the files and setup.exe then run the installation exe then wait until the installation exe is terminated before moving on to the second package but the installation setup.exe gets stuck and does not continue until initiating wix installer's msiexec is terminated.

我很惊讶没有在stackoverflow中看到此问题,所以我希望自己对此有所考虑,并且有一种简单的方法可以做到这一点.预先感谢.

I am suprised not to see this issue brought up in stackoverflow so I am hoping that I am overthinking it and there is a simple way to do this. Thanks in advance.

推荐答案

如果有人感兴趣,我会提取所需的SFX一切.然后,我使用WinRAR从提取的文件中创建了自己的SFX. WinRAR SFX选项使我能够保持SFX进程运行,直到完成其余的安装部分.这使引导应用程序保持简单.

If anyone is interested, I extracted everything for SFX that I need. Then I created my own SFX from the extracted files using WinRAR. WinRAR SFX options give me the ability to keep the SFX process running until the rest of the installation portion is finished. This keeps the bootstrap application simple.

这篇关于如何创建运行自解压exe的wix bootstrapper应用程序作为exepackage的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆