静默安装Dot Net应用程序 [英] Installing A Dot Net Application silently

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

问题描述



我有一个在winform中的程序,我希望那样,该程序将自动安装而无需单击该文件(只需将该exe文件放在笔式驱动器中,该笔式驱动器将连接到该exe文件在其中运行的计算机). >

简单来说,静默安装程序


请尽可能提供摘录


在此先非常感谢

Hi,

I have a program which is in winform, I want that, that program will install automatically without clicking on that file (just placed that exe file in pen drive, where that pen drive connected to the computer that exe file run there)


In simple sense install a program silently


Plz provide snippet if possible


Thanks in advance very much

推荐答案

binadi007写道:
binadi007 wrote:

我只想无需单击安装文件即可安装程序.例如,当我将exe文件放到笔式驱动器或硬盘上时,它会自动安装到计算机中.

Simply I just want to install a program without any click on installation file. For example when I put exe file to my pen drive or hard disk, it automatically install into the computer.

在任何情况下,都不能将其视为合法操作. 您将在未经用户同意的情况下做某事.如果我是用户,我1)会将其视为对我的犯罪,即使这是公司的正式政策或类似的行为2)我将采取一些措施,无论如何都不允许这种情况发生.即使从技术上来说甚至是非常简单的,我也不认为我们应该帮助实施不合法或可疑的行动.

那么,该怎么办呢?通常,此类产品具有所谓的便携式版本".并且在某些情况下,这是唯一的版本.在当今的行话中,它仅表示用户直接从拇指驱动器执行您的应用程序.用户还可以将产品复制到用户选择的任何目录中;并且该应用程序应该能够轻松运行.实际上,这是打包软件产品的最佳方法,尤其是当它们足够简单时.并且,可选地,可以提供可安装的版本".但是,只有在安装为用户提供了比便携式版本"更多的好处的情况下,它才有意义.例如,可安装版本可以设置与某些已安装产品的集成(根据定义,这些产品不能移植),可以在安装过程中收集一些用户首选项,并且最重要的是可以提供正确的卸载.如果您没有提供这些好处,那么可安装版本"就没有意义.

现在,谈一谈静默安装.它们通常用于自动在许多计算机上进行安装,否则几乎没有意义.在这种情况下,所有安装首选项都显示在预先创建的数据集中,该数据集是对手动"安装的补充.它的目的是在批处理模式下执行大量工作,以避免无聊的,非生产性的和重复的手工工作.不以潜意识的方式做任何事情,以作为对用户的转移. :-)

—SA

There are no situations where it could be considered as a legitimate action. You are going to do something without a user''s consent. If I was a user, I 1) would consider it as a crime against me, even if it was an official company policy or something like that, 2) I would take some measures to not allow that happen anyway. Even though it is technically possible and even pretty simple, I don''t think we should help to implement non-legitimate or questionable action.

So, what to do instead? Usually, such products have so called "portable version"; and, in some cases, this is the only version. In present-day jargon, it simply means that the user executes your application directly from your thumb drive. The user can also copy the product to any directory of the user''s choice; and the application should be able to run without hassles. In fact, this is the best way to package software products, especially if they are simple enough. And, optionally, an "installable version" could be provided. But it makes sense only if installation gives the user some additional benefits over the "portable version". For example, installable version can setup integration with some already installed products (which is, by definition, cannot be portable), collect some user preferences during installation, and, most importantly, provide a correct uninstallation. If you don''t provide such benefits, "installable version" makes no sense.

Now, a word about silent installations. They are usually used to automate installation on many computers and make little to no sense otherwise. In this case, all installation preferences are presented in a pre-created data set which complements the "manual" installation. The purpose of it it to perform considerable volume of work in batch mode, to avoid boring, non-productive, and repeated manual work. Not for doing anything in a subliminal manner, as a diversion against the user. :-)

—SA


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

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