简体   繁体   English

Visual Studio 2008安装项目所需的管理员

[英]Admin required for Visual Studio 2008 Setup Project

I have a VS 2008 Setup Project that is installing a very simple application in the local user's App Folder. 我有一个VS 2008安装项目,正在本地用户的“应用程序文件夹”中安装一个非常简单的应用程序。 When the Setup Project runs, it is requiring the Admin to login to run it. 安装项目运行时,需要管理员登录才能运行它。 How can I allow a Standard User to run the installation. 如何允许标准用户运行安装。 There are no Prerequisites. 没有任何先决条件。 The MSI file is the only file to be run (no Setup.exe). MSI文件是唯一要运行的文件(无Setup.exe)。 I have signed the msi with a certificate that is installed on the user's machine as Trusted. 我已经使用在用户计算机上安装的证书作为“可信”对msi进行了签名。 I just can't get rid of the Admin login requirement. 我只是无法摆脱管理员登录要求。

Do you have a manifest on the setup.exe that says "please run me asInvoker?" 您在setup.exe上有一个清单,上面写着“请以Invoker身份运行我”? If not, heuristics apply based on the file name. 如果不是,则根据文件名应用试探法。 If you rename tetris.exe to setup99.exe it will ask to elevate when you run it. 如果将tetris.exe重命名为setup99.exe,则在运行时会要求提升。

If you have no manifest, add one - either embedded (VS 2008 should be able to do that for you) or external (just put the manifest in the same folder as the exe.) If you can't or won't do that, rename the exe to something that doesn't include setup, patch, or update in its name. 如果您没有清单,则添加一个-嵌入式(VS 2008应该可以为您执行此清单)或外部(只需将清单与exe放在同一文件夹中即可)。 ,将exe重命名为不包含其名称的安装程序,修补程序或更新程序。 I prefer the manifest myself. 我自己更喜欢清单。

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

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