如何部署设计为在PC上运行而不安装软件的Windows程序 [英] How to deploy a windows program designed to run on PC without installation of the software

查看:85
本文介绍了如何部署设计为在PC上运行而不安装软件的Windows程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们!

我开发了一个Windows应用程序,打算在没有事先安装的情况下在任何计算机上使用它(就像flash播放一样)。

如何对我进行部署一直很困难。

请帮帮我。

谢谢。

Hi Friends!
I've developed a windows application program with the intention of using it on any computer without prior installation (just like flash play).
How to go about the deployment has been challenging to me.
Please, help me out.
Thank you.

推荐答案

这是一种非常常见的部署方式,由于一些很好的理由而越来越受欢迎,最后由微软鼓励开始。安装会污染系统注册表,并不总是提供清晰的清理,而且通常不需要。现代术语中的替代包被称为便携式,但没有什么新的东西。



你所需要的只是开发同样适用的应用程序只需复制到任何驱动器的任何目录,包括可移动驱动器。没什么特别的。对于第一次部署,您只需在某处,某些网络服务器或可移动驱动器上复制输出目录的内容(基本上是发布配置)。



应用程序应该对任何特殊目录,驱动器,名称,某些用户及其名称,任何东西都不做任何假设;它不应修改任何系统设置或对此类设置做出任何假设。事实上,这是任何编程的一般要求,但有许多开发人员无法满足它。如果你不能这样做,你就不会真正做编程,无论是否可以安装项目。



此外,更好的更复杂的产品有两个版本:可安装和便携(当然,基于相同的代码)。安装只需添加几个步骤,为产品的永久使用提供一些便利:例如,使用已安装的软件注册要打开的文件类型,等等。更简单的产品可能永远不需要这样的东西。



-SA
This is a very usual way of deploy gaining more and more popularity, for some good reasons, and finally started to by encouraged by Microsoft. Installation contaminates system registry, not always provides clear clean-up, and often is not needed. The alternative packages are called "portable" in modern jargon, but there is nothing new about it.

All you need is to develop the application which works equally well when it is simply copied to any directory of any drive, including removable drives. There is nothing special about it. For the first deployment, you simply copy the content of your output directory (basically, for Release configuration) somewhere, on some network server or removable drive.

The application should make no assumptions on having any special directories, drives, their names, certain users and their names, anything; it should not modify any system setting or make any assumptions on such settings. As a matter of fact, this is a general requirement for any programming at all, but there are many developers who cannot meet it. If you cannot do it, you don't really do programming, no matter is it installable project or not.

Also, good more complex products comes in two versions: installable and "portable" (of course, based on the same code). Installation just add few steps providing some convenience to permanent use of the product: say, registers the file types to be opened with the installed software, and so on. Simpler products may never require anything like that.

—SA


这篇关于如何部署设计为在PC上运行而不安装软件的Windows程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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