Skip to content

Commit

Permalink
Add extra logging setup to registry.
Browse files Browse the repository at this point in the history
Neither "reg import" nor "reg add" appeared to work inside the sandbox
So went with "regedit /s {path}" which did work.

Signed-off-by: Bevan Weiss <[email protected]>
  • Loading branch information
bevanweiss authored and barnson committed Jul 4, 2024
1 parent 04ad8ff commit 54df047
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/sandbox/sandbox_registry
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
"Logging"="voicewarmupx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"=hex(2):43,00,3a,00,5c,00,62,00,75,00,69,00,6c,00,64,00,5c,00,6c,\
00,6f,00,67,00,73,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,00,6d,00,\
70,00,73,00,00,00
"DumpCount"=dword:0000000a
"DumpType"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\Installer]
"Logging"="voicewarmupx"

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps]
"DumpFolder"=hex(2):43,00,3a,00,5c,00,62,00,75,00,69,00,6c,00,64,00,5c,00,6c,\
00,6f,00,67,00,73,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,00,6d,00,\
70,00,73,00,00,00
"DumpCount"=dword:0000000a
"DumpType"=dword:00000001
1 change: 1 addition & 0 deletions src/test/sandbox/startup.bat
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if exist %SANDBOX_FILES%\assets\windowsdesktop-runtime-x86.exe (
goto PROCEED

:PROCEED
regedit /s "%SANDBOX_FILES%\sandbox_registry"
endlocal
SETX PATH "%PATH%;%ProgramFiles%\dotnet;%ProgramFiles(x86)%\dotnet" /M
SET PATH=%PATH%;%ProgramFiles%\dotnet;%ProgramFiles(x86)%\dotnet
Expand Down

0 comments on commit 54df047

Please sign in to comment.