使用第三方设置的 Visual Studio 部署 [英] Visual studio deployment with third party setups

查看:25
本文介绍了使用第三方设置的 Visual Studio 部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Visual Studio 中创建了一个安装项目.安装程序在客户端机器上运行良好,安装完成后应用程序运行良好.

I have a created setup project in visual studio. The setup runs fine on client's machine and application run fine after installation is complete.

我必须在我的部署包中包含几个第三方安装文件.我的应用程序依赖于它们的某些功能.

I have to include couple of third party setup files in my deployment package. My application is dependent on some of their features.

如何在我的部署项目中包含设置文件,并让它们在我的应用程序安装结束后一个接一个地自行安装...

How can I include setups files in my deployment project and let them install themselves one after the other once my application's installation is over...

任何帮助将不胜感激!谢谢...

Any help will be appreciated! Thank you...

推荐答案

通过 windows installer 安装第三方必备 MSI

Installing thrid party prerequisite MSI through windows installer

处理此要求的最佳方法是创建一个 Bootstrapper 包 并添加第三方包作为主应用程序安装程序的先决条件.首先,您必须从我在下面提供的链接中安装引导程序清单生成器工具.工具将自动生成必要的清单文件.您必须将这些文件复制到以下文件夹(Visual Studio2010)C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages.

Best approach to handle this requirement is to create a Bootstrapper package and add thrid party package as a prerequisite for the main application installer. First you have to install the bootstrapper manifest generater tool from the link i have provided below. Tool will autogenerate necessary manifest files. You have to copy these files to the following folder(Visual Studio2010) C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages.

完成后转到您 应用程序部署项目 > Properties > Prerequisite在那里你会看到你的第三方包作为先决选项之一.只需选择并创建 MSI.现在,当您运行应用程序的 Setup.exe 时,它将首先检查目标计算机中是否安装了第三方软件包,如果是,它将直接安装您的应用程序,否则它将首先安装必备组件,然后然后安装您的应用程序.

Once thats done go to You Application deployment project > Properties > Prerequisite There you will see your thrid party package as one of the prerequisite option. Just select that and create the MSI. Now when you run the Setup.exe of your application it will first check if the third party package is installed in the target machine if so it will directly install your application otherwise it will first install the prerequisite component and then install your application.

MSDN:引导程序首先检测是否有任何先决条件已安装.如果未安装先决条件,则安装开始满足先决条件.否则,如果所有检测到先决条件,引导程序只是启动应用安装程序.

MSDN: The bootstrapper first detects whether any of the prerequisites are already installed. If prerequisites are not installed, the installation begins for the prerequisites. Otherwise, if all the prerequisites are detected, the bootstrapper just starts the application installer.

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