Startup Script - Add enabling long windows file paths

- Also add additional note about the MSI installer fix command
pull/13/head
ThioJoe 2026-01-14 12:41:54 -07:00
parent dce2153228
commit 681ea4182d
No known key found for this signature in database
GPG Key ID: 2E328FE64CC3898C
1 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,11 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "H
# Show hidden files
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "Hidden" /t REG_DWORD /d 1 /f
# Fix for slow MSI package install. See: https://github.com/microsoft/Windows-Sandbox/issues/68#issuecomment-2754867968
# Enable Windows Long Path support
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v "LongPathsEnabled" /t REG_DWORD /d 1 /f
# Fix for slow MSI package install. Note: On a normal machine this would disable "Smart App Control", it's unknown the exact effect within the sandbox. It likely disables some kind of SmartScreen security checking.
# See: https://github.com/microsoft/Windows-Sandbox/issues/68#issuecomment-2754867968
reg add "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v "VerifiedAndReputablePolicyState" /t REG_DWORD /d 0 /f
CiTool.exe --refresh --json | Out-Null # Refreshes policy. Use json output param or else it will prompt for confirmation, even with Out-Null