Befehle, um Code::Blocks with MinGW ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
winget install --id CodeBlocks.CodeBlocks.MinGW -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CodeBlocks.CodeBlocks.MinGW -e --silentwinget uninstall --id CodeBlocks.CodeBlocks.MinGW -e --silentNach Installer
64-Bit · EXE (NSIS) · Alle Benutzer · en-US
download /Sdownload /S /D=C:\Apps\code-blocks-with-mingw- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CodeBlocks
- Installationsordner
- %ProgramFiles%\CodeBlocks
64-Bit · ZIP
Keine Installation nötig (portabel)
32-Bit · EXE (NSIS) · Alle Benutzer · en-US
download /Sdownload /S /D=C:\Apps\code-blocks-with-mingw- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\CodeBlocks
- Installationsordner
- %ProgramFiles(x86)%\CodeBlocks
32-Bit · ZIP
Keine Installation nötig (portabel)
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
$url = 'https://sourceforge.net/projects/codeblocks/files/Binaries/25.03/Windows/codeblocks-25.03mingw-setup.exe/download'
$sha256 = '8712227526EB3BB26C90DD5C78301B3FA32BF5869A43294BBF4E9C5512C52792'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait $url = 'https://sourceforge.net/projects/codeblocks/files/Binaries/25.03/Windows/32bit/codeblocks-25.03mingw-32bit-setup.exe/download'
$sha256 = '7830E8E19B3EEC2657B931B52F417DBBF55CADC3D9DFE21151DB058994F54DF6'
$file = Join-Path $env:TEMP 'download'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait