د SwitchHosts بې پوښتنې نصبولو، بیا لرې کولو او د ځای پر ځای کولو وسایلو له لارې د پېژندلو کمانډونه. کمانډ یوازې هغه وخت ښودل کېږي چې ډاډمن وي: له مانیفسټ څخه یا د نصبوونکي ټکنالوژۍ له لیکل شوي اصلي حالت څخه.
اړوند لارښود: د چوپه نصب سویچونه: MSI، NSIS، Inno Setup · پروګرام د ریجسټري یا PowerShell په مرسته لرې کړئ
د winget سره
PowerShell
winget install --id oldj.switchhosts -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id oldj.switchhosts -e --silentwinget uninstall --id oldj.switchhosts -e --silentد نصبوونکي له مخې
64-bit · EXE (NSIS) · اوسنی کارن · en-US
چوپه نصب
SwitchHosts-5.0.3-windows-x64-setup.exe /Sخپل فولډر
SwitchHosts-5.0.3-windows-x64-setup.exe /S /D=C:\Apps\switchhosts- د Uninstall ریجسټري کیلي
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
- د نصب فولډر
- %LocalAppData%\SwitchHosts
- DisplayVersion
- 5.0.3
ARM64 · EXE (NSIS) · اوسنی کارن · en-US
چوپه نصب
SwitchHosts-5.0.3-windows-arm64-setup.exe /Sخپل فولډر
SwitchHosts-5.0.3-windows-arm64-setup.exe /S /D=C:\Apps\switchhosts- د Uninstall ریجسټري کیلي
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
- د نصب فولډر
- %LocalAppData%\SwitchHosts
- DisplayVersion
- 5.0.3
32-bit · EXE (NSIS) · اوسنی کارن · en-US
چوپه نصب
SwitchHosts-5.0.3-windows-x86-setup.exe /Sخپل فولډر
SwitchHosts-5.0.3-windows-x86-setup.exe /S /D=C:\Apps\switchhosts- د Uninstall ریجسټري کیلي
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
- د نصب فولډر
- %LocalAppData%\SwitchHosts
- DisplayVersion
- 5.0.3
PowerShell: ډاونلوډ، تایید، نصب
رسمي فایل ډاونلوډوي، SHA256 یې ګوري او په چوپه توګه یې نصبوي.
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 install-switchhosts.ps1
$url = 'https://github.com/oldj/SwitchHosts/releases/download/v5.0.3/SwitchHosts-5.0.3-windows-arm64-setup.exe'
$sha256 = 'B3BEA32D1FB489AF5ACF21BCF58FAB1EAF0B5B15C417ABD8CAEC6583C834AD40'
$file = Join-Path $env:TEMP 'SwitchHosts-5.0.3-windows-arm64-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 install-switchhosts.ps1
$url = 'https://github.com/oldj/SwitchHosts/releases/download/v5.0.3/SwitchHosts-5.0.3-windows-x86-setup.exe'
$sha256 = 'A734A578437D8BDED5892835EDECE83644B2B3E89A3775EEDFC38DEBF385437D'
$file = Join-Path $env:TEMP 'SwitchHosts-5.0.3-windows-x86-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