Kommandoer for å installere gnuplot uten spørsmål, fjerne programmet igjen og gjenkjenne det i distribusjonsverktøy. En kommando vises bare når den er sikker: fra manifestet eller som dokumentert standard for installasjonsteknologien.
Relatert veiledning: Parametre for stille installasjon: MSI, NSIS, Inno · Avinstaller et program via registeret eller PowerShell
Med 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 --silentPer installasjonsfil
64-bit · EXE (Inno Setup) · Alle brukere · en-US
Stille installasjon
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
download /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\gnuplot"- Registernøkkel for avinstallering
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AB419AC3-9BC1-4EC5-A75B-4D8870DD651F}_is1
PowerShell: last ned, kontroller, installer
Laster ned den offisielle filen, kontrollerer SHA256-summen og installerer i stillhet.
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