Add logic to detect msix installation errors (#11496)

This commit is contained in:
Blue 2024-04-22 22:28:22 +00:00 committed by GitHub
parent 9b84b560a6
commit b79d1d5ab9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,6 @@ rules:
capture:
field3: error
- logline:
provider: Microsoft.Windows.Hyper.V.NetMgmt
task: NetMgmt::CreateVirtualSwitch
@ -174,6 +173,15 @@ rules:
set: wsl-client-logs
oneshot: true
- logline:
provider: Microsoft.Windows.Subsystem.Lxss
field8: {regex: ".*InstallMsix\\(.*"}
set:
name: msix-install-error
capture:
field7: error
oneshot: true
actions:
- foreach:
var: user-visible-error
@ -258,3 +266,8 @@ actions:
user_message: 'It appears that the VirtualMachinePlatform optional component is not enabled. Please try running: `dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart`, then reboot and see if that solves the issue.'
skip_similar_issues: false
tag: 'needs-author-feedback'
- when:
condition: msix-install-error
debug_message: 'Found evidence of MSIX install error: $error, adding msix tag'
tag: 'msix'