2018-03-20 06:42:28 +13:00
|
|
|
$content = Get-Content "SharedAssemblyInfo.cs"
|
2016-09-22 11:33:30 +12:00
|
|
|
$match = [regex]::Match($content, 'AssemblyVersion\(\"(.+?)\"\)')
|
|
|
|
if ($match.Success)
|
|
|
|
{
|
|
|
|
$env:AppVersion = $match.Groups[1].Value
|
2016-09-22 13:17:00 +12:00
|
|
|
Update-AppveyorBuild -Version "$env:AppVersion.$env:APPVEYOR_BUILD_NUMBER"
|
2016-09-22 11:33:30 +12:00
|
|
|
}
|
2016-09-22 11:43:56 +12:00
|
|
|
else
|
|
|
|
{
|
|
|
|
$env:AppVersion = "1.0.0"
|
2021-08-17 20:11:14 +12:00
|
|
|
}
|
|
|
|
|
|
|
|
Write-Host "Installing InnoSetup 6.2.0..." -ForegroundColor Cyan
|
|
|
|
|
|
|
|
$exePath = "$env:TEMP\innosetup-6.2.0.exe"
|
|
|
|
|
|
|
|
Write-Host "Downloading..."
|
|
|
|
(New-Object Net.WebClient).DownloadFile('https://files.jrsoftware.org/is/6/innosetup-6.2.0.exe', $exePath)
|
|
|
|
|
|
|
|
Write-Host "Installing..."
|
|
|
|
cmd /c start /wait $exePath /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
|
|
|
|
Remove-Item $exePath
|
|
|
|
|
|
|
|
Write-Host "InnoSetup installed" -ForegroundColor Green
|