Ordres per instal·lar Dangerzone 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 FreedomofthePressFoundation.Dangerzone -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id FreedomofthePressFoundation.Dangerzone -e --silentwinget uninstall --id FreedomofthePressFoundation.Dangerzone -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i Dangerzone-0.11.1.msi /qn /norestartDesar un registre
msiexec /i Dangerzone-0.11.1.msi /qn /norestart /l*v "%TEMP%\dangerzone-install.log"Desinstal·lar
msiexec /x {B2802F73-9FFE-4281-95BE-9E3F364E378B} /qn /norestart- Codi de producte MSI
- {B2802F73-9FFE-4281-95BE-9E3F364E378B}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2802F73-9FFE-4281-95BE-9E3F364E378B}
- UpgradeCode
- {12B9695C-965B-4BE0-BC33-21274E809576}
- Carpeta d’instal·lació
- %ProgramFiles%/Dangerzone
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-dangerzone.ps1
$url = 'https://github.com/freedomofpress/dangerzone/releases/download/v0.11.1/Dangerzone-0.11.1.msi'
$sha256 = 'D3CD0DC6173CB184C2A7FE32C5EBDCE93FB8F7F1D3F028ED3AF836C9C73C3594'
$file = Join-Path $env:TEMP 'Dangerzone-0.11.1.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait