Populärt: Data uppdaterade 27 oktober 2026

Kategorier

Internet1 356
Kommunikation321
Ljud och video898
Grafik och design539
Kontor och produktivitet1 124
Utvecklarverktyg3 134
AI-verktyg529
Säkerhet och integritet385
Systemverktyg3 114
Spel523
Utbildning och vetenskap239
Nätverk och IT284

SwitchHosts: tyst installation och avinstallation

An app for management and switching of the Hosts file.

Kommandon för att installera SwitchHosts 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 oldj.switchhosts -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id oldj.switchhosts -e --silent
winget uninstall --id oldj.switchhosts -e --silent

Per installationsfil

64-bitars · EXE (NSIS) · Aktuell användare · en-US

Tyst installationSwitchHosts-5.0.3-windows-x64-setup.exe /S
Egen mappSwitchHosts-5.0.3-windows-x64-setup.exe /S /D=C:\Apps\switchhosts
Avinstallationsnyckel i registret
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Installationsmapp
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

ARM64 · EXE (NSIS) · Aktuell användare · en-US

Tyst installationSwitchHosts-5.0.3-windows-arm64-setup.exe /S
Egen mappSwitchHosts-5.0.3-windows-arm64-setup.exe /S /D=C:\Apps\switchhosts
Avinstallationsnyckel i registret
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Installationsmapp
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

32-bitars · EXE (NSIS) · Aktuell användare · en-US

Tyst installationSwitchHosts-5.0.3-windows-x86-setup.exe /S
Egen mappSwitchHosts-5.0.3-windows-x86-setup.exe /S /D=C:\Apps\switchhosts
Avinstallationsnyckel i registret
HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
Installationsmapp
%LocalAppData%\SwitchHosts
DisplayVersion
5.0.3

PowerShell: ladda ner, kontrollera, installera

Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.

install-switchhosts.ps1
$url = 'https://github.com/oldj/SwitchHosts/releases/download/v5.0.3/SwitchHosts-5.0.3-windows-x64-setup.exe'
$sha256 = '0F0AF3E5F4BAE316EEDE8FF1299F15E7CCA8DA81BE33E3AAC7153A278D434ED1'
$file = Join-Path $env:TEMP 'SwitchHosts-5.0.3-windows-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