mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-24 10:28:10 +08:00
[Windows] Add SQL OLEDB Driver to win19 and win22 (#4893)
* Add SQL OLEDB Driver to win19 and win22 * Update installation, improve install-binary and resolve comments * Slight improvement of the installation. Fixing argument list for the WebPI * Fix argument list for AzureCLI * Fix software report
This commit is contained in:
@@ -215,14 +215,20 @@ $markdown += New-MDHeader "Databases" -Level 3
|
||||
$markdown += Build-DatabasesMarkdown
|
||||
|
||||
$markdown += New-MDHeader "Database tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -Lines (@(
|
||||
$databaseTools = @(
|
||||
(Get-AzCosmosDBEmulatorVersion),
|
||||
(Get-DacFxVersion),
|
||||
(Get-MySQLVersion),
|
||||
(Get-SQLPSVersion)
|
||||
) | Sort-Object
|
||||
)
|
||||
|
||||
if (-not (Test-IsWin16))
|
||||
{
|
||||
$databaseTools += Get-SQLOLEDBDriverVersion
|
||||
}
|
||||
|
||||
$markdown += New-MDList -Style Unordered -Lines ($databaseTools | Sort-Object)
|
||||
|
||||
$markdown += Build-WebServersSection
|
||||
|
||||
$vs = Get-VisualStudioVersion
|
||||
|
||||
@@ -111,6 +111,11 @@ function Get-MySQLVersion {
|
||||
return "MySQL $mysqlVersion"
|
||||
}
|
||||
|
||||
function Get-SQLOLEDBDriverVersion {
|
||||
$SQLOLEDBDriverVersion = (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSOLEDBSQL' InstalledVersion).InstalledVersion
|
||||
return "SQL OLEDB Driver $SQLOLEDBDriverVersion"
|
||||
}
|
||||
|
||||
function Get-MercurialVersion {
|
||||
($(hg --version) | Out-String) -match "version (?<version>\d+\.\d+\.?\d*)" | Out-Null
|
||||
$mercurialVersion = $Matches.Version
|
||||
|
||||
Reference in New Issue
Block a user