contrib/win-installer-legacy/README.md
Instructions [have moved here](Build and test the Podman Windows installer](#build-and-test-the-podman-windows-installer)).
Manual tests to validate changes the wxs files or a WiX upgrade.
git fetch --all --tags --prune && git tag --list v5.* && git checkout tags/v5.3.0./winmake podman && ./winmake docs && ./winmake win-gvproxy && ./winmake installerv5.3.1 make the installer
./winmake podman && ./winmake docs && ./winmake win-gvproxy && ./winmake installerv5.3.1 msi product id (with superorca)podman.wxs to match v5.3.1 product id$env:V531_SETUP_EXE_PATH and make current and next installer
$env:V531_SETUP_EXE_PATH=<path> && ./winmake podman && ./winmake docs && ./winmake win-gvproxy && ./winmake installer && ./winmake installer 9.9.9wsl and hyperv (as an admin).\contrib\win-installer\test-installer.ps1 `
-scenario all `
-setupExePath ".\contrib\win-installer\podman-5.4.0-dev-setup.exe" `
-previousSetupExePath ".\contrib\win-installer\podman-5.3.0-dev-setup.exe" `
-nextSetupExePath ".\contrib\win-installer\podman-9.9.9-dev-setup.exe" `
-v531SetupExePath ".\contrib\win-installer\podman-5.3.1-dev-setup.exe" `
-provider hyperv
contrib\win-installer\podman-5.3.1-dev-setup.exe /install /log contrib\win-installer\podman-setup-531.log
contrib\win-installer\podman-5.4.0-dev-setup.exe /install /log contrib\win-installer\podman-setup-540.log
contrib\win-installer\podman-9.9.9-dev-setup.exe /install /log contrib\win-installer\podman-setup-999.log
contrib\win-installer\podman-9.9.9-dev-setup.exe /x /log contrib\win-installer\podman-uninstall-999.log
$Installer = New-Object -ComObject WindowsInstaller.Installer
$InstallerProducts = $Installer.ProductsEx("", "", 7)
$InstalledProducts = ForEach($Product in $InstallerProducts){
try {
$ProductCode = $Product.ProductCode()
$LocalPackage = try { $Product.InstallProperty("LocalPackage") } catch { "Unknown" }
$VersionString = try { $Product.InstallProperty("VersionString") } catch { "Unknown" }
$ProductName = $Product.InstallProperty("ProductName")
[PSCustomObject]@{
ProductCode = $ProductCode
LocalPackage = $LocalPackage
VersionString = $VersionString
ProductName = $ProductName
}
}
catch {
Write-Warning "Failed to process product: $($_.Exception.Message)"
# Skip this product and continue
continue
}
}
$InstalledProducts | Where-Object {$_.ProductName -match "podman"}
and uninstall it with msiexec /x "{<product-code>}"