File tree 1 file changed +17
-0
lines changed
images/win/scripts/Installers
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,22 @@ if (-not(Test-Path -Path $registryKeyPath)) {
29
29
New-ItemProperty - Path $RegistryKeyPath - Name CacheType - PropertyType DWORD - Value 0
30
30
reg.exe copy HKCU\Software\TortoiseSVN HKLM\DEFAULT \Software\TortoiseSVN / s
31
31
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
+
32
49
reg.exe unload HKLM\DEFAULT
33
50
Write-Host " Warmup-User.ps1 - completed"
You can’t perform that action at this time.
0 commit comments