Opdragte om gnuplot sonder vrae te installeer, weer te verwyder en vanuit ontplooiingsgereedskap op te spoor. ’n Opdrag word net gewys as dit seker is: uit die manifes of die gedokumenteerde verstek van die installeertegnologie.
Verwante gids: Skakelaars vir stil installasie: MSI, NSIS, Inno Setup · Deïnstalleer ’n program via die register of PowerShell
Met winget
PowerShell
winget install --id gnuplot.gnuplot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id gnuplot.gnuplot -e --silentwinget uninstall --id gnuplot.gnuplot -e --silentVolgens installeerder
64-bis · EXE (Inno Setup) · Alle gebruikers · en-US
Stil installasie
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Eie lêergids
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuplot"- Deïnstalleer-registersleutel
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AB419AC3-9BC1-4EC5-A75B-4D8870DD651F}_is1
PowerShell: aflaai, nagaan, installeer
Laai die amptelike lêer af, gaan die SHA256 na en installeer dit stil.
install-gnuplot.ps1
$url = 'https://sourceforge.net/projects/gnuplot/files/gnuplot/6.0.4/gp604-win64-clang.exe/download'
$sha256 = '2C31E3FC91B21C450F4B015F1CD1F2F84F7A8CFC63AFC037F9BA5EFB47CC0C23'
$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