[windows] disable TSVNCache.exe (#8374)

TortoiseSVN scans all drives for SVN repos. it eats disk IO,
let us add registry setting which disables that activity
This commit is contained in:
ilia-shipitsin
2023-09-28 10:03:09 +02:00
committed by GitHub
parent 62e9da75e7
commit 74242a4687

View File

@@ -19,7 +19,15 @@ Copy-Item ${env:USERPROFILE}\AppData\Local\Microsoft\VisualStudio -Destination c
reg.exe load HKLM\DEFAULT c:\users\default\ntuser.dat
reg.exe copy HKCU\Software\Microsoft\VisualStudio HKLM\DEFAULT\Software\Microsoft\VisualStudio /s
# disable TSVNCache.exe
$registryKeyPath = 'HKCU:\Software\TortoiseSVN'
if (-not(Test-Path -Path $registryKeyPath)) {
New-Item -Path $registryKeyPath -ItemType Directory -Force
}
New-ItemProperty -Path $RegistryKeyPath -Name CacheType -PropertyType DWORD -Value 0
reg.exe copy HKCU\Software\TortoiseSVN HKLM\DEFAULT\Software\TortoiseSVN /s
reg.exe unload HKLM\DEFAULT
Write-Host "Warmup-User.ps1 - completed"
Write-Host "Warmup-User.ps1 - completed"