fleet/pkg/file/scripts/install_msi.ps1
Roberto Dip 92e540aee5
add scripts to add/remove software (#18649)
for:

- https://github.com/fleetdm/fleet/issues/18314
- https://github.com/fleetdm/fleet/issues/18315
- https://github.com/fleetdm/fleet/issues/18317
- https://github.com/fleetdm/fleet/issues/18316

# 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
2024-05-01 14:15:59 -03:00

9 lines
267 B
PowerShell

$logFile = "${env:TEMP}/fleet-install-software.log"
$installProcess = Start-Process msiexec.exe `
-ArgumentList "/quiet /norestart /lv ${logFile} /i `"$INSTALLER_PATH`"" `
-PassThru -Verb RunAs -Wait
Get-Content $logFile -Tail 500
exit $instalProcess.ExitCode