[windows] Add SQL OLEDB Driver 19 (#13127)

This commit is contained in:
Shamil Mubarakshin
2025-10-03 11:25:44 +02:00
committed by GitHub
parent 5641ff0eb6
commit de257bbc47
4 changed files with 20 additions and 3 deletions
@@ -121,11 +121,16 @@ function Get-MySQLVersion {
return $mysqlVersion
}
function Get-SQLOLEDBDriverVersion {
function Get-SQLOLEDBDriver18Version {
$SQLOLEDBDriverVersion = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSOLEDBSQL' InstalledVersion).InstalledVersion
return $SQLOLEDBDriverVersion
}
function Get-SQLOLEDBDriver19Version {
$SQLOLEDBDriverVersion = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSOLEDBSQL19' InstalledVersion).InstalledVersion
return $SQLOLEDBDriverVersion
}
function Get-MercurialVersion {
($(hg --version) | Out-String) -match "version (?<version>\d+\.\d+\.?\d*)" | Out-Null
$mercurialVersion = $Matches.Version