Příkazy pro instalaci programu ggcode 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 gg.ai.ggcode-cli -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id gg.ai.ggcode-cli -e --silentwinget uninstall --id gg.ai.ggcode-cli -e --silentPodle instalátoru
64bit · MSI · Aktuální uživatel
Tichá instalace
msiexec /i ggcode_1.3.267_windows_x64.msi /qn /norestartZapsat protokol
msiexec /i ggcode_1.3.267_windows_x64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Odinstalace
msiexec /x {133DD36A-36F7-4E29-ABB1-7156BCF31900} /qn /norestart- Kód produktu MSI
- {133DD36A-36F7-4E29-ABB1-7156BCF31900}
- Klíč odinstalace v registru
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{133DD36A-36F7-4E29-ABB1-7156BCF31900}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
ARM64 · MSI · Aktuální uživatel
Tichá instalace
msiexec /i ggcode_1.3.267_windows_arm64.msi /qn /norestartZapsat protokol
msiexec /i ggcode_1.3.267_windows_arm64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Odinstalace
msiexec /x {24298A2F-8345-46CF-A976-158DE5895602} /qn /norestart- Kód produktu MSI
- {24298A2F-8345-46CF-A976-158DE5895602}
- Klíč odinstalace v registru
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{24298A2F-8345-46CF-A976-158DE5895602}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-ggcode.ps1
$url = 'https://github.com/topcheer/ggcode/releases/download/v1.3.267/ggcode_1.3.267_windows_x64.msi'
$sha256 = '747EC3027381AA41DC38E8FE5F29EE4D29650CB33531B206D098ADEDE26DBF24'
$file = Join-Path $env:TEMP 'ggcode_1.3.267_windows_x64.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 install-ggcode.ps1
$url = 'https://github.com/topcheer/ggcode/releases/download/v1.3.267/ggcode_1.3.267_windows_arm64.msi'
$sha256 = '652817B036EAF176C7960EB2819B6C89835E0B0B53FF19373EE4F51DB2DB055A'
$file = Join-Path $env:TEMP 'ggcode_1.3.267_windows_arm64.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