Commando’s om Diffract 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 SmallSoftLoaf.Diffract -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SmallSoftLoaf.Diffract -e --silentwinget uninstall --id SmallSoftLoaf.Diffract -e --silentPer installer
32-bits · EXE (NSIS)
Stille installatie
diffract-1.1.2-windows-setup.exe /SAndere map
diffract-1.1.2-windows-setup.exe /S /D=C:\Apps\diffractPowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-diffract.ps1
$url = 'https://releases.getdiffract.com/diffract-1.1.2-windows-setup.exe'
$sha256 = '2FEDA979D13CCE4A5ABB328D88E18EDB9A422A4DD4AF4828AB674DEE237C7F02'
$file = Join-Path $env:TEMP 'diffract-1.1.2-windows-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 '/S' -Wait