mirror of
https://github.com/fleetdm/fleet
synced 2026-04-28 08:57:30 +00:00
for #19039 and #19041 this: - fixes the install/remove scripts to read the env variable the proper way - truncates output before storing in the databse in case its longer than MySQL's TEXT size # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
9 lines
271 B
Text
9 lines
271 B
Text
$logFile = "${env:TEMP}/fleet-remove-software.log"
|
|
|
|
$removeProcess = Start-Process msiexec.exe `
|
|
-ArgumentList "/quiet /norestart /lv ${logFile} /x `"${env:INSTALLER_PATH}`"" `
|
|
-PassThru -Verb RunAs -Wait
|
|
|
|
Get-Content $logFile -Tail 500
|
|
|
|
exit $removeProcess.ExitCode
|