Kommandon för att installera Graph Generator utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id SAKI.GraphGenerator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SAKI.GraphGenerator -e --silentwinget uninstall --id SAKI.GraphGenerator -e --silentPer installationsfil
Alla processorer · EXE (Inno Setup)
Tyst installation
GraphGenerator_v1.0_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
GraphGenerator_v1.0_Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\graph-generator"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-graph-generator.ps1
$url = 'https://github.com/saki-saki09/GraphGenerator/releases/download/v1.0/GraphGenerator_v1.0_Setup.exe'
$sha256 = 'B34A9212F024A920D0B31CE0ADD50148217A6BC5F7454518FDD2084243C24B9C'
$file = Join-Path $env:TEMP 'GraphGenerator_v1.0_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait