Commando’s om Data Version Control zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met winget
PowerShell
winget install --id Iterative.DVC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Iterative.DVC -e --silentwinget uninstall --id Iterative.DVC -e --silentPer installer
32-bits · EXE (Inno Setup) · en-US
Stille installatie
dvc-3.67.1 /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Andere map
dvc-3.67.1 /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\data-version-control"- Registersleutel voor verwijderen
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{8258CE8A-110E-4E0D-AE60-FEE00B15F041}_is1
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-data-version-control.ps1
$url = 'https://dvc.org/download/win/dvc-3.67.1'
$sha256 = '107AE69CB3E9F34A5674FF9F4C5F5F0A5A2EA68E910C70D51A1AB96B0FD705A3'
$file = Join-Path $env:TEMP 'dvc-3.67.1'
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