维克斯和.NET Framework(prerequisites) [英] Wix and .NET Framework (prerequisites)

查看:248
本文介绍了维克斯和.NET Framework(prerequisites)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎么能有我的维克斯包下载所需的.NET框架时,它尚未安装在客户端的机器?我已经具备的条件,以检查是否安装了.NET版本,但我不知道怎么把它下载并安装的时候没有发现。

How can I have my Wix package to download the required .NET Framework when it's not yet installed in the client's machine? I already have the condition to check for the installed .NET version but I'm not sure how to have it downloaded and installed when not found.

的ClickOnce通过检查pre必备的属性页自动执行此操作。我只是需要把它在维克斯由于一些其他的要求做。

ClickOnce does this automatically by checking the pre-requisites in the properties pages. I just need to have it done in Wix due to some other requirements.

谢谢!

推荐答案

由维克斯创建的MSI软件包是无法做到这一点。 Windows安装程序是相当有限的,一个MSI文件(安装人员)不允许调用另一个MSI文件(在.NET Framework安装程序)。

The MSI package created by Wix is not able to do that. Windows Installer is rather limited and one MSI file (your installer) is not allowed to call another MSI file (the .NET Framework installer).

您必须创建一个所谓的引导程序(setup.exe文件),它可以检查指定pre-必需品,下载并根据需要安装它们,然后再启动您的MSI安装程序。

You will have to create a so-called bootstrapper (a setup.exe file) which can check for the specified pre-requisites, download and install them as needed, and then launches your MSI installer.

要创建引导程序的方法之一是使用Visual Studio或MSBuild任务GenerateBootstrapper。这里有一个链接让更多的细节:

One way to create the bootstrapper is by using Visual Studio or the MSBuild task GenerateBootstrapper. Here's a link giving more details:

HTTP://wix.mindcapers。 COM /维基/引导程序

如果您只想提供一个安装程序,以你的用户,你可能希望创建一个包含setup.exe文件和您的MSI封装的自充气安装包。你可以做到这一点的<一个href="http://www.microsoft.com/technet/prodtechnol/ie/ieak/techinfo/deploy/60/en/iex$p$pss.mspx?mfr=true"相对=nofollow> IEX preSS ,这是未来的Windows。

If you only want to provide a single installer to your users you might want to create a self-inflating installation package containing both the setup.exe file and your MSI package. You could do that with iexpress, which is coming with Windows.

下面是另一个链接举个例子:<一href="https://web.archive.org/web/20090411122211/http://www.clariusconsulting.net/blogs/pga/comments/42831.aspx"相对=nofollow> http://www.clariusconsulting.net/blogs/pga/comments/42831.aspx

Here's another link giving an example: http://www.clariusconsulting.net/blogs/pga/comments/42831.aspx

这篇关于维克斯和.NET Framework(prerequisites)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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