Ordres per instal·lar pandoc-plot 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 LaurentPRenedeCotret.pandoc-plot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id LaurentPRenedeCotret.pandoc-plot -e --silentwinget uninstall --id LaurentPRenedeCotret.pandoc-plot -e --silentPer instal·lador
64 bits · EXE (Inno Setup) · Tots els usuaris · en-US
Instal·lació silenciosa
pandoc-plot-wininst-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Una altra carpeta
pandoc-plot-wininst-x86_64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\pandoc-plot"- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4AD298C3-6FD5-49B2-9E4A-8FEB19C63640}_is1
- Carpeta d’instal·lació
- %ProgramFiles%\pandoc-plot
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-pandoc-plot.ps1
$url = 'https://github.com/LaurentRDC/pandoc-plot/releases/download/1.9.2/pandoc-plot-wininst-x86_64.exe'
$sha256 = '25321CCC00D3BCEB8605D2BD7949B5B354DE049B2F88AECB03889284ACD545EE'
$file = Join-Path $env:TEMP 'pandoc-plot-wininst-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