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-बिट · 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- अनइन्स्टॉल रजिस्ट्री की
- 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- अनइन्स्टॉल रजिस्ट्री की
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SwitchHosts
- इन्स्टॉल फोल्डर
- %LocalAppData%\SwitchHosts
- DisplayVersion
- 5.0.3
32-बिट · 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- अनइन्स्टॉल रजिस्ट्री की
- 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