From eadcb76db553a544c9fa356eec5a82ef82a6d315 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev Date: Mon, 24 Feb 2020 12:49:39 +0300 Subject: [PATCH] add sqllocaldb to readme --- images/win/scripts/Installers/Validate-DACFx.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/images/win/scripts/Installers/Validate-DACFx.ps1 b/images/win/scripts/Installers/Validate-DACFx.ps1 index fb815c10e..27b01f5c3 100644 --- a/images/win/scripts/Installers/Validate-DACFx.ps1 +++ b/images/win/scripts/Installers/Validate-DACFx.ps1 @@ -15,6 +15,15 @@ else 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 { $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 = @" _Version:_ $(Get-DacFxVersion)
+* SqlLocalDB is available at $localDbPath "@ Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description