Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-VSWhere.ps1
2020-03-05 13:02:18 +03:00

25 lines
727 B
PowerShell

################################################################################
## File: Validate-VSWhere.ps1
## Desc: Validate vswhere
################################################################################
if(Get-Command -Name 'vswhere')
{
Write-Host "vswhere $(vswhere) on path"
}
else
{
Write-Host "vswhere is not on path"
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "VSWhere"
$VswhereVersion = (Get-Command -Name vswhere).FileVersionInfo.ProductVersion
$Description = @"
_Version_: $VswhereVersion<br/>
* PATH: contains location of vswhere.exe
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description