Files
Harrison RavazzoloandAllen Houchins a3296468de Windows FMA - Zed (#46538)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added Zed support for Windows package management (new Windows package
entry and metadata for v1.4.4).
* Implemented silent install and uninstall flows for Windows with
automated handling of running processes.
* Added registry-based uninstall detection and robust exit-code handling
for reliable deployments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Allen Houchins <allenhouchins@mac.com>
2026-05-31 23:21:18 -05:00

39 lines
1.3 KiB
PowerShell

# Zed (Zed Industries) ships an Inno Setup installer (InstallerType: inno).
# Silent install switches:
# /VERYSILENT = no UI at all
# /SUPPRESSMSGBOXES = suppress every message box
# /NORESTART = don't reboot (returns 3010 instead, treat as success)
# /ALLUSERS = machine-scope install. Zed's Inno installer has both
# machine and per-user modes baked in; without
# /ALLUSERS it silently falls back to per-user when
# the install context isn't elevated -- /ALLUSERS pins
# the scope. Fleet/SYSTEM provides the elevation.
$exeFilePath = "${env:INSTALLER_PATH}"
# 0 = success; 3010 = success but reboot required.
$ExpectedExitCodes = @(0, 3010)
try {
$processOptions = @{
FilePath = "$exeFilePath"
ArgumentList = "/VERYSILENT", "/SUPPRESSMSGBOXES", "/NORESTART", "/ALLUSERS"
PassThru = $true
Wait = $true
}
$process = Start-Process @processOptions
$exitCode = $process.ExitCode
Write-Host "Install exit code: $exitCode"
Start-Sleep -Seconds 5
Stop-Process -Name "Zed" -Force -ErrorAction SilentlyContinue
if ($ExpectedExitCodes -contains $exitCode) { Exit 0 }
Exit $exitCode
} catch {
Write-Host "Error: $_"
Exit 1
}