在程序文件和Appdata中安装 [英] Installing in Program Files vs. Appdata

查看:79
本文介绍了在程序文件和Appdata中安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在用户的AppData目录中安装应用程序有什么好处和弊端?

What are the benefits and downsides of installing an application in the user's AppData directory?

我认为在AppData中安装将使受限环境中的用户能够安装和使用该应用程序.

I assume that installing in AppData will let users in restricted environments be able to install and use the application.

推荐答案

将其安装到Program Files的好处之一就是用户希望它运行到正确的位置.通常,用户首先会在这里查看该程序的安装位置.最大的缺点是用户需要管理权限,而程序并不总是需要此权限.

One of the benefits of installing to Program Files is that is exactly where the user expects it to go. Usually users go here first to look where the program is installed. The biggest downside is that the user needs administrative privileges, which isn't always required by the program.

您正确地假设安装到AppData将允许受限用户安装和使用该应用程序.它还将在网络系统上跟踪用户,使他们能够从使用同一帐户登录的任何计算机上访问程序.但是,这也是一个缺点,因为这意味着一台计算机上的2个或3个用户将安装2个或3个版本.

You are correct in assuming installing to AppData will let restricted users install and use the application. It also will follow the user around on network systems, allowing them to have access to the program from any machine they log into with the same account. This is also a downside however since it means 2 or 3 users on a machine will have 2 or 3 versions of it installed.

Google将其产品安装到AppData,这非常好,因为它可以由任何用户安装(包括在计算机上装有IE6或其他东西的学校).

Google installs its products to AppData, which is great since it can then be installed by any user (including at schools where the computers are stuck with IE6 or something).

对于任何配置或随程序更改的程序文件,都应使用AppData.我个人更喜欢将程序安装到程序文件"中,因为这是用户认为将要安装的位置,并且它需要管理员权限(通常是出于某种原因设置的),遵守这些权限对于应用程序来说是一件很不错的事情.最终由您决定,但是默认值可能应该只是程序文件.

You should use AppData for any configuration, or program files that will change with the program. I personally prefer installing programs to Program Files, because that's where users assume it will be installed, and it requires admin permissions, which is usually set for a reason, and abiding by those permissions is just nice for an app to do. Ultimately it's up to you, but the default should probably just be Program Files.

这篇关于在程序文件和Appdata中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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