Kommandon för att installera WezTerm utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id wez.wezterm -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id wez.wezterm -e --silentwinget uninstall --id wez.wezterm -e --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
WezTerm-20240203-110809-5046fc22-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
WezTerm-20240203-110809-5046fc22-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\wezterm"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BCF6F0DA-5B9A-408D-8562-F680AE6E1EAF}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-wezterm.ps1
$url = 'https://github.com/wez/wezterm/releases/download/20240203-110809-5046fc22/WezTerm-20240203-110809-5046fc22-setup.exe'
$sha256 = '35A6EC0EFF7AA65E3987F14223BFB9DF831EAAB2964EB441ED6CAD4356D252FF'
$file = Join-Path $env:TEMP 'WezTerm-20240203-110809-5046fc22-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait