Kommandon för att installera Discloud CLI utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"ARM64 · EXE (Inno Setup)
Tyst installation
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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