Príkazy na inštaláciu programu Discloud CLI bez otázok, na jeho odinštalovanie a na detekciu v nástrojoch na nasadzovanie. Príkaz je uvedený iba vtedy, keď je presne známy: z manifestu alebo zo zdokumentovaných parametrov technológie inštalátora.
Súvisiaci návod: Parametre tichej inštalácie: MSI, NSIS, Inno Setup · Odinštalovanie programu cez register alebo PowerShell
Cez 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 --silentPodľa inštalátora
64-bit · EXE (Inno Setup)
Tichá inštalácia
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastný priečinok
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"ARM64 · EXE (Inno Setup)
Tichá inštalácia
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Vlastný priečinok
discloud-cli-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\discloud-cli"PowerShell: stiahnuť, overiť, nainštalovať
Stiahne oficiálny súbor, overí SHA256 a program nainštaluje v tichom režime.
install-discloud-cli.ps1
$url = 'https://github.com/discloud/cli-dart/releases/download/1.6.0/discloud-cli-x64-setup.exe'
$sha256 = '3D86EFFB7E758C83B7BA0FFC7501A40496BE09FAF30A840AAB2CD882FBAEC982'
$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.6.0/discloud-cli-x64-setup.exe'
$sha256 = '3D86EFFB7E758C83B7BA0FFC7501A40496BE09FAF30A840AAB2CD882FBAEC982'
$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