mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Automated ingestion of latest Fleet-maintained app data. Co-authored-by: allenhouchins <32207388+allenhouchins@users.noreply.github.com>
22 lines
1.9 KiB
JSON
22 lines
1.9 KiB
JSON
{
|
|
"versions": [
|
|
{
|
|
"version": "3.5.176",
|
|
"queries": {
|
|
"exists": "SELECT 1 FROM programs WHERE name = 'ClickUp' AND publisher = 'ClickUp';"
|
|
},
|
|
"installer_url": "https://download.todesktop.com/221003ra4tebclw/ClickUp-3.5.176-build-260210al7vspjfr-x64.msi",
|
|
"install_script_ref": "8959087b",
|
|
"uninstall_script_ref": "d40f06cf",
|
|
"sha256": "33abc8033063c287dd14054b4eafdca5612db414803bfe4c24699b406a54ed53",
|
|
"default_categories": [
|
|
"Productivity"
|
|
],
|
|
"upgrade_code": "{95C04A28-5736-505A-91E3-9132CDC33800}"
|
|
}
|
|
],
|
|
"refs": {
|
|
"8959087b": "$logFile = \"${env:TEMP}/fleet-install-software.log\"\n\ntry {\n\n$installProcess = Start-Process msiexec.exe `\n -ArgumentList \"/quiet /norestart /lv ${logFile} /i `\"${env:INSTALLER_PATH}`\"\" `\n -PassThru -Verb RunAs -Wait\n\nGet-Content $logFile -Tail 500\n\nExit $installProcess.ExitCode\n\n} catch {\n Write-Host \"Error: $_\"\n Exit 1\n}\n",
|
|
"d40f06cf": "# Fleet uninstalls app by finding all related product codes for the specified upgrade code\n$inst = New-Object -ComObject \"WindowsInstaller.Installer\"\n$timeoutSeconds = 300 # 5 minute timeout per product\n\nforeach ($product_code in $inst.RelatedProducts(\"{95C04A28-5736-505A-91E3-9132CDC33800}\")) {\n $process = Start-Process msiexec -ArgumentList @(\"/quiet\", \"/x\", $product_code, \"/norestart\") -PassThru\n \n # Wait for process with timeout\n $completed = $process.WaitForExit($timeoutSeconds * 1000)\n \n if (-not $completed) {\n Stop-Process -Id $process.Id -Force -ErrorAction SilentlyContinue\n Exit 1603 # ERROR_UNINSTALL_FAILURE\n }\n \n # If the uninstall failed, bail\n if ($process.ExitCode -ne 0) {\n Write-Output \"Uninstall for $($product_code) exited $($process.ExitCode)\"\n Exit $process.ExitCode\n }\n}\n\n# All uninstalls succeeded; exit success\nExit 0\n"
|
|
}
|
|
}
|