Commands for installing ggcode without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · MSI · Current user
Silent install
msiexec /i ggcode_1.3.267_windows_x64.msi /qn /norestartWrite a log
msiexec /i ggcode_1.3.267_windows_x64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Uninstall
msiexec /x {133DD36A-36F7-4E29-ABB1-7156BCF31900} /qn /norestart- MSI product code
- {133DD36A-36F7-4E29-ABB1-7156BCF31900}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{133DD36A-36F7-4E29-ABB1-7156BCF31900}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
ARM64 · MSI · Current user
Silent install
msiexec /i ggcode_1.3.267_windows_arm64.msi /qn /norestartWrite a log
msiexec /i ggcode_1.3.267_windows_arm64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Uninstall
msiexec /x {24298A2F-8345-46CF-A976-158DE5895602} /qn /norestart- MSI product code
- {24298A2F-8345-46CF-A976-158DE5895602}
- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{24298A2F-8345-46CF-A976-158DE5895602}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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