أوامر لتثبيت برنامج Code::Blocks with MinGW دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.
شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell
باستخدام winget
PowerShell
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 --silentحسب المثبّت
64 بت · EXE (NSIS) · جميع المستخدمين · en-US
التثبيت الصامت
download /Sمجلد مخصص
download /S /D=C:\Apps\code-blocks-with-mingw- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CodeBlocks
- مجلد التثبيت
- %ProgramFiles%\CodeBlocks
64 بت · ZIP
لا يحتاج إلى تثبيت (نسخة محمولة)
32 بت · EXE (NSIS) · جميع المستخدمين · en-US
التثبيت الصامت
download /Sمجلد مخصص
download /S /D=C:\Apps\code-blocks-with-mingw- مفتاح إلغاء التثبيت في السجل
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\CodeBlocks
- مجلد التثبيت
- %ProgramFiles(x86)%\CodeBlocks
32 بت · ZIP
لا يحتاج إلى تثبيت (نسخة محمولة)
PowerShell: تنزيل وتحقق وتثبيت
ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.
install-code-blocks-with-mingw.ps1
$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 install-code-blocks-with-mingw.ps1
$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