Kommandon för att installera LibrePCB 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 LibrePCB.LibrePCB.Preview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LibrePCB.LibrePCB.Preview -e --silentwinget uninstall --id LibrePCB.LibrePCB.Preview -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
librepcb-installer-2.0.0-rc1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
librepcb-installer-2.0.0-rc1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\librepcb-librepcb-developers"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\librepcb_is1
- Installationsmapp
- %ProgramFiles%\LibrePCB
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-librepcb-librepcb-developers.ps1
$url = 'https://download.librepcb.org/releases/2.0.0-rc1/librepcb-installer-2.0.0-rc1-windows-x86_64.exe'
$sha256 = '6D56C052C55A4B195E9EFAE6BEED6F9293FA45C16CA6E33B915FE24293C1C1F6'
$file = Join-Path $env:TEMP 'librepcb-installer-2.0.0-rc1-windows-x86_64.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