Add Winget input manifests for multiple maintained apps (Amazon DCV client/server, Dell Command Update, Dell Display Manager, Lenovo Dock Manager, Microsoft Remote Help, Nessus Agent, Plantronics Hub, Power Automate, PowerToys, and RStudio). Include corresponding install/uninstall PowerShell helper scripts under ee/maintained-apps/inputs/winget/scripts and add Windows output metadata (versions, installer URLs, checksums, installer/uninstaller refs) under ee/maintained-apps/outputs/*/windows.json. Also update ee/maintained-apps/outputs/apps.json to reflect the new entries. These additions enable automated install/uninstall and fleet management for the new Winget-backed apps.
24 lines
459 B
PowerShell
24 lines
459 B
PowerShell
$exeFilePath = "${env:INSTALLER_PATH}"
|
|
$ExpectedExitCodes = @(0, 1641, 3010, 1223)
|
|
|
|
try {
|
|
|
|
$processOptions = @{
|
|
FilePath = "$exeFilePath"
|
|
ArgumentList = "acceptTerms=1 /quiet /norestart"
|
|
PassThru = $true
|
|
Wait = $true
|
|
}
|
|
|
|
$process = Start-Process @processOptions
|
|
$exitCode = $process.ExitCode
|
|
|
|
Write-Host "Install exit code: $exitCode"
|
|
if ($ExpectedExitCodes -contains $exitCode) { Exit 0 }
|
|
Exit $exitCode
|
|
|
|
} catch {
|
|
Write-Host "Error: $_"
|
|
Exit 1
|
|
}
|