在Google Chrome等AppData中安装程序有什么优势? [英] What are the advantages of installing programs in AppData like Google Chrome?

查看:276
本文介绍了在Google Chrome等AppData中安装程序有什么优势?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚注意到,在Vista和XP中,Chromium都安装在AppData中。如果谷歌这样做,如果其他应用程序这样做,比那是因为有某种形式的保护?我们是否应该编写与Google完全相同的安装程序?

解决方案

Windows仍缺少每用户安装的约定。 p>


  • 当安装程序询问是否为当前用户或所有用户安装时,它实际上仅指快捷方式放置(开始菜单;桌面)。实际的应用程序文件仍然存在于系统范围内%PROGRAMFILES%

  • 微软自己的ClickOnce通过创建完全非 - 标准%USERPROFILE%\本地设置\应用程序%USERPROFILE%\AppData\Roaming / Server 2008)目录,同时包含程序文件和配置数据。



例如,在OS X中,你可以创建一个〜/ Applications ,Finder会给它一个适当的图标。



您可能应该 如果用户不是管理员,请安装在用户目录中;如果他们这样做,给他们两个选项。


I just noticed that Chromium was installed in AppData in both Vista and XP. If Google does that and if other applications does this, than is that becuase there is some form of protection? Should we write installers that does the same thing as Google?

解决方案

Windows still lacks a convention for per-user installation.

  • When an installer asks whether to install for the current user or all users, it really only refers to shortcut placement (Start Menu; Desktop). The actual application files still go in the system-wide %PROGRAMFILES%.
  • Microsoft's own ClickOnce works around this by creating a completely non-standard %USERPROFILE%\Local Settings\Apps (%USERPROFILE%\AppData\Roaming on Vista / Server 2008) directory, with both program files and configuration data in there.

(I'm at a loss why Microsoft couldn't add a per-user Program Files directory in Vista. For example, in OS X, you can create a ~/Applications, and the Finder will give it an appropriate icon. Apps like CrossOver and Adobe AIR automatically use that, defaulting to per-user apps. Thus, no permissions issues.)

What you probably should do: if the user is not an admin, install in the user directory; if they do, give them both options.

这篇关于在Google Chrome等AppData中安装程序有什么优势?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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