简体   繁体   English

在没有安装程序和ClickOnce的情况下部署C#/ .NET应用程序

[英]Deploying a C#/.NET application without an installer nor ClickOnce

I am looking for a solution to: 我正在寻找一个解决方案:

  1. I don't have authorisation for installing an application on a client computer. 我没有在客户端计算机上安装应用程序的授权。 That's why I need to deploy the application without an installer. 这就是我需要在没有安装程序的情况下部署应用程序的原因。 Just like a portable application or a standalone application - something like that. 就像便携式应用程序或独立应用程序一样 - 就像这样。

  2. The client computer also has a limitation in its Internet connection, so ClickOnce will not work either. 客户端计算机的Internet连接也有限制,因此ClickOnce也不起作用。

  3. I'm using Visual Studio Express 2010. I saw WiX could solve my limitation in setting-up my application. 我正在使用Visual Studio Express 2010.我看到WiX可以解决我在设置应用程序时的限制。 But still, I can't install the application. 但是,我仍然无法安装该应用程序。

In your solution, set CopyLocal to true for all projects. 在您的解决方案中,为所有项目将CopyLocal设置为true This will ensure that the ..\\Bin folder contains all the necessary assemblies for your program. 这将确保..\\Bin文件夹包含程序的所有必需程序集。 Then just zip up the ..\\Bin folder, get it onto the client machine, and then unzip it. 然后只需压缩..\\Bin文件夹,将其放到客户端计算机上,然后解压缩即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM