Les commandes pour installer SimpleX Chat sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
PowerShell
winget install --id SimpleX.SimpleX-Chat -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SimpleX.SimpleX-Chat -e --silentwinget uninstall --id SimpleX.SimpleX-Chat -e --silentPar installateur
64 bits · MSI · Tous les utilisateurs · en-US
Installation silencieuse
msiexec /i simplex-desktop-windows-x86_64.msi /qn /norestartÉcrire un journal
msiexec /i simplex-desktop-windows-x86_64.msi /qn /norestart /l*v "%TEMP%\simplex-chat-install.log"Désinstallation
msiexec /x {792479B4-0C74-3FD3-ADCC-BECC281D168B} /qn /norestart- Code produit MSI
- {792479B4-0C74-3FD3-ADCC-BECC281D168B}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{792479B4-0C74-3FD3-ADCC-BECC281D168B}
- UpgradeCode
- {CC9EFBC8-AFFF-40D8-BB69-FCD7CE99EFB9}
- Dossier d’installation
- %ProgramFiles%\SimpleX
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
install-simplex-chat.ps1
$url = 'https://github.com/simplex-chat/simplex-chat/releases/download/v7.1.5/simplex-desktop-windows-x86_64.msi'
$sha256 = '8A05B66924A6EAA425A0EA3920A4E4D0D7028BB2ED29E2CB009DFD2A6308849A'
$file = Join-Path $env:TEMP 'simplex-desktop-windows-x86_64.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