Les commandes pour installer gitui 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 StephanDilly.gitui -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id StephanDilly.gitui -e --silentwinget uninstall --id StephanDilly.gitui -e --silentPar installateur
64 bits · MSI · Tous les utilisateurs · en-US
Installation silencieuse
msiexec /i gitui-win.msi /qn /norestartÉcrire un journal
msiexec /i gitui-win.msi /qn /norestart /l*v "%TEMP%\gitui-install.log"Désinstallation
msiexec /x {5B5FB6E7-5EB7-48C7-A342-82504D331743} /qn /norestart- Code produit MSI
- {5B5FB6E7-5EB7-48C7-A342-82504D331743}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5B5FB6E7-5EB7-48C7-A342-82504D331743}
- UpgradeCode
- {C1CADE63-A601-4E02-96CC-FB921D5B174E}
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-gitui.ps1
$url = 'https://github.com/extrawurst/gitui/releases/download/v0.28.1/gitui-win.msi'
$sha256 = '6B720D82C4AFAEB5ED07EB5B99C4E89868B5DF59530528CB873CF1A8D2D598E3'
$file = Join-Path $env:TEMP 'gitui-win.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