当前位置:   article > 正文

Error: 1307. Verify that you have sufficient privileges to modify the security permissions for this

verify that you have sufficient privileges

报错信息

安装一个msiinstaller-windows.msi,报错信息如下:
在这里插入图片描述

Could not set file security for file
'C:\Users\Administrator\AppData]Roaming\Microsoft\Installer\'
Error: 1307. Verify that you have sufficient privileges to  modify the security permissions for this file.
  • 1
  • 2
  • 3

原因分析

msi安装过程需要读写'C:\Users\用户名\AppData]Roaming\Microsoft\Installer\'这个文件夹。由于没有权限所以报错了。

首先尝试右键安装包管理员权限运行,发现没这个选项,msi包不能右键管理员权限运行。

尝试过修改Installer这个文件夹的权限,发现就算给Everyone完全控制权限都不行。

想起来msi安装是调用C:\Windows\System32\msiexec.exe进行的,可能是我之前整了些乱七八糟的导致msiexec.exe没有权限。

解决方法

  1. 右键windows打开管理员模式的命令提示符(或者管理员模式的PowerShell应该也行)
  2. 输入msiexec /i D:\安装包位置\installer-windows.msi执行安装。
  3. 安装成功
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/56185?site
推荐阅读
相关标签
  

闽ICP备14008679号