Files
Harrison RavazzoloandAllen Houchins 7b7b89af7e Windows FMA - Canva Desktop (#46310)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added support for Canva Desktop on Windows with automated installation
and uninstallation workflows.
* Canva is now registered in the maintained applications library for
Windows.

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/fleetdm/fleet/pull/46310?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Allen Houchins <allenhouchins@mac.com>
2026-05-28 13:32:10 -05:00

28 lines
721 B
PowerShell

# Canva Desktop is an NSIS installer. NSIS uses /S for a silent install.
$exeFilePath = "${env:INSTALLER_PATH}"
try {
$processOptions = @{
FilePath = "$exeFilePath"
ArgumentList = "/S"
PassThru = $true
Wait = $true
}
$process = Start-Process @processOptions
$exitCode = $process.ExitCode
Write-Host "Install exit code: $exitCode"
# electron-builder NSIS often auto-launches the app after a silent install.
# Stop it so files aren't left locked for later detection/uninstall.
Start-Sleep -Seconds 5
Stop-Process -Name "Canva" -Force -ErrorAction SilentlyContinue
Exit $exitCode
} catch {
Write-Host "Error: $_"
Exit 1
}