A PowerShell module for updating Windows Terminal Canary with automatic process management and smart installation handling.
Author: izambe
Created with assistance from: Amazon Q AI Assistant
This module solves the common "suicide mission" problem when trying to update Windows Terminal Canary from within Terminal Canary itself - where the update process kills the terminal session before the installation can complete.
- Smart Process Management: Automatically handles closing Terminal Canary processes at the right time
- Multiple Installation Methods: Uses both silent installation and UI fallback methods
- Version Checking: Compare installed version with latest available
- Simple Commands: Easy-to-use functions and aliases
- Error Handling: Robust error handling with cleanup
Install-Module -Name TerminalCanaryUpdater -Scope CurrentUser
Import-Module TerminalCanaryUpdater- Download the module files
- Place in your PowerShell modules directory
- Import the module:
Import-Module TerminalCanaryUpdater
canary-quick- Downloads installer
- Launches installer UI
- Automatically kills Canary processes after 3 seconds
- Simple one-command solution
canary-update- Checks current version
- Prompts for confirmation
- Downloads and installs silently
- Falls back to UI if needed
- Shows version information
canary-update -Forcecanary-version
canary-version -CheckLatestSimple one-command installer that launches the UI and automatically kills processes.
Alias: canary-quick
Full-featured updater with version checking and smart installation.
Alias: canary-update
Parameters:
-Force: Skip confirmation prompts
Check current installed version and optionally compare with latest.
Alias: canary-version
Parameters:
-CheckLatest: Also check and compare with latest available version
- Downloads the latest installer from Microsoft's CDN
- Detects running Terminal Canary processes
- Launches installer (for UI methods) or installs silently
- Closes processes at the optimal time to avoid interrupting the installation
- Cleans up temporary files
- Reports success and new version information
- Windows 10/11
- PowerShell 5.1 or later
- Windows Terminal Canary (for updates)
- Author: izambe
- AI Assistant: Amazon Q helped with development and problem-solving
- Inspiration: Solving the real-world problem of updating Terminal Canary from within itself
MIT License - see LICENSE file for details
Contributions welcome! Please submit issues and pull requests on GitHub at https://github.com/izambe/TerminalCanaryUpdater