用于免交互安装SomePythonThings Zip Manager、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id SomePythonThings.ZipManager -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SomePythonThings.ZipManager -e --silentwinget uninstall --id SomePythonThings.ZipManager -e --silent按安装包
64位 · EXE(Inno Setup) · 仅当前用户
静默安装
SomePythonThings.Zip.Manager.WinAll.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自定义安装目录
SomePythonThings.Zip.Manager.WinAll.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\somepythonthings-zip-manager"PowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-somepythonthings-zip-manager.ps1
$url = 'https://github.com/marticliment/SomePythonThings-Zip-Manager/releases/download/4.3/SomePythonThings.Zip.Manager.WinAll.exe'
$sha256 = '0476E2579D6327D41D7AFD6C63AB271B888A38802617BB64A790774AF622AF1B'
$file = Join-Path $env:TEMP 'SomePythonThings.Zip.Manager.WinAll.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait