During build light.exe fails to run with LGHT1105 error #6715
-
Our build system has started returning an error that it cannot run light.exe after the past weekend. While building our project we get the following error: light.exe : error LGHT1105: Validation could not run due to system policy. To eliminate this warning, run the process My whole team of 5 is getting this error this week despite it working in the past. We tested in non-Intune managed environments and found that the build was able to complete with error but when we added Intune to the system the build began to fail. At the moment we have work arounds for this but it is impacting our development process. We have tried running the build with elevated privileges as the error message recommends but the error persists. We also encounter this error while trying to validate any MSI using Orca. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Sounds like a policy change in Intune now prevents you from running validation (which actually executes an install to run the ICEs). The Event Viewer might show which exact policy is blocking you. I hope you have a productive conversation with your IT department. |
Beta Was this translation helpful? Give feedback.
-
As both the developer and the IT department, unfortunately the previous answer wasn't terribly helpful. I knew what was causing the issue (AppLocker), but had no idea why, nor how to best fix it. The following is the result of my conversation with myself – if @chris-rossi could post the result of their conversation with IT that might also be helpful to someone! ProblemSame errors as @chris-rossi. While trying out AppLocker on my machine, I started getting "light.exe : error LGHT1105" when trying to build an MSI using electron-builder, which uses WiX. Orca also started giving the "Validation Failed", "The validation engine could not start" error. TL;DR solutionAppLocker is the reason for these errors. There is no rule you can set up to allow MSI validation to succeed. There are two options. They are not good options.
This seems like a bug in AppLocker or Windows Installer, or maybe related to this: "AppLocker will not allow any elevated and sandboxed processes launch". 🤷♂️ Full detailsLogsThere doesn't appear to be much logging about the error.
Attempted solutionsI had AppLocker deployed via GPO. DLL rules are not enabled. The only "deny" rule was for an unrelated packaged app. I created local AppLocker rules to allow path I removed the GPO from my machine and set up AppLocker locally instead. The following is all with only local AppLocker policies (and no "deny" rules). Throughout all of this, AppIDSvc was running as appropriate, gpupdate was run as needed, and some rebooting was done for good measure.
Renaming Misc notes about managing AppLockerMuch of this isn't directly relevant to the issue at hand, but might help someone with their AppLocker debugging. This was tested with local policies, but I believe it would also apply to policies from GPOs. For policy changes to take effect, gpupdate must be run. Changes seem to reliably take effect immediately after the gpupdate – unlike with SRP where on some machines changes would take effect immediately, others required a restart or two, and a few updated when they felt like it. Regarding AppIDSvc, it seems best to just leave it running all the time. Restarting it never helps, and can only hinder. Some observations:
While renaming or deleting |
Beta Was this translation helpful? Give feedback.
Sounds like a policy change in Intune now prevents you from running validation (which actually executes an install to run the ICEs). The Event Viewer might show which exact policy is blocking you.
I hope you have a productive conversation with your IT department.