管理员权限 - 开发人员问题还是用户问题?
我最近开发了一个适用于 Windows XP 和更高版本的应用程序,它对系统注册表进行了一些更改。它已经在多台机器上进行了测试,现在我遇到了一个事件,用户在启动安装程序时收到错误消息:“在 Windows XP 上安装此程序时,您必须以管理员身份登录”。如果用户没有任何管理权限,Windows 会拒绝安装程序,这是可以理解的。
作为软件的开发者,我可以采取什么措施来防止这种情况发生吗? (不做不触及注册表的工作)。或者这只是一个用户问题?
I recently developed an application for Windows XP and newer which make some changes in the system registry. It has been tested on several machines and i now got an incident where a user gets the error message when launching the installer: "You must be logged in as an administrator when installing this program" on Windows XP. It's understandable if the user don't got any administration privileges that Windows rejects the installer.
As being the developer of the software, can I do anything to prevent this from happening? (Without doing the work not touching the registry). Or is it simply just a user problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你没有说的是软件要做什么。如果它是真正的管理员软件,那么它可能需要管理权限。如果它用于特定用途并且您的客户批准,则可能需要管理权限(在假设可以之前询问客户)。如果普通用户可能会使用它,并且会在专门批准此操作的企业外部使用它,那么您需要找到一种方法使其可由特权较低的帐户使用,如果这包括不更改系统注册表,那就是你必须做的。
Windows Vista 引入了 UAC,它的设计目的是让像您这样需要管理员权限的软件难以使用。这是有原因的:允许一般人始终以管理员身份运行是一个很大的安全问题。越来越多的企业正在分发没有管理员权限的计算机,因此您的软件将在越来越少的企业系统上使用。
如果这是某种家庭/个人软件,则需要管理员权限将使 Vista 和 7 上的用户对您的软件不太满意,并且将使大量个人用户的全球安全问题长期存在,因为他们不具备计算机知识。在网络上以管理员身份登录。
除非您处于某种利基市场,否则这不是用户问题(如果是,您真的想给用户带来问题吗?)。这是开发者的问题。
What you didn't say was what the software was going to do. If it was true administrator software, then it can require administration privileges. If it's for a specific use and your client approves, it can require administration privileges (ask the client before assuming it's OK). If it's something a normal user might use, and will see use outside an enterprise that has specifically approved this,you need to find a way to make it usable by less privileged accounts, and if that includes not making changes to the system registry that's what you'll have to do.
Windows Vista introduced UAC, which was designed to make software like yours, which requires administrator privileges, awkward to use. This was for a reason: allowing people in general to run as administrator at all times is a big security issue. More and more enterprises are passing out computers without admin privileges, so your software will be usable on fewer and fewer corporate systems.
If this is some sort of home/personal software, requiring admin privileges is going to make users on Vista and 7 less happy with your software, and is going to perpetuate the global security issue of hordes of individual users, with no computer savvy, being on the net logged in as administrator.
Unless you're in some sort of niche, this is not a user problem (and, if it was, do you really want to be causing your users problems?). It's a developer problem.