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