Wix和框架设置 [英] Wix and Framework Setup

查看:82
本文介绍了Wix和框架设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

在安装WIX安装程序安装文件时可以检查是否安装了框架.另外,如果未安装框架,则框架将在WIX安装程序安装文件结束后安装.
请帮助我

谢谢与问候

Rameshkumar.T

Dear All,

Is possible to check framework installed or not when installing the WIX installer setup file. Also If framework is not installed then framework will install after end of the WIX installer setup file.?

Please help me

Thanks & Regards

Rameshkumar.T

推荐答案

<pre>


大家好,

在wix安装程序安装结束后,我得到了一个解决方案来安装框架.

将文件移动到应用程序安装文件夹.


Hi All,

I got a solution to install the framework after end of the wix installer installation.

Move file to application installation folder.

<component id="DotNetFramework4.0.exe" guid="F23D2C15-ADBB-41CB-9EE8-51410D572655">
              <file id="DotNetFramework4.0.exe" name="DotNetFramework4.0.exe" source="<source folder>\dotNetFx40_Client_x86_x64.exe" />
</component>



添加组件参考



Add component ref

<pre lang="xml"><ComponentRef Id="DotNetFramework4.0.exe"/>
</pre>



添加安装顺序



Add install sequence

<installexecutesequence>
      <custom action="DotNetFramework4.0.exe" before="InstallFinalize">NOT ISDOTNET</custom>
    </installexecutesequence>



添加自定义操作



Add custom action

<customaction directory="<Target Directory>" execommand="[#DotNetFramework4.0.exe]" id="DotNetFramework4.0.exe" return="asyncNoWait" impersonate="no" execute="deferred" />


这篇关于Wix和框架设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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