Kommandon för att installera Monitor Input Switcher 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 jakedorony.MonitorInputSwitcher -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jakedorony.MonitorInputSwitcher -e --silentwinget uninstall --id jakedorony.MonitorInputSwitcher -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
MonitorSwitch-Setup-2.8.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
MonitorSwitch-Setup-2.8.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\monitor-input-switcher"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-monitor-input-switcher.ps1
$url = 'https://github.com/jakedorony/Monitor-Input-Switcher/releases/download/v2.8.0/MonitorSwitch-Setup-2.8.0.exe'
$sha256 = '985463AF30E07C38A8BDA59A37E53052089176E2911AFAA1C167680CC5C842E4'
$file = Join-Path $env:TEMP 'MonitorSwitch-Setup-2.8.0.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