Ordres per instal·lar LibSync 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 BoekSolutions.LibSync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BoekSolutions.LibSync -e --silentwinget uninstall --id BoekSolutions.LibSync -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris
Instal·lació silenciosa
LibSync-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
LibSync-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\libsync"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6219A392-16B3-415A-AE12-A33BB0465824}_is1
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-libsync.ps1
$url = 'https://github.com/JohnBoek/boeksolutions.libsync-releases/releases/download/v1.2.5/LibSync-Setup.exe'
$sha256 = '597086755E9CE7E004D81769D7B9E28A3613CC6C0AADA1E1307C76693B51CB1F'
$file = Join-Path $env:TEMP 'LibSync-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