Files
runner-images-sangeeth/images/win/scripts/Installers/Validate-InnoSetup.ps1

28 lines
716 B
PowerShell

################################################################################
## File: Validate-InnoSetup.ps1
## Desc: Validate Inno Setup
################################################################################
if (Get-Command -Name 'iscc')
{
Write-Host "iscc is on PATH"
}
else
{
Write-Host "iscc is not on PATH"
exit 1
}
# Adding description of the software to Markdown
$SoftwareName = "Inno Setup"
$ChocoList = $(choco list --local-only innosetup) | Select-String -Pattern "InnoSetup"
$ChocoList -Match "\d+\.\d+\.\d+"
$Version = $Matches[0]
$Description = @"
_Version:_ $Version<br/>
"@
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description