fleet/ee/maintained-apps/inputs/winget/scripts/google_chrome_install.ps1
Jahziel Villasana-Espinoza 03a9cc1bbd
update windows chrome fma to use machine-scoped exe installer (#31118)
> Closes #27756

# 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] Manual QA for all new/changed functionality
2025-07-28 10:51:49 -04:00

23 lines
No EOL
428 B
PowerShell

$exeFilePath = "${env:INSTALLER_PATH}"
try {
$processOptions = @{
FilePath = "$exeFilePath"
ArgumentList = "--do-not-launch-chrome --system-level"
PassThru = $true
Wait = $true
}
# Start process and track exit code
$process = Start-Process @processOptions
$exitCode = $process.ExitCode
# Prints the exit code
Write-Host "Install exit code: $exitCode"
Exit $exitCode
} catch {
Write-Host "Error: $_"
Exit 1
}