Code::Blocks is a free, open-source cross-platform IDE that supports multiple compilers including GCC, Clang and Visual C++. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Code::Blocks from the command line using the EXE installer.
How to Install Code::Blocks Silently
Code::Blocks 32-bit Silent Install (EXE)
- Navigate to: http://www.codeblocks.org/downloads/binaries
- Download the 32-bit EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: codeblocks-x.y-32bit-setup.exe /S
- Press Enter
After a few moments you should see the Code::Blocks Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Code::Blocks 32-bit |
Vendor: | The Code::Blocks Team |
Architecture: | x86 |
Installer Type: | EXE |
Silent Install Switch: | codeblocks-x.y-32bit-setup.exe /S |
Silent Uninstall Switch (32-bit System) | "%ProgramFiles%\CodeBlocks\uninstall.exe" /S |
Silent Uninstall Switch (64-bit System) | "%ProgramFiles(x86)%\CodeBlocks\uninstall.exe" /S |
Download Link: | http://www.codeblocks.org/downloads/binaries |
PowerShell Script: | https://silentinstallhq.com/codeblocks-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-codeblocks-powershell/ |
Code::Blocks 64-bit Silent Install (EXE)
- Navigate to: http://www.codeblocks.org/downloads/binaries
- Download the 64-bit EXE to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: codeblocks-x.y-setup.exe /S
- Press Enter
After a few moments you should see the Code::Blocks Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Code::Blocks 64-bit |
Vendor: | The Code::Blocks Team |
Architecture: | x64 |
Installer Type: | EXE |
Silent Install Switch: | codeblocks-x.y-setup.exe /S |
Silent Uninstall Switch: | "%ProgramFiles%\CodeBlocks\uninstall.exe" /S |
Download Link: | http://www.codeblocks.org/downloads/binaries |
PowerShell Script: | https://silentinstallhq.com/codeblocks-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-codeblocks-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Change Default Installation Directory
You can change the default installation directory by using the following command line parameters. In this example, I’m installing Code::Blocks to “C:\CodeBlocks”
Code::Blocks 32-bit (EXE)
codeblocks-x.y-32bit-setup.exe /S /D=C:\CodeBlocks |
Code::Blocks 64-bit (EXE)
codeblocks-x.y-setup.exe /S /D=C:\CodeBlocks |
How to Uninstall Code::Blocks Silently
Check out the Code::Blocks Install and Uninstall (PowerShell) post for a scripted solution.
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
Code::Blocks 32-bit Silent Uninstall (EXE) on 32-bit System
"%ProgramFiles%\CodeBlocks\uninstall.exe" /S |
Code::Blocks 32-bit Silent Uninstall (EXE) on 64-bit System
"%ProgramFiles(x86)%\CodeBlocks\uninstall.exe" /S |
Code::Blocks 64-bit Silent Uninstall (EXE) on 64-bit System
"%ProgramFiles%\CodeBlocks\uninstall.exe" /S |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.