Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix安装程序:使用静默安装程序时出现错误1925_Wix_Windows Installer_Wix3.5_Wix3.6 - Fatal编程技术网

Wix安装程序:使用静默安装程序时出现错误1925

Wix安装程序:使用静默安装程序时出现错误1925,wix,windows-installer,wix3.5,wix3.6,Wix,Windows Installer,Wix3.5,Wix3.6,在wix设置中,我使用InstallScope=“perMachine”。在交互式安装中,没有问题,它完美地安装了我的应用程序。然而,当我尝试使用/qn从命令行安装它时,我得到了以下错误 MSI (s) (60:EC) [11:51:05:268]: Product: ClickShare Launcher -- Error 1925. You do not have sufficient privileges to complete this installation for all user

在wix设置中,我使用InstallScope=“perMachine”。在交互式安装中,没有问题,它完美地安装了我的应用程序。然而,当我尝试使用/qn从命令行安装它时,我得到了以下错误

MSI (s) (60:EC) [11:51:05:268]: Product: ClickShare Launcher -- Error 1925. You do not have sufficient privileges to complete this installation for all users of the machine. Log on as administrator and then retry this installation.
有人能告诉我为什么只有在静默安装时才会出现这样的问题吗?命令行是否具有不同的用户权限? 我是否可以检测用户是否具有所需的权限并安装应用程序perUser而不是perMachine?这是一个解决方案吗


谢谢。

从Windows Vista开始,MSI安装在需要提升的标准用户进程上运行,但在静默运行时无法执行此操作。这是由于UAC。在调用msiexec之前提升进程。

您可以尝试将每个用户/每台机器的安装代码设置为参数

C:\Users\xxxxx\Desktop>msiexec /i "program.msi"  MSIINSTALLPERUSER=1 ALLUSERS=2 /qn
这有助于我们处理一个应用程序,该应用程序在交互模式下不需要管理员权限,但在静默模式下需要管理员权限

也许它会在将来帮助其他用户。。。(来自谷歌搜索)