应用程序部署到网络驱动器 [英] Application deployment to network drive

查看:260
本文介绍了应用程序部署到网络驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个需要内部公司网络运行 .NET 4 WPF 应用程序。结果
中的应用程序不使用本地文件(它确实有一个的app.config 文件,但它只是包含一些连接字符串)进行数据存储,但中央 SQL服务器数据库。
是什么把一个共享网络驱动器上的应用程序文件和刚刚创建一个快捷方式应用程序可执行文件为每个用户的缺点?结果
我发现一些关于这个问题的数据在以下链接但我不能得到一个明确的答案:结果
从映射驱动器或共享文件夹运行.NET程序 - 优点/缺点结果
从映射驱动器运行.NET程序或共享文件夹结果
http://support.microsoft.com/kb/832742 结果
检查也将是不错知道使用这种方法时,东东是如何工作的,是应用程序文件复制到本地用户还是其他什么东西发生了什么?

I have a .NET 4 WPF application that needs to run inside a company network.
The application does not use local files (it does have an app.config file but it only contains some connection strings) for data storage but a central SQL server database. What are the downsides of putting the application files on a shared network drive and just creating a shortcut to the application executable for each user?
I've found some data on the subject in the following links but I couldn't get a clear answer:
Run a .NET program from a mapped drive or shared folder - Pros/Cons
Run a .NET program from a mapped drive or shared folder
http://support.microsoft.com/kb/832742
It would also be nice to know how stuff works when using this approach, are the application files being copied to the local user or something else happens?

推荐答案

我对你的问题是,为什么会要?为什么不使用点击一次网络共享刚刚发布的.NET应用程序?

My question for you is why would you want to? Why not just publish the .NET application using click once to the network share?

当您从网络共享,应用程序的副本加载到内存客户机,和用于支撑文件将横穿网络以及请求上,被加载到存储器中。在此之上,你必须检查任何先决条件,可能会遇到一些故障。

When you run the application from the network share, a copy of the program is loaded into memory on the client machine, and requests for supporting files will transverse the network as well, to be loaded into memory. On top of this, you have to check for any prerequisites, and may experience some failures.

如果您发布到网络共享,当你完成发布向导,您的浏览器将打开到驻留在网络共享的网页。只是分享网址这一点,用户将能够在他们的机器上安装程序。这个方法最好的部分是自动更新,您不必担心打扰发布更新时,用户的工作流程。

If you publish to the network share, when you complete the publish wizard, your browser will open up to a webpage that resides on the network share. Just share the URL to this and users will be able to 'install' the program on their machine. Best part about this way is updates are automatic and you don't have to worry about interrupting users workflow when publishing updates.

ClickOnce应用程序并不需要管理员权限来安装,并安装自己的快捷键为用户。我已经构建并部署了其中的几个,大多数用户都足够舒适的安装过程中,通过一个链接从电子邮件访问它。

ClickOnce applications do not require admin permissions to install, and will install its own shortcuts for the users. I have built and deployed several of these, and most users are comfortable enough with the install process to access it through a link from an email.

修改

您还可以分发的快捷方式。应用文件一次您部署,只要你有信心的用户已经安装了预请求数。这将启动应用程序,如果是安装,或者安装,然后启动。

You can also distribute a shortcut to the .application file once you deploy, as long as you are confident users have the pre-reqs installed. This will launch the application if it was installed, or install and then launch.

这篇关于应用程序部署到网络驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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