简体   繁体   English

在VS2010中安装安装程序而无需询问管理员权限

[英]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.

相关问题 C#VS2010如何强制安装项目安装应用程序而不要求用户输入 - C# VS2010 How to force setup project to install application without asking for user input 使用VS2010在安装程序安装过程中安装Windows Service - Install Windows Service during Setup installation using VS2010 VS2010 Building Installer安装失败 - VS2010 Building Installer Failing on Setup 使用自动更新功能vs2010设置项目 - Setup project with autoupdate feature vs2010 VS2010安装项目升级和快捷方式 - VS2010 Setup Project Upgrade and Shortcuts 什么应该是VS2010设置的DefaultLocation属性,以便在C:\\ Users \\ [用户名] \\ AppData \\ Local文件夹中安装应用程序? - What should be DefaultLocation property of VS2010 setup to install application in C:\Users\[username]\AppData\Local folder? 使用我们的设置安装其他应用程序 - vs2010 桌面应用程序部署 - Install other apps with our setup - vs2010 Desktop App Deployment VS2010安装项目-使用PostBuildEvent以管理员身份安装后启动应用程序 - VS2010 setup project - Launch application after install as administrator using PostBuildEvent 安装使用VS2010创建的服务 - Install a service created with VS2010 在VS2010安装项目中为快捷方式设置正确的图标 - Setting correct icon for Shortcut in VS2010 Setup Project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM