Opdragte om CloudServerPC sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met 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 --silentVolgens installeerder
64-bis · EXE (Inno Setup)
Stil installasie
CloudServerPC.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Eie lêergids
CloudServerPC.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cloudserverpc"PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
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