Ordres per instal·lar CPod 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 z-------------.cpod -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id z-------------.cpod -e --silentwinget uninstall --id z-------------.cpod -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual · en-US
Instal·lació silenciosa
CPod-Setup-1.28.2.exe /SUna altra carpeta
CPod-Setup-1.28.2.exe /S /D=C:\Apps\cpodPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-cpod.ps1
$url = 'https://github.com/z-------------/CPod/releases/download/v1.28.2/CPod-Setup-1.28.2.exe'
$sha256 = '955C0CA86CE3440FB3F09683D31D359044AE7187645D8029B165079F7F99A1E6'
$file = Join-Path $env:TEMP 'CPod-Setup-1.28.2.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