Ordres per instal·lar CloudServerPC 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 jalapGroup.CloudServerPC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id jalapGroup.CloudServerPC -e --silentwinget uninstall --id jalapGroup.CloudServerPC -e --silentPer instal·lador
64 bits · EXE (Inno Setup)
Instal·lació silenciosa
CloudServerPC.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
CloudServerPC.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cloudserverpc"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-cloudserverpc.ps1
$url = 'https://github.com/realmekamlesh/cloudserverpc/releases/download/v2.0/CloudServerPC.exe'
$sha256 = 'AF123EFCC600E7C4556C3E186B14E0E9621661BA2430A0434260288851D29999'
$file = Join-Path $env:TEMP 'CloudServerPC.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait