Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sql-server/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如何在wix中运行引导程序之前检查先决条件_.net_Sql Server_Wix_Bootstrapper_Prerequisites - Fatal编程技术网

.net 如何在wix中运行引导程序之前检查先决条件

.net 如何在wix中运行引导程序之前检查先决条件,.net,sql-server,wix,bootstrapper,prerequisites,.net,Sql Server,Wix,Bootstrapper,Prerequisites,我在.wixproj文件中定义了SQL server引导程序: <BootstrapperFileV7 Include="Microsoft.Sql.Server.Express.10.0"> <ProductName>Sql Server Express</ProductName> </BootstrapperFileV7> Sql Server Express 以及.wxs文件中的先决条件检查: <PropertyRef Id=

我在.wixproj文件中定义了SQL server引导程序:

<BootstrapperFileV7 Include="Microsoft.Sql.Server.Express.10.0">
  <ProductName>Sql Server Express</ProductName>
</BootstrapperFileV7>

Sql Server Express
以及.wxs文件中的先决条件检查:

<PropertyRef Id="NETFRAMEWORK35_SP_LEVEL" />
<Condition Message="This setup requires the .NET Framework 3.5 Service Pack 1 to be installed.">
  <![CDATA[Installed OR NETFRAMEWORK35_SP_LEVEL]]>

SQL server引导程序在.NET检查之前被调用,并在需要.NET时失败


我想做的是通知用户他们需要下载并安装.Net,因为它太大,无法包含在安装程序中。有没有办法确保在启动程序运行之前调用前置条件?

我也遇到了类似的问题。我所做的是创建一个本机预安装程序/引导程序。我让它检查先决条件并在需要时安装.Net,然后执行wix安装程序文件。我写了一篇关于这个过程的博客