Commando’s om ggcode zonder vragen te installeren, weer te verwijderen en te detecteren in uitroltools. Een commando staat er alleen als het vaststaat: uit het manifest of als gedocumenteerde standaard van de installertechniek.
Gerelateerde handleiding: Stille installatie-parameters: MSI, NSIS, Inno Setup · Programma verwijderen via register of PowerShell
Met 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 --silentPer installer
64-bits · MSI · Huidige gebruiker
Stille installatie
msiexec /i ggcode_1.3.283_windows_x64.msi /qn /norestartLogbestand schrijven
msiexec /i ggcode_1.3.283_windows_x64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Verwijderen
msiexec /x {BA96488F-87C9-4319-9007-AB36325C9AF0} /qn /norestart- MSI-productcode
- {BA96488F-87C9-4319-9007-AB36325C9AF0}
- Registersleutel voor verwijderen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BA96488F-87C9-4319-9007-AB36325C9AF0}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
ARM64 · MSI · Huidige gebruiker
Stille installatie
msiexec /i ggcode_1.3.283_windows_arm64.msi /qn /norestartLogbestand schrijven
msiexec /i ggcode_1.3.283_windows_arm64.msi /qn /norestart /l*v "%TEMP%\ggcode-install.log"Verwijderen
msiexec /x {8841AC8F-BEA4-4FEE-80CB-1F17907D0666} /qn /norestart- MSI-productcode
- {8841AC8F-BEA4-4FEE-80CB-1F17907D0666}
- Registersleutel voor verwijderen
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8841AC8F-BEA4-4FEE-80CB-1F17907D0666}
- UpgradeCode
- {B3C4D5E6-F7A8-9012-BCDE-F23456789012}
PowerShell: downloaden, controleren, installeren
Downloadt het officiële bestand, controleert de SHA256-hash en installeert stil.
install-ggcode.ps1
$url = 'https://github.com/topcheer/ggcode/releases/download/v1.3.283/ggcode_1.3.283_windows_x64.msi'
$sha256 = '314CFF2422A3ACE242E2111E47D332669338FC246F3F8A76D9E37FF80E8FEF50'
$file = Join-Path $env:TEMP 'ggcode_1.3.283_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.283/ggcode_1.3.283_windows_arm64.msi'
$sha256 = 'E96CA307FA5CE39E65551BBC1762C8E45851839BCC470214A79B8AA674277049'
$file = Join-Path $env:TEMP 'ggcode_1.3.283_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