Visual Studio安装程序部署:添加前提条件 [英] Visual Studio Setup & Deployment: Adding Pre Requisits

查看:124
本文介绍了Visual Studio安装程序部署:添加前提条件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加到设置&我希望客户端的部署项目具有更多组件,例如:

How can I add into Setup & Deployment project that I want to the client has more components, like:

Microsoft Chart Controls
Microsoft SQL 2008 Express Edition (not 2005)

等...

替代文本http://img55.imageshack.us/img55/2586/200902021225eu9. png

此选项不在VS 2008中,并且在窗口(如上图)中,它仅具有指向"检查Microsoft Update是否有更多可重新分发的组件",但它转到带有2个引导程序包"的页面(我什至不知道这是什么)

This options are not in VS 2008, and in the window (image above) it only has a link to "Check Microsoft Update for more Redistributable components" but it goes to a page with 2 "bootstrapper packages" (I don't even know what's this)

关于如何将其添加到项目中而不是要求用户手动安装的任何想法?

any ideas on how to add this to the project instead asking the users to install this manually?

谢谢.

推荐答案

看一下文章

为Visual Studio 2005创建自定义引导程序包

如果找到文件夹 C:\ Program Files \ Microsoft Visual Studio 8 \ SDK \ v2.0 \ BootStrapper \ Packages(VS 2005) 或者,对于VS 2008, C:\ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ Bootstrapper \ Packages

If you locate a folder C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages (VS 2005) or, for VS 2008, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

软件包"下的每个文件夹都是您在列表中看到的先决条件,如屏幕截图所示.

Each folder under 'Packages' is the prerequisite you see in the list, as shown on your screenshot.

因此,如果要添加一个名为MyPrereq的应用程序作为先决条件,则需要在软件包"下创建自己的文件夹"MyPrereq".然后,您创建一个与此相似的product.xml文件

So, if you want to add an application called MyPrereq as a prerequisite, you need to make your own folder 'MyPrereq' under 'Packages'. Then you make a product.xml file similar to this

<?xml version="1.0" encoding="utf-8"?>
<Product ProductCode="MyPrereq" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
  <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="MyPrereq.exe" />
  </PackageFiles>
  <InstallChecks>
  </InstallChecks>
  <Commands Reboot="None">
    <Command PackageFile="MyPrereq.exe" EstimatedInstallSeconds="90">
      <InstallConditions>
      </InstallConditions>
      <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
        <DefaultExitCode Result="Fail" String="GeneralFailure" FormatMessageFromSystem="true" />
      </ExitCodes>
    </Command>
  </Commands>
</Product>

和与此类似的package.xml文件

and your package.xml file similar to this

<?xml version="1.0" encoding="utf-8"?>
<Package Name="MyPrereq" Culture="Culture" xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper">
  <Strings>
    <String Name="Culture">en</String>
    <String Name="DisplayName">MyPrereq</String>
    <String Name="GeneralFailure">A fatal error occurred. The installation failed.</String>
  </Strings>
</Package>

并将这些文件和安装包(MyPrereq.exe)放在文件夹中.以现有软件包为例,查看将文件放置在何处.

and place these files and your setup package (MyPrereq.exe) in the folder. Check the existing packages as an example to see where to place files.

如果一切正确,您将可以在选择要安装的先决条件"列表中看到MyPrereq选项.

If you do everything properly, you will be able to see your MyPrereq option in the list of "Choose which prerequisites to install".

这篇关于Visual Studio安装程序部署:添加前提条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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