Add extra logging setup to registry. Neither "reg import" nor "reg add" appeared to work inside the sandbox So went with "regedit /s {path}" which did work.
Add extra logging setup to registry. 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 <bevan.weiss@gmail.com>
Bevan Weiss committed
Jun 30, 2024 at 14:12 UTC
54df047166f62ab618751c7184921579c9840fa7
2 files changed
+22
src/test/sandbox/sandbox_registry
new
+21
@@ -0,0 +1,21 @@
1
+Windows Registry Editor Version 5.00
2
+
3
+[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Installer]
4
+"Logging"="voicewarmupx"
5
+
6
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]
7
+"DumpFolder"=hex(2):43,00,3a,00,5c,00,62,00,75,00,69,00,6c,00,64,00,5c,00,6c,\
8
+ 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,\
9
+ 70,00,73,00,00,00
10
+"DumpCount"=dword:0000000a
11
+"DumpType"=dword:00000001
12
+
13
+[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\Installer]
14
+"Logging"="voicewarmupx"
15
+
16
+[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\Windows Error Reporting\LocalDumps]
17
+"DumpFolder"=hex(2):43,00,3a,00,5c,00,62,00,75,00,69,00,6c,00,64,00,5c,00,6c,\
18
+ 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,\
19
+ 70,00,73,00,00,00
20
+"DumpCount"=dword:0000000a
21
+"DumpType"=dword:00000001
src/test/sandbox/startup.bat
+1
@@ -48,6 +48,7 @@ if exist %SANDBOX_FILES%\assets\windowsdesktop-runtime-x86.exe (
48
goto PROCEED
49
50
:PROCEED
51
+regedit /s "%SANDBOX_FILES%\sandbox_registry"
52
endlocal
53
SETX PATH "%PATH%;%ProgramFiles%\dotnet;%ProgramFiles(x86)%\dotnet" /M
54
SET PATH=%PATH%;%ProgramFiles%\dotnet;%ProgramFiles(x86)%\dotnet