fix(sql): Inyección de llaves de registro avanzadas para puentear chequeo estricto de UI de SQL Server
This commit is contained in:
+14
-1
@@ -6,7 +6,20 @@ function Log-Msg {
|
||||
} catch {}
|
||||
}
|
||||
|
||||
if (Test-Path "C:\sql_installed.txt") { exit }
|
||||
if ((Test-Path "C:\sql_installed.txt") -and (Get-Content "C:\sql_installed.txt") -eq "OK") { exit }
|
||||
|
||||
Log-Msg "=========================================================="
|
||||
Log-Msg "INYECTANDO PARCHES DE REGISTRO PROFUNDOS PARA IDIOMA (SPAIN-3082 / 0C0A)"
|
||||
Log-Msg "=========================================================="
|
||||
|
||||
# SQL Server en Server Core chequea estrictamente estas claves del registro para el 'LanguageMismatch'
|
||||
try {
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Language" -Name "InstallLanguage" -Value "0C0A"
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Nls\Language" -Name "Default" -Value "0C0A"
|
||||
Log-Msg "Claves de registro de Idioma parcheadas a 0C0A (Espanol)."
|
||||
} catch {
|
||||
Log-Msg "Fallo al inyectar claves de registro: $_"
|
||||
}
|
||||
|
||||
$locale = Get-WinSystemLocale
|
||||
if ($locale.Name -ne "es-ES") {
|
||||
|
||||
Reference in New Issue
Block a user