在安装过程中创建Windows窗体应用程序的安装程序而无需管理员密码 [英] Create a setup for windows form application Without Administrator password while install

查看:141
本文介绍了在安装过程中创建Windows窗体应用程序的安装程序而无需管理员密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio中开发了一个Windows窗体应用程序.现在,我想在没有管理员权限的情况下将Windows应用程序安装在我的PC上.如何创建设置. (我已经在没有管理员权限的情况下在PC上安装了Photo Pad图像编辑器应用程序.)

I have developed a windows form application in visual studio. Now, I would like to install that windows application on my PC without administrator privilege. How can I create a setup. (I already installed Photo Pad image editor application on my PC without administrator privilege).

推荐答案

您最好的选择是使用 ClickOnce .安装典型的应用程序不需要管理员权限.原因之一是因为ClickOnce应用程序是为当前用户安装的,而不是为本地计算机上的每个用户安装的.

Your best bet is to use ClickOnce. It doesn’t require admin rights to install typical apps. One of the reasons is because ClickOnce apps install for the current user and not for everyone on the local machine.

您可以从项目设置的发布标签中执行此操作.最好的部分是不需要编程.

You can do so from the Publish tab of your project’s settings. The best part is no programming is required.

这篇关于在安装过程中创建Windows窗体应用程序的安装程序而无需管理员密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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