如何解决错误:light.exe error LGHT1105

问题描述 投票:0回答:1

我们不太确定是什么触发了这个错误开始出现在我们的构建中。

light.exe : error LGHT1105: Validation could not run due to system policy. To eliminate this warning, run the process as admin or suppress ICE validation.

我们希望更好地了解什么情况会触发它,这样我们就可以逆向工作并修复导致它的任何原因。

  1. 我们已经以管理员身份运行
  2. 我们检查了我们的防病毒设置,源文件夹和输出文件夹被排除在扫描之外。
  3. 我们使用调试器检查了环境块的大小,只有 5.5k 左右。
  4. 我们尝试将这两个设置添加到命令行中提到的 wixproj:
<RunWixToolsOutOfProc>true</RunWixToolsOutOfProc>`
<SuppressValidation>true</SuppressValidation>`
  1. 我们检查并没有启用软件限制策略。
e:\tools\managed\v4.0\WiX3.7\bin\Light.exe -out f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.msm -pdbout f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.wixpdb -nologo -sw1096 -wx -cultures:null -dPseudoCulture=tk-TM -dps-ps=1 -dProductVersion=10.0.1234.0 -dROOT=e:\rootpath -d_BuildArch=amd64 -dOBJECT_ROOT=f:\obj.amd64fre -d_BuildAlt=objfre\amd64\ -ext e:\tools\managed\v4.0\WiX3.7\bin\WixIIsExtension.dll -ext e:\tools\managed\v4.0\WiX3.7\bin\WixUtilExtension.dll -sice:ICE61 -contentsfile f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.msm.wixproj.BindContentsFileListnull.txt -outputsfile f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.msm.wixproj.BindOutputsFileListnull.txt -builtoutputsfile f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.msm.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile e:\common\testplugin\msm\testplugin.msm.wixproj -fv -b f:\binaries.amd64fre\SCOnline f:\obj.amd64fre\common\testplugin\msm\objfre\amd64\testplugin.wixobj

错误:

5>light.exe : error LGHT1105: Validation could not run due to system policy. To eliminate this warning, run the process as admin or suppress ICE validation. [e:\common\testplugin\msm\testplugin.msm.wixproj]

期待: 没有错误。

wix wix3.7
1个回答
0
投票

你说你检查了SRP没有启用,但是你碰巧检查了AppLocker是否启用了吗?启用 AppLocker 后,我的机器上开始出现相同的错误(来自 WiX 的“light.exe:错误 LGHT1105”和来自 Orca 的“验证引擎无法启动”)。

不幸的是,没有您可以设置的 AppLocker 规则来允许 MSI 验证成功,即使安装会工作。有两种选择,但都不好:

  1. 删除 Windows Installer 的所有 AppLocker 规则并取消选中“已配置”。或者将其更改为“仅审核”而不是“执行规则”。
  2. 如果您拥有本地管理员权限,请将
    C:\Windows\System32\AppLocker\Msi.AppLocker
    重命名为例如
    Msi.AppLocker.temp-disabled
    在开始构建之前,然后在构建之后将其重命名。

有关详细信息,请参阅此处

© www.soinside.com 2019 - 2024. All rights reserved.