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