Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.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
Wix管理引导程序_Wix_Wix3.7_Wix Extension - Fatal编程技术网

Wix管理引导程序

Wix管理引导程序,wix,wix3.7,wix-extension,Wix,Wix3.7,Wix Extension,我的bundle.wxs中链接了一些ExecPackages。我有一个用于安装.Net Framework 4.0的PackageGroup部分。这已作为PackageGroupRef挂在链的开头。 当我双击引导程序时,会弹出一个安装.Net Fwk的.Net framework安装窗口。在安装.Net之后,我希望引导程序能够显示托管UI并继续实际的安装活动。 但是,问题是它只是在.Net framework安装后停止。我必须再次执行引导程序,UI才会弹出并恢复安装。bundle.wxs内容如下

我的bundle.wxs中链接了一些ExecPackages。我有一个用于安装.Net Framework 4.0的PackageGroup部分。这已作为PackageGroupRef挂在链的开头。 当我双击引导程序时,会弹出一个安装.Net Fwk的.Net framework安装窗口。在安装.Net之后,我希望引导程序能够显示托管UI并继续实际的安装活动。 但是,问题是它只是在.Net framework安装后停止。我必须再次执行引导程序,UI才会弹出并恢复安装。bundle.wxs内容如下所示:

     <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
             xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" 
             xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
          <Bundle Name="My-Installer" 
                  Version="3.0" 
                  Manufacturer="XXXX"
                  HelpUrl="XXXX"
                  UpdateUrl="XXXX"
                  UpgradeCode="XXXX">
            <!--Compressed="no"-->

            <!--Custom dialog is a WPF form-->
            <BootstrapperApplicationRef Id='ManagedBootstrapperApplicationHost'>
              <Payload Name='BootstrapperCore.config' SourceFile='..\MyBootstrapperCustomUI\MyBootstrapperCustomUI\MyBootstrapperCustomUI.BootstrapperCore.config' />
              <Payload SourceFile='..\MyBootstrapperCustomUI\MyBootstrapperCustomUI\bin\$(var.Configuration)\MyBootstrapperCustomUI.dll' />
            </BootstrapperApplicationRef>

            <Chain>
              <PackageGroupRef Id='Netfx4Full' />
              <ExePackage Id="MyPackage1"..../>
              <ExePackage Id="MyPackage2"..../>
            </Chain>
     <Fragment>
         <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
         <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full"   Value="Version" Variable="Netfx4FullVersion" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" Value="Version" Variable="Netfx4x64FullVersion" Win64="yes" />
         <util:RegistrySearch Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v3.5" Value="Version" Variable="Netfx35Version"/>
         <PackageGroup Id="Netfx4Full">
              <ExePackage Id="Netfx35" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="..\MyApp\dotNETFramework3.5SP1\dotnetfx35.exe" Name="MyApp\dotNETFramework3.5SP1\dotnetfx35.exe" DetectCondition="Netfx35Version AND (Netfx35Version &gt;= v3.5.30729.1)" InstallCommand="/q /norestart" UninstallCommand="/q /norestart" 
InstallCondition="(NOT Netfx35Version OR (Netfx35Version &lt; v3.5.30729.1)) AND NOT VersionNT >= v6.0"/><!--donot install if win7-->

              <ExePackage Id="Netfx4Full" Cache="no" Compressed="no" PerMachine="yes" Permanent="yes" Vital="yes" SourceFile="..\MyApp\dotNETFramework4.0\dotNetFx40_Full_x86_x64.exe" Name="MyApp\dotNETFramework4.0\dotNetFx40_Full_x86_x64.exe" InstallCommand="/passive /norestart" DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />
        </PackageGroup>
      </Fragment>

</Wix>
</Bundle>

好吧,至少从简化的捆绑代码开始。如果测试机器已经安装了任何版本的.NET,请添加。编辑上面的帖子以添加Bundle.wxs内容。