mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-15 14:26:48 +00:00
Inital commit.
This commit is contained in:
27
images/win/scripts/Installers/Validate-InnoSetup.ps1
Normal file
27
images/win/scripts/Installers/Validate-InnoSetup.ps1
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
## 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
|
||||
Reference in New Issue
Block a user