无提示安装必备组件 [英] Silent Install of Prerequisite Components

查看:102
本文介绍了无提示安装必备组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们用.mdf文件开发了窗口应用程序(来自sql server 2005)。几乎我们的整个应用程序都已完成,我们已经为我们的应用程序生成了.msi文件并集成了(.mdf),但是我们的msi文件没有检查先决条件是否存在,如果它们不存在于客户端系统中则不会安装它们.how解决这个问题帮助我。实际上我们是部署新手,所以我们需要帮助来解决这个问题。如果它们在客户端系统中不存在,那么它们是用于安装先决条件的任何代码。我们只需要在我们的应用程序中放置两个先决条件:.NET FRAMEWORK 4.5 SQL SERVER 2005 EXPRESS如果这两个不存在他们必须安装客户端系统。以任何方式(通过无声的方式)。如何做到这一点,我们需要放置一些步骤或样本,以便对我们有帮助

解决方案

编写一个查询先决条件的bootstrap exe,并安装它们如果需要,然后执行你的MSI



。NET [ ^ ]



SQL Server [ ^ ]



遗憾的是,Microsoft不符合他们自己的MSI标准,因此您无法找到相应的功能/组件ID并使用MSI检测机制



不要安静地安装它们 - 它们需要AGES,并且没有什么比一个更令人烦恼/关注exe只是坐在那里吃周期和磁盘空间


要添加先决条件,你必须右键单击安装项目并查看项目的属性,在那里你可以找到先决条件作为选项。您还可以找到描述此问题的MSDN文章:



http://msdn.microsoft.com/en-us/library/vstudio/7eh4aaa5(v=vs 0.100)的.aspx

We have developed window application with .mdf file (from sql server 2005). Almost our entire application had been done,we have generated .msi file for our application with integration of (.mdf) but our msi file doesn't checks prerequisites to be present and doesn't installs them if they are not present in client systems.how to solve this issue help me out. Actually we are new to deployment so we need help to solve this . is their any code to be write for installation of prerequisites if they are not exists in client systems.we need only two prerequisites to be placed with our application that is : .NET FRAMEWORK 4.5 SQL SERVER 2005 EXPRESS if these two doesn't exists in client systems they must install. in any manner (means through silently). How to do this we need some steps or samples to be placed so that it would be helpful to us

解决方案

write a bootstrap exe that queries for prerequisites, and installs them if required, and then executes your MSI proper

.NET[^]

SQL Server[^]

Unfortunately, Microsoft don't conform to their own MSI standards, so you can't find the appropriate feature/component ID and use the MSI detection mechnism

Do NOT install them silently - they take AGES, and there's nothing more annoying/concerning than an exe just sat there eating cycles and disk-space


To add prerequisite, you have to right click the setup project and see the property of the project, where you can find prerequisites as an option. You can also find the MSDN article described this issue:

http://msdn.microsoft.com/en-us/library/vstudio/7eh4aaa5(v=vs.100).aspx


这篇关于无提示安装必备组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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