github.com/containers/podman/v4@v4.9.4/contrib/cirrus/win-installer-main.ps1 (about) 1 #!/usr/bin/env powershell 2 3 . $PSScriptRoot\win-lib.ps1 4 5 Set-Location "$ENV:CIRRUS_WORKING_DIR\repo\contrib\win-installer" 6 7 # Build Installer 8 # Note: consumes podman-remote-release-windows_amd64.zip from repo.tbz2 9 Run-Command ".\build.ps1 $Env:WIN_INST_VER dev `"$ENV:CIRRUS_WORKING_DIR\repo`"" 10 11 # Run the installer silently and WSL install option disabled (prevent reboots, wsl requirements) 12 # We need AllowOldWin=1 for server 2019 (cirrus image), can be dropped after server 2022 13 $ret = Start-Process -Wait -PassThru ".\podman-${ENV:WIN_INST_VER}-dev-setup.exe" -ArgumentList "/install /quiet WSLCheckbox=0 AllowOldWin=1 /log inst.log" 14 if ($ret.ExitCode -ne 0) { 15 Write-Host "Install failed, dumping log" 16 Get-Content inst.log 17 throw "Exit code is $($ret.ExitCode)" 18 } 19 if (! ((Test-Path -Path "C:\Program Files\RedHat\Podman\podman.exe") -and ` 20 (Test-Path -Path "C:\Program Files\RedHat\Podman\win-sshproxy.exe"))) { 21 throw "Expected podman.exe and win-sshproxy.exe, one or both not present after install" 22 } 23 Write-Host "Installer verification successful!"