Automated installer that handles all the common setup issues with Claude Code on Windows, including Git for Windows installation and PATH configuration.
- Interactive GUI: User-friendly menu for selecting installation options
- Automatic prerequisite installation: Installs Git for Windows if not present
- PATH configuration: Automatically adds
%USERPROFILE%\.local\binto PATH - Git Bash configuration: Sets
CLAUDE_CODE_GIT_BASH_PATHenvironment variable - Flexible installation: Choose between CLI only, VSCode extension only, or both
- Smart detection: Skips VSCode installation if already present
- Comprehensive logging: Detailed logs for troubleshooting
- Windows 10/11
- PowerShell 5.1 or higher
- Administrator privileges
- Internet connection (for downloading dependencies)
- Open PowerShell as Administrator
- Navigate to the installer directory:
cd C:\Users\acewi\Desktop\CCInstaller
- Run the build script:
.\Build-Installer.ps1 - The installer will be created in the
.\builddirectory
For testing purposes, you can run the PowerShell script directly:
# Interactive mode
.\Install-ClaudeCode.ps1
# Silent mode with CLI only
.\Install-ClaudeCode.ps1 -Silent -InstallCLI
# Silent mode with VSCode extension only
.\Install-ClaudeCode.ps1 -Silent -InstallExtension
# Silent mode with both
.\Install-ClaudeCode.ps1 -Silent -InstallCLI -InstallExtension- Right-click on
ClaudeCodeInstaller.exe - Select "Run as Administrator"
- Follow the on-screen prompts:
- Option 1: Install Claude Code CLI
- Option 2: Install VSCode + Claude Code Extension
- Option 3: Install Both
- Option 4: Exit
- Git for Windows (if not present)
- Claude Code CLI
- Sets
CLAUDE_CODE_GIT_BASH_PATHenvironment variable - Adds
%USERPROFILE%\.local\binto PATH
- Visual Studio Code (if not present)
- Claude Code extension for VSCode
- All prerequisites from CLI installation
After installation completes:
- Restart your terminal (PowerShell, CMD, or Git Bash)
- Restart VSCode if it was already running
- Run
claudein your terminal to start using Claude Code CLI - Open VSCode and the Claude Code extension should be available
Detailed logs are saved to: %TEMP%\ClaudeCodeInstaller.log
Issue: "This installer requires administrator privileges"
- Solution: Right-click the installer and select "Run as Administrator"
Issue: claude command not found after installation
- Solution: Close and reopen your terminal to refresh environment variables
Issue: Git Bash path not detected
- Solution: Check installation log for the detected path. Manually set if needed:
$env:CLAUDE_CODE_GIT_BASH_PATH="C:\Program Files\Git\bin\bash.exe"
To sign the executable for enterprise distribution:
# Using your company's code signing certificate
signtool sign /f "path\to\certificate.pfx" /p "password" /tr http://timestamp.digicert.com /td sha256 /fd sha256 "build\ClaudeCodeInstaller.exe"Edit Install-ClaudeCode.ps1 and modify the $Script:Config section:
$Script:Config = @{
GitInstallerUrl = "..." # Update to specific Git version
VSCodeInstallerUrl = "..." # Update to specific VSCode version
LocalBinPath = "..." # Change default bin path
# ... more options
}- Create or obtain a
.icofile (see ICON-GUIDE.md for detailed instructions) - Save it as
InterWorks-Logo.icoin the installer directory - Build the installer - the icon will be automatically included
Or specify a custom path:
.\Build-Installer.ps1 -IconFile ".\path\to\your-logo.ico"For detailed icon creation instructions, see ICON-GUIDE.md
Update the build script with your company information:
Company = "Your Company Name"
Product = "Claude Code Installer"
Copyright = "Copyright © $(Get-Date -Format yyyy) Your Company"Test the installer in these scenarios:
- Fresh Windows 11 VM with no prerequisites
- Machine with Git already installed
- Machine with VSCode already installed
- Machine with both Git and VSCode installed
- Machine with Node.js not installed
- Silent installation mode
- Non-administrator user (should show error)
-
Install-ClaudeCode.ps1: Main installer script
- Prerequisite checking
- Component installation
- Environment configuration
- User interface
-
Build-Installer.ps1: Build automation
- Packages PowerShell into EXE
- Sets executable metadata
- Handles versioning
┌─────────────────────────────────────┐
│ Check Administrator Privileges │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Show Menu / Parse Parameters │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Check & Install Git for Windows │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Configure Git Bash Path │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Add Local Bin to PATH │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Install Selected Components: │
│ • Claude CLI (via npm) │
│ • VSCode (if needed) │
│ • Claude Extension │
└───────────────┬─────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Show Completion Message │
└─────────────────────────────────────┘
This installer is provided as-is for internal company use. Ensure compliance with licenses for all installed components:
- Git for Windows: GPL v2
- Visual Studio Code: Microsoft Software License
- Claude Code: Anthropic's terms of service
For issues or questions:
- Check the installation log at
%TEMP%\ClaudeCodeInstaller.log - Review the troubleshooting section above
- Contact your IT support team
- Report bugs to the installer maintainer
- Interactive installation menu
- CLI and VSCode extension support
- Automatic Git for Windows installation
- PATH configuration
- Comprehensive logging