具有自定义先决条件的VS 2010中的安装项目 [英] Setup Project in VS 2010 with custom prerequisites

查看:79
本文介绍了具有自定义先决条件的VS 2010中的安装项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

慧,


我需要在Visual Studio 2010中创建C#Windows应用程序的安装项目,
具有一些自定义的先决条件(.NET Framework 4.0客户端配置文件,MySQL服务器,MySQL连接器).

现在我要做的是:

创建了一个安装项目,并为mysql,连接器添加了exe/msi文件.
为我要为其创建安装程序的项目添加了项目输出.
添加了一些启动条件和系统搜索.

现在发生的是,它首先执行MySQl Server设置,然后执行MySQL Connector设置,
然后是应用程序exe.

现在好了.

但是我想要的是首先它应该检查是否已安装mysql服务器...
如果没有,那么只有它应该执行设置...
但它总是执行mysql服务器设置..

请帮助...

hye,


I need to create a Setup Project in Visual Studio 2010, of a C# Windows Application,
with some custom prerequisites (.NET Framework 4.0 Client Profile, MySQL Server, MySQL Connector).

Now what i have done is :

Created a Setup Project and added exe/msi files for mysql, connector.
Added the project output for the project i want to create setup for.
added some launch conditions and system search.

Now what happening is, it first executes MySQl Server setup, then MySQL Connector setup,
then Application exe.

Now its okey..

But what i want is first it should check whether mysql server is installed or not...
if not, then only it should execute the setup...
but it always executes the mysql server setup..

Please help...

推荐答案

尝试一下.我想您想创建先决条件,BMG将帮助您从安装文件(MySql等)创建先决条件.

http://archive.msdn.microsoft.com/bmg/Release/ProjectReleases.aspx? ReleaseId = 1567 [ ^ ]
Try this. I guess you want to create prerequisites, BMG will help you to create prerequisites from setup file(MySql etc).

http://archive.msdn.microsoft.com/bmg/Release/ProjectReleases.aspx?ReleaseId=1567[^]


我发现了很多东西,但并没有太大帮助.
所以,最后我移到了批处理文件.

我已经将所有先决条件,我的应用程序和批处理文件添加到了文件夹中.
创建一个自解压的可执行文件,解压后
批处理文件被执行,首先检查先决条件
一一列出,如果不存在,请继续安装
如果存在,请继续下一步.
之后,它会安装我的应用程序.

是的,我知道用户界面无法自定义,
它们将是控制台屏幕.

但这很好用.
i found a lot of things, but didn''t helped much.
So, finally i moved to Batch files.

I have added all prerequisites, my application and batch file to a folder.
Created a self extracting executable file and after extraction
the batch file is executed, which first checks for prerequisites
one by one and if they doesn''t exist, continue for their installation
and if exists, continue for next.
After that, it install my Application.

yeah, i know the UI can''t be customized,
and their would be the console screen.

But its working good.


这篇关于具有自定义先决条件的VS 2010中的安装项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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