[英]Install setup without asking admin permission in VS2010
I have created a windows application using C# NET VS2010. 我已经使用C#NET VS2010创建了Windows应用程序。
In our system there are multiple users, one of user don't have write permission. 在我们的系统中,有多个用户,其中一个用户没有写权限。 When we tried to install application for the same user it gave access denied admin permission error. 当我们尝试为同一用户安装应用程序时,它给出了访问被拒绝的管理员权限错误。
Is it possible to create deployment package that can install directly in any user/system without asking admin permission? 是否可以创建可以直接在任何用户/系统中安装而无需管理员许可的部署软件包?
You can install an application for the currently logged in user only. 您只能为当前登录的用户安装应用程序。 But for that you need to make sure that the application doesn't need write access to places where only administrators can write. 但是为此,您需要确保该应用程序不需要对只有管理员可以写的地方的写权限。 eg " Program Files ", " Windows ", " registry other than user's own hive(**HKEY_CURRENT_USER )" etc. 例如“ Program Files ”,“ Windows ”,“ 除用户自己的配置单元(** HKEY_CURRENT_USER )外的注册表 ”等。
A user has complete access to his/her own profile folder and can write to it. 用户具有对自己的个人资料文件夹的完全访问权限,并可以对其进行写操作。 You can install the application to user's Application Data folder (%userprofile%\\AppData). 您可以将应用程序安装到用户的“应用程序数据”文件夹(%userprofile%\\ AppData)。 You can use this folder for installation. 您可以使用此文件夹进行安装。 Install inside the " Local(%userprofile%\\AppData) " folder 安装在“ Local(%userprofile%\\ AppData) ”文件夹中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.