add sqllocaldb to readme

This commit is contained in:
Mikhail Timofeev
2020-02-24 12:49:39 +03:00
parent a1c1327ef8
commit eadcb76db5

View File

@@ -15,6 +15,15 @@ else
throw "DACFx is not installed!" throw "DACFx is not installed!"
} }
if(Get-Command -Name 'SqlLocalDB')
{
$localDbPath = (Get-Command -Name 'SqlLocalDB').Source
}
else
{
throw "SqlLocalDB is not installed!"
}
function Get-DacFxVersion function Get-DacFxVersion
{ {
$regKey = "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Data-Tier Application Framework\CurrentVersion" $regKey = "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Data-Tier Application Framework\CurrentVersion"
@@ -28,6 +37,7 @@ $SoftwareName = "SQL Server Data Tier Application Framework (x64)"
$Description = @" $Description = @"
_Version:_ $(Get-DacFxVersion)<br/> _Version:_ $(Get-DacFxVersion)<br/>
* SqlLocalDB is available at $localDbPath
"@ "@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description