简体   繁体   English

在Visual Studio 2012中使用InstallShield创建具有管理员权限的exe

[英]create exe with admin rights with InstallShield in Visual Studio 2012

I would like to create my setup to install my application developed in VS 2012. The application needs to be installed in Program Files folder, so it needs to always run with administrator rights. 我想创建安装程序来安装在VS 2012中开发的应用程序。该应用程序需要安装在Program Files文件夹中,因此必须始终以管理员权限运行。 I have created a new InstallShield project inside my solution, but I don't know if it is possible to set some settings to allow that exe always runs as administrator. 我在解决方案中创建了一个新的InstallShield项目,但是我不知道是否可以设置一些设置以允许该exe始终以管理员身份运行。

I'm using the InstallShield 2013 Limited Edition 我正在使用InstallShield 2013 Limited Edition

You can only manifest an EXE to indicate to Windows that the EXE requires administrative privs. 您只能执行一个EXE来向Windows指示该EXE需要管理特权。 You can't simply bypass windows security. 您不能简单地绕过Windows安全性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM