有没有办法部署.Net应用程序而不使用MSI? [英] Is there a way to Deploy a .Net application without using an MSI?

查看:152
本文介绍了有没有办法部署.Net应用程序而不使用MSI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我想在终端服务器上安装的.Net程序。过去,我创建了安装程序项目并生成了一个MSI。然而,终端服务器要求所有用户在运行MSI之前都会被关闭,我想避免这种情况。有没有办法做一个没有MSI的安装?



有时对于某些用户帐户,我可以简单地复制.exe并使用它。但是对于其他用户来说,这些文件显然存在,会抛出文件未找到错误。 (显然,如果exe没有通过MSI正式安装,那么运行.net exe的注册表设置可能会或不存在?)



唯一的注意事项是机器必须安装正确的.net框架...


I have a .Net program that I want to install on a terminal server. In the past I've created installer projects and generated an MSI. However, terminal servers require all users be bumped off before running an MSI and I want to avoid that. Is there a way to do an install without a MSI?

Sometimes for some user accounts I can simply copy the .exe and use it. But for other users doing that throws wierd "file not found" errors for files that obviously exist. (Apparently there are registry settings that must be present to run a .net exe that may or may not be present if the exe hasn't been "officially" installed via an MSI?)

解决方案

yes, in general, unless you need to install a component into the Global Assembly Cache, (GAC), all you need to do is copy the files to a folder on the computer you want to run it on.. To run it, all you need to do is double click the .exe file.

The only caveat is that the machine has to have the correct .net framework installed already...

这篇关于有没有办法部署.Net应用程序而不使用MSI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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