Kommandoer til at installere GnuWin32: Tree uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med winget
PowerShell
winget install --id GnuWin32.Tree -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id GnuWin32.Tree -e --silentwinget uninstall --id GnuWin32.Tree -e --silentPr. installationsfil
32-bit · EXE (Inno Setup) · Alle brugere
Lydløs installation
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuwin32-tree"PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-gnuwin32-tree.ps1
$url = 'https://sourceforge.net/projects/gnuwin32/files/tree/1.5.2.2/tree-1.5.2.2-setup.exe/download'
$sha256 = 'CAA82D34F3E6A2A044BB015F8BA572881603777CF63FA62046EEB92045C75872'
$file = Join-Path $env:TEMP 'download'
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