如何以静默方式安装程序. [英] How to install program silently.

查看:106
本文介绍了如何以静默方式安装程序.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Windows应用程序上创建了,并且还使用c#中的安装项目创建了它的安装程序.

但是我需要在安装过程中提供服装表单的注册过程以及一些初始数据库设置,因此我想我将再创建一个项目,该项目将使用我的注册表单和初始设置来创建一个Windows应用程序. br/>
所以我想要的是当我运行安装程序时,它将以我的自定义窗体项目开始,而我的原始安装程序将从后台静默安装,例如Visual Studio 2010具有自己的自定义窗体安装过程.我想要这样.

I have created on windows application and also create its setup using setup project in c#.

but i need to provide costume form with registration process as well as some initial database setting in my setup process, so for this i think i will create one more project that will one windows application with my registration form as well as initial setting from.

so what i want is when i run setup it will start with my custom form project and my original setup will silently installed from background, like visual studio 2010 has its own setup process with custom form. i want like this.

推荐答案


一种强大的解决方案是使用System.Configuration中的Installer类.使用此类,您可以在安装的不同阶段运行各种代码.请查看此以获取更多信息:
http://msdn.microsoft.com/en-us/library/system. configuration.install.installer.aspx [ ^ ]

希望对您有所帮助,
干杯.
Hi,
One powerful solution is to use Installer class which is in System.Configuration. Using this class you can run various codes during different phases of the installation. Take a look at this for more information:
http://msdn.microsoft.com/en-us/library/system.configuration.install.installer.aspx[^]

I hope it will help,
Cheers.


这篇关于如何以静默方式安装程序.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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