Skipanir til að setja forritið Discloud CLI upp án spurninga, fjarlægja það aftur og greina það úr dreifingartólum. Skipun er aðeins sýnd þegar hún er örugg: úr pakkalýsingunni eða skjalfestu sjálfgildi uppsetningartækninnar.
Tengdar leiðbeiningar: Rofar fyrir hljóðláta uppsetningu: MSI, NSIS, Inno Setup · Fjarlægja forrit með skrásetningunni eða PowerShell
Með winget
PowerShell
winget install --id Discloud.CLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Discloud.CLI -e --silentwinget uninstall --id Discloud.CLI -e --silentEftir uppsetningarforriti
64 bita · EXE (Inno Setup)
Hljóðlát uppsetning
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Önnur mappa
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"ARM64 · EXE (Inno Setup)
Hljóðlát uppsetning
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Önnur mappa
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"PowerShell: sækja, sannreyna, setja upp
Sækir opinberu skrána, ber SHA256-gildi hennar saman og setur hana upp hljóðlaust.
install-discloud-cli.ps1
$url = 'https://github.com/discloud/cli-dart/releases/download/1.5.2/discloud-cli-x64-setup.exe'
$sha256 = '12FE777962F53282D3D4D231357905342BED45F6BA05DFDA36FA1AFFD0C91085'
$file = Join-Path $env:TEMP 'discloud-cli-x64-setup.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 install-discloud-cli.ps1
$url = 'https://github.com/discloud/cli-dart/releases/download/1.5.2/discloud-cli-x64-setup.exe'
$sha256 = '12FE777962F53282D3D4D231357905342BED45F6BA05DFDA36FA1AFFD0C91085'
$file = Join-Path $env:TEMP 'discloud-cli-x64-setup.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