Ordres per instal·lar LibrePCB sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
librepcb-installer-2.0.0-rc1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
librepcb-installer-2.0.0-rc1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\librepcb-librepcb-developers"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\librepcb_is1
- Carpeta d’instal·lació
- %ProgramFiles%\LibrePCB
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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