Ordres per instal·lar LabPlot2 (AppX) 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 KDE.LabPlot.AppX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id KDE.LabPlot.AppX -e --silentwinget uninstall --id KDE.LabPlot.AppX -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appxDesinstal·lar
Get-AppxPackage -Name KDEe.V.LabPlot | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-labplot2-appx.ps1
$url = 'https://origin.cdn.kde.org/ci-builds/education/labplot/master/windows/labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appx'
$sha256 = '985B2111D622EA657ACB0F3B124628BE562F6A5D9E0FF9A7FA0261F2F60A04F2'
$file = Join-Path $env:TEMP 'labplot-master-10343-windows-cl-msvc2022-x86_64-sideload.appx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file