Wix Bootstrapper无法解析.Net Framework

Mag*_*lin 1 wix

我需要我的安装程序来安装.Net框架作为先决条件,并根据我在网上找到的方法来做到这一点:

<Chain>
      <PackageGroupRef  Id="NetFx45Web" />
     <MsiPackage SourceFile="... my msi.." />
</Chain>
Run Code Online (Sandbox Code Playgroud)

但是,我收到此编译错误:

错误53"Bundle:SetupBootstrapper"部分中对符号"ChainPackageGroup:NetFx45Web"的未解析引用.C:\ Source\skystoredesktop\SetupBootstrapper\Bundle.wxs 8 1 SetupBootstrapper

怎么了?

小智 6

将WixNetFxExtension的引用添加到您的bundle项目中

这可以在light命令行上完成:

light Bundle.wixobj -ext WixNetFxExtension
Run Code Online (Sandbox Code Playgroud)