找不到'installallusers'属性 [英] Cant find 'installallusers' property

查看:499
本文介绍了找不到'installallusers'属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想发布我的应用程序,以便安装它的计算机的所有用户都可以访问它.我已经读过我需要将"installallusers"属性设置为true.但是我找不到它.它应该在项目解决方案属性下.

有人可以帮忙吗?

Hi everyone,

I want to publish my application so that all the users of the computer it is installed on can access it. i have read that i need to set the ''installallusers'' property to true. however i cannot find it. it supposed to be under project solution proprties.

Can anyone help?

推荐答案

请参阅我对问题的评论.我会回答,但不能确定您使用的是相同类型的安装/设置项目.请参阅:
http://stackoverflow.com/questions/76760/vs2008-setup-project-shared-by-all-users-application-data-files [
您可以简单地将输出目录的内容复制到适当的目标目录中.并且所有用户都可以使用它,除非某些用户的权限受到严格限制.顺便说一句,Microsoft开始鼓励这种部署方式,这种方式对于许多用户来说是最方便的,并且不会污染系统注册表.这是我最喜欢的部署方法.

那么,所有用户"的作用是什么?几乎没有.首先,它会影响应用程序.LNK的放置位置.如果您通过Windows开始"菜单上的链接安装应用程序,请执行以下操作:它是从特殊文件夹"中添加的部分中呈现出来的:一个针对所有用户,一个针对每个用户帐户创建的一个或多个单独文件夹.如果要在其中添加.LNK,则桌面也是如此.而且,您的应用程序还可以使用特殊文件夹"下的某个目录或该文件夹本身来持久存储某些中间数据或每个用户的单个配置数据.该目录可以是单个目录,每个用户帐户或所有用户"目录.就这样,仅此而已.

—SA
Please see my comment to the question. I will answer, but I cannot be sure you are using the same kind of installation/setup project. Please see:
http://stackoverflow.com/questions/76760/vs2008-setup-project-shared-by-all-users-application-data-files[^].

Now, let me explain the background. The "all users" option is not completely a bogus, but… almost; for many applications, it will be. You are not controlling the access to your application by the users at all. This is never needed — the users will have access to it anyway, no matter what you do. (Unless you somehow screw up the application code, of course. :-))

You can simply copy the content of your output directory to appropriate target directory; and all users will be able to use it, except maybe some users with severely limited permission. By the way, Microsoft started to encourage this way of deployment which is most convenient for many users and does not contaminate the system registry. This is my favorite method of deployment.

So, what this "all users" does? Almost nothing. First of all, it affects where the .LNK to your application is placed. If you install the application with the link on the Windows "Start" menu; it is rendered out of the parts added from "Special Folders": one for all users and others for one or more individual folder created per user account. Same goes about the desktop, if you want to add the .LNK there. And your application can also use some directory, under a "Special Folder" or this folder itself, to persist some intermediate data or individual per-user configuration data. This directory can be individual, per user account, or for "all user". And that''s it, nothing more.

—SA


这篇关于找不到'installallusers'属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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