Kommandon för att installera Whiparc CLI 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 Whiparc.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Whiparc.CLI -e --silentwinget uninstall --id Whiparc.CLI -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
whiparc-setup-windows-amd64.exe /SEgen mapp
whiparc-setup-windows-amd64.exe /S /D=C:\Apps\whiparc-cli- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Whiparc
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-whiparc-cli.ps1
$url = 'https://github.com/whiparc/whiparc/releases/download/cli-v0.1.12/whiparc-setup-windows-amd64.exe'
$sha256 = '676E89DFE699CEE73B967A7EE9AAEAC40AA3534BC81929A47E4CB5B8E25979D4'
$file = Join-Path $env:TEMP 'whiparc-setup-windows-amd64.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 '/S' -Wait