mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-27 08:37:58 +03:00
Suggested commit message:
Fix Windows CI crash-dump registry configuration Configure WER LocalDumps under HKLM instead of HKCU so unit-test crashes can produce dumps for the existing artifact upload step.
This commit is contained in:
@@ -87,7 +87,8 @@ jobs:
|
||||
shell: powershell
|
||||
run: |
|
||||
$dumpDir = (New-Item -ItemType Directory -Force -Path "bin\unit_tests\output").FullName
|
||||
$dumpKey = "HKCU:\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\eepp-unit_tests.exe"
|
||||
# WER reads per-application LocalDumps settings from HKLM, including on CI runners.
|
||||
$dumpKey = "HKLM:\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps\eepp-unit_tests.exe"
|
||||
New-Item -Path $dumpKey -Force | Out-Null
|
||||
New-ItemProperty -Path $dumpKey -Name DumpFolder -PropertyType ExpandString -Value $dumpDir -Force | Out-Null
|
||||
New-ItemProperty -Path $dumpKey -Name DumpType -PropertyType DWord -Value 2 -Force | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user