本文介绍了引导程序prerequisite订购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用通用的引导程序与MSBuild的是如何确定安装prerequisite项目?

When using the generic bootstrapper with MSBuild how is the order of installation of prerequisite items determined?

例如,给出:

<Project ToolsVersion="3.5" xmlns='http://schemas.microsoft.com/developer/msbuild/2003'>
  <ItemGroup>
    <BootstrapperFile Include='A' />
    <BootstrapperFile Include='B' />
    <BootstrapperFile Include='C' />
    <BootstrapperFile Include='D' />
  </ItemGroup>

  <Target Name='MySetup'>
    <GenerateBootstrapper
      Path='C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper'
      ApplicationName='My Program'
      ApplicationFile='MyProgram.msi'
      BootstrapperItems='@(BootstrapperFile)'
      Culture='en'
      CopyComponents='true'
      ComponentsLocation='HomeSite'
      OutputPath='.\' />
  </Target>
</Project>

什么是A,B,C和D获得安装顺序?如何控制这个顺序?

What is the order that A, B, C, and D get installed? How do I control that order?

推荐答案

它看起来像我可以在产品清单与 DependsOnProduct 标签中指定:

It looks like I can specify in the product manifest with the DependsOnProduct tag:

<Product ProductCode="A">
  <PackageFiles>...</PackageFiles>
  <RelatedProducts>
    <DependsOnProduct Code="B" />
  </RelatedProducts>
  ...
</Product>

A 正在安装

这应导致 B

http://msdn.microsoft.com/en-us/library/ ms229456.aspx

这篇关于引导程序prerequisite订购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 15:58