File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
images/win/scripts/Installers Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -29,22 +29,5 @@ if (-not(Test-Path -Path $registryKeyPath)) {
2929New-ItemProperty - Path $RegistryKeyPath - Name CacheType - PropertyType DWORD - Value 0
3030reg.exe copy HKCU\Software\TortoiseSVN HKLM\DEFAULT \Software\TortoiseSVN / s
3131
32-
33- # warmup SQL LocalDB
34- # https://github.com/actions/runner-images/issues/8164
35-
36- sqllocaldb create MSSQLLocalDB
37-
38- $localDBInstance = Get-ChildItem - Path ' HKCU:\Software\Microsoft\Microsoft SQL Server\UserInstances'
39- $instanceName = ($localDBInstance.Name ).Split(' \' ).where ({ $true }, ' Last' )
40- $instancePath = ' HKCU:\Software\Microsoft\Microsoft SQL Server\UserInstances\' + $instanceName
41- $dataDirectory = (Get-ItemProperty - Path $instancePath - Name ' DataDirectory' ).DataDirectory
42- $localDBPath = ' C:\LocalDB'
43- New-Item - ItemType ' Directory' - Path $localDBPath
44- Move-Item - Path " $dataDirectory \*" - Destination $localDBPath
45- Set-ItemProperty - Path $instancePath - Name ' DataDirectory' - Value $localDBPath
46-
47- reg.exe copy ' HKCU\Software\Microsoft\Microsoft SQL Server' ' HKLM\DEFAULT\Software\Microsoft\Microsoft SQL Server' / s
48-
4932reg.exe unload HKLM\DEFAULT
5033Write-Host " Warmup-User.ps1 - completed"
You can’t perform that action at this time.
0 commit comments