简体   繁体   English

Visual Studio 安装项目:在没有管理员权限的情况下运行 msi 安装程序

[英]Visual Studio Setup Project: Run the msi installer without administrator rights

I created an installer with Visual Studio Setup Project and now I have a problem.我使用 Visual Studio 安装项目创建了一个安装程序,现在遇到了问题。 To run the installer i always need admin rights, but i want to run the installer silently without admin rights.要运行安装程序,我总是需要管理员权限,但我想在没有管理员权限的情况下静默运行安装程序。

My Default Installlocation is:[LocalAppDataFolder][Manufacturer][ProductName]我的默认安装位置是:[LocalAppDataFolder][Manufacturer][ProductName]

Make sure you correctly set ALLUSERS and MSIINSTALLPERUSER properties .确保正确设置ALLUSERS 和 MSIINSTALLPERUSER 属性 These control the installation context (per user or per machine) for your package.这些控制包的安装上下文(每个用户或每个机器)。

It is not enough to just change the install path to a per user location.仅将安装路径更改为每个用户的位置是不够的。

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

相关问题 使用app.manifest [ExecutionLevel]以管理员权限运行Visual Studio - Run Visual Studio with Administrator Rights using app.manifest [ExecutionLevel] Visual Studio 安装项目 - 生成的安装程序有问题 - Visual studio setup project - problem with the generated installer Windows Installer Visual Studio安装项目 - Windows Installer Visual Studio Setup Project 将 SQLLocalDB 包含到 Visual Studio 安装程序安装项目中 - Include SQLLocalDB into Visual Studio Installer Setup Project Visual Studio安装项目:如何强制卸载程序以管理员模式运行? - Visual Studio Setup Project: How Can I force an Uninstaller to run in Administrator mode? Visual Studio安装程序项目未运行安装程序类 - Visual studio installer project doesn't run installer class MSI 安装程序未更新使用中的文件(Visual Studio 安装程序项目) - In-use files not updated by MSI-installer (Visual Studio Installer project) 在没有管理员权限的情况下运行WinForms应用程序? - Run WinForms application without administrator rights? ConfuserEx 使用 Visual Studio 安装程序安装项目,混淆无法正常工作? - ConfuserEx With Visual Studio Installer Setup Project, Obfuscation not working properly? C#Visual Studio安装程序设置项目输出为一个.exe - c# visual studio installer setup project output as one .exe
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM