fix(sql): Inyección de llaves de registro avanzadas para puentear chequeo estricto de UI de SQL Server

This commit is contained in:
Ricardo Monla
2026-02-26 11:19:28 -03:00
parent 527ae26f0f
commit 8a834a3507
2 changed files with 17 additions and 2 deletions
+14 -1
View File
@@ -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") {