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 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LibrePCB.LibrePCB -e --silentwinget uninstall --id LibrePCB.LibrePCB -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
librepcb-installer-2.1.1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
librepcb-installer-2.1.1-windows-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\librepcb"- 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.ps1
$url = 'https://download.librepcb.org/releases/2.1.1/librepcb-installer-2.1.1-windows-x86_64.exe'
$sha256 = '3FB0E9316D144C9AC52D7042C688C9B2C576856110916AADFCF443CEA29630AB'
$file = Join-Path $env:TEMP 'librepcb-installer-2.1.1-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