mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 02:28:59 +00:00
Improve installer UX with pauses and popups on failure
Fixes #755. Adds interactive pauses and graphical popups (where available) to installer scripts when critical errors occur, ensuring troubleshooting guides are readable. Also clarifies 'build from source' instructions.
This commit is contained in:
parent
b524d1d79d
commit
3ec7b401a3
8 changed files with 662 additions and 4 deletions
|
|
@ -391,6 +391,18 @@ try {
|
|||
$manualCommand = "& `"$agentPath`" $($agentArgs -join ' ')"
|
||||
} catch {
|
||||
PulseError "Failed to download agent: $_"
|
||||
|
||||
# Try to show a popup if running in a GUI environment
|
||||
try {
|
||||
Add-Type -AssemblyName System.Windows.Forms
|
||||
[System.Windows.Forms.MessageBox]::Show("Failed to download agent.`n`n$_", "Pulse Installation Failed", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::Error) | Out-Null
|
||||
} catch {
|
||||
# Ignore if GUI not available
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "Press Enter to exit..." -ForegroundColor Yellow
|
||||
Read-Host
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue