用于免交互安装Commitly、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id Commitly.Commitly -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Commitly.Commitly -e --silentwinget uninstall --id Commitly.Commitly -e --silent按安装包
通用架构 · EXE
静默安装
Commitly-win-Setup.exe --silentPowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-commitly.ps1
$url = 'https://github.com/glconti/commitly-hub/releases/download/v1.1.2/Commitly-win-Setup.exe'
$sha256 = '35BA9C1DD53C1D98373D01929F433F8CD6A773CFF698BC13C2F25B4A43C2C3A3'
$file = Join-Path $env:TEMP 'Commitly-win-Setup.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '--silent' -Wait