Příkazy pro instalaci programu gitui bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes 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 --silentPodle instalátoru
64bit · MSI · Všichni uživatelé · en-US
Tichá instalace
msiexec /i gitui-win.msi /qn /norestartZapsat protokol
msiexec /i gitui-win.msi /qn /norestart /l*v "%TEMP%\gitui-install.log"Odinstalace
msiexec /x {5B5FB6E7-5EB7-48C7-A342-82504D331743} /qn /norestart- Kód produktu MSI
- {5B5FB6E7-5EB7-48C7-A342-82504D331743}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5B5FB6E7-5EB7-48C7-A342-82504D331743}
- UpgradeCode
- {C1CADE63-A601-4E02-96CC-FB921D5B174E}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
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