Ordres per instal·lar CC Switch sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i CC-Switch-v4.0.20-Windows.msi /qn /norestartDesar un registre
msiexec /i CC-Switch-v4.0.20-Windows.msi /qn /norestart /l*v "%TEMP%\cc-switch-install.log"Desinstal·lar
msiexec /x {21721E2D-00C4-49C3-BF08-981E51E2975B} /qn /norestart- Codi de producte MSI
- {21721E2D-00C4-49C3-BF08-981E51E2975B}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{21721E2D-00C4-49C3-BF08-981E51E2975B}
- UpgradeCode
- {55F90CA4-617A-5350-A7CF-F6F24252866B}
- Carpeta d’instal·lació
- %LocalAppData%/Programs/CC Switch
- DisplayVersion
- 4.0.20
ARM64 · MSI · Usuari actual · en-US
Instal·lació silenciosa
msiexec /i CC-Switch-v4.0.20-Windows-arm64.msi /qn /norestartDesar un registre
msiexec /i CC-Switch-v4.0.20-Windows-arm64.msi /qn /norestart /l*v "%TEMP%\cc-switch-install.log"Desinstal·lar
msiexec /x {3CA6F599-2901-484F-9951-E638F97632FC} /qn /norestart- Codi de producte MSI
- {3CA6F599-2901-484F-9951-E638F97632FC}
- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3CA6F599-2901-484F-9951-E638F97632FC}
- UpgradeCode
- {55F90CA4-617A-5350-A7CF-F6F24252866B}
- Carpeta d’instal·lació
- %LocalAppData%/Programs/CC Switch
- DisplayVersion
- 4.0.20
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-cc-switch.ps1
$url = 'https://github.com/farion1231/cc-switch/releases/download/v4.0.20/CC-Switch-v4.0.20-Windows.msi'
$sha256 = '332D7D8B8E8FF80E5BF64D70F119388B773D72A8A1B1152A6FF075745B1435B8'
$file = Join-Path $env:TEMP 'CC-Switch-v4.0.20-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.20/CC-Switch-v4.0.20-Windows-arm64.msi'
$sha256 = '97F99FD7938BDA46C10985D4D7EDC03E37B6F166CDE10406C50E28FF9D2FA847'
$file = Join-Path $env:TEMP 'CC-Switch-v4.0.20-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