ClickOnce先决条件-如​​何管理先决条件的安装顺序? [英] ClickOnce Prerequisites - How to manage install order of Prerequisites?

查看:94
本文介绍了ClickOnce先决条件-如​​何管理先决条件的安装顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用VS2010。我的应用程序已部署为ClickOnce。我的三个先决条件是CR 2010和.NET 4.0。机器成功。我需要这个ClickOnce才能首先安装.NET 4.0 THEN CR2010。似乎只是一个简单的建议,但是我似乎无法回答这个问题?



任何帮助都会很大



吉姆

解决方案

bootstrapper软件包通常在这里定义...
C:\程序文件\Microsoft SDKs\Windows\v7.0A\Bootstrapper\软件包



在每个软件包下都有一个 product.xml 文件。我认为这可能是您需要编辑的内容。例如,查看该文件中的F#redist,可以看到...

 < RelatedProducts> 
< EitherProducts>
< DependsOnProduct Code = Microsoft.Windows.Installer.3.1 />
< DependsOnProduct Code = Microsoft.Windows.Installer.4.5 />
< / EitherProducts>
< EitherProducts>
< DependsOnProduct Code =。NETFramework,Version = v4.0 />
< DependsOnProduct Code =。NETFramework,Version = v4.0,Profile = Client />
< / EitherProducts>
< / RelatedProducts>

似乎您可能只需要为Crystal Reports产品文件编辑此文件并添加一些依赖项即可。我还没有尝试过,只是建议一个可以开始寻找的地方。


I am using VS 2010. My app is ClickOnce deployed. My three Prerequisites are CR 2010 and both the .NET 4.0's.

When i run the ClickOnce the CR 2010 prerequisites runs first, but it requires .NET to be on the machine to be successful. I need this ClickOnce to first install .NET 4.0 THEN CR 2010. Seems like a simply proposition, but one that i cant seem to get answered?

Any help would be greatly appreciated!

Jim

解决方案

The bootstrapper packages are usually defined here... C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages

Under each package it a product.xml file. I think this may be what you need to edit. For example, looking at that file for the F# redist I can see...

<RelatedProducts>
  <EitherProducts>
      <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
      <DependsOnProduct Code="Microsoft.Windows.Installer.4.5" />
  </EitherProducts>
  <EitherProducts>
      <DependsOnProduct Code=".NETFramework,Version=v4.0" />
      <DependsOnProduct Code=".NETFramework,Version=v4.0,Profile=Client" />
  </EitherProducts>
</RelatedProducts>

Seems like you may just need to edit this file for your Crystal Reports product file and add some dependencies. I haven't tried this out, just suggesting a place to start looking.

这篇关于ClickOnce先决条件-如​​何管理先决条件的安装顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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