Kommandon för att installera CC Switch 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 farion1231.CC-Switch -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id farion1231.CC-Switch -e --silentwinget uninstall --id farion1231.CC-Switch -e --silentPer installationsfil
64-bitars · MSI · Aktuell användare · en-US
Tyst installation
msiexec /i CC-Switch-v4.0.25-Windows.msi /qn /norestartSkriv en logg
msiexec /i CC-Switch-v4.0.25-Windows.msi /qn /norestart /l*v "%TEMP%\cc-switch-install.log"Avinstallation
msiexec /x {DF33B2A8-7877-42D0-AE54-C67F9DA1D085} /qn /norestart- MSI-produktkod
- {DF33B2A8-7877-42D0-AE54-C67F9DA1D085}
- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{DF33B2A8-7877-42D0-AE54-C67F9DA1D085}
- UpgradeCode
- {55F90CA4-617A-5350-A7CF-F6F24252866B}
- Installationsmapp
- %LocalAppData%/Programs/CC Switch
- DisplayVersion
- 4.0.25
ARM64 · MSI · Aktuell användare · en-US
Tyst installation
msiexec /i CC-Switch-v4.0.25-Windows-arm64.msi /qn /norestartSkriv en logg
msiexec /i CC-Switch-v4.0.25-Windows-arm64.msi /qn /norestart /l*v "%TEMP%\cc-switch-install.log"Avinstallation
msiexec /x {2415CC33-2852-4686-8A87-0DFF0A905DB6} /qn /norestart- MSI-produktkod
- {2415CC33-2852-4686-8A87-0DFF0A905DB6}
- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2415CC33-2852-4686-8A87-0DFF0A905DB6}
- UpgradeCode
- {55F90CA4-617A-5350-A7CF-F6F24252866B}
- Installationsmapp
- %LocalAppData%/Programs/CC Switch
- DisplayVersion
- 4.0.25
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-cc-switch.ps1
$url = 'https://github.com/farion1231/cc-switch/releases/download/v4.0.25/CC-Switch-v4.0.25-Windows.msi'
$sha256 = 'F9E64FB97C4887B13B03E29B0A4D39FCD77DECEEB2767174B0A1CCAED5991A00'
$file = Join-Path $env:TEMP 'CC-Switch-v4.0.25-Windows.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-cc-switch.ps1
$url = 'https://github.com/farion1231/cc-switch/releases/download/v4.0.25/CC-Switch-v4.0.25-Windows-arm64.msi'
$sha256 = '8F33347433A1E7A7332908970B7034A6ABCEC0977746AEC8E462049520CCAD3A'
$file = Join-Path $env:TEMP 'CC-Switch-v4.0.25-Windows-arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait