如何在没有管理员权限的情况下安装C#应用程序? [英] How Do I Make My C# Application Install Without Admin Rights?

查看:194
本文介绍了如何在没有管理员权限的情况下安装C#应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天,我从Windows 7计算机上的.exe文件中安装了Spotify,其用户没有管理员权限(受限用户).它看起来像安装在AppData文件夹中,并在桌面和开始菜单中创建了快捷方式.但是,它也已添加到控制面板的添加/删除程序"部分的已安装程序列表中,我认为没有管理员权限是无法做到的.

Yesterday, I installed Spotify from an .exe file on a Windows 7 computer with a user that didn't have admin rights (limited user). It looks like it installed in the AppData folder and created a shortcut onto the desktop and in the start menu. However, it was also added to the list of installed programs in the Add/Remove Programs section of the control panel, which I didn't think you could do without admin rights.

我真的很喜欢这种方法,并且希望将其应用于在SharpDevelop中创建的C#应用​​程序.最简单的方法是什么?

I really like this method, and would like to apply it to a C# app created in SharpDevelop. What's the easiest way to do this?

推荐答案

最简单的方法肯定是ClickOnce.在生成"菜单下,选择发布 YourProjectName ",然后按照向导进行操作-根据我的经验,您将立即在/publish中拥有一个随时可以安装的安装程序,而根据我的经验,该安装程序不需要管理员权限.

The easiest way is definitely ClickOnce. Under the Build menu, select Publish YourProjectName and follow the wizard - you’ll have a ready-to-go installer in /publish in no time that, in my experience, doesn’t require admin rights.

这篇关于如何在没有管理员权限的情况下安装C#应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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