fleet/pkg/file/scripts/remove_msi.ps1

10 lines
271 B
PowerShell
Raw Normal View History

$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