Kommandon för att installera PCGen 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 PCGen.PCGen -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PCGen.PCGen -e --silentwinget uninstall --id PCGen.PCGen -e --silentPer installationsfil
32-bitars · EXE (NSIS) · Aktuell användare · en-US
Tyst installation
pcgen-6.08.00RC10_win_install.exe /SEgen mapp
pcgen-6.08.00RC10_win_install.exe /S /D=C:\Apps\pcgenPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-pcgen.ps1
$url = 'https://github.com/PCGen/pcgen/releases/download/6.08.00RC10/pcgen-6.08.00RC10_win_install.exe'
$sha256 = '87DA750DA332092414A118D357BC33092DF6B5718F3DA685116A4CBB39B0B741'
$file = Join-Path $env:TEMP 'pcgen-6.08.00RC10_win_install.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