# welding-torch/installc architecture

> Architecture diagram of the GitHub repository welding-torch/installc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/welding-torch/installc
- Repository: https://github.com/welding-torch/installc

## Overview

##### Main Components

a) Installer Components:
- Inno Setup Script Engine (indicated by .iss files)
- Installation Wizard UI
- Resource Files (bmp images for wizard)

b) Packaged Components:
- WinLibs Distribution
- MinGW-w64 Toolchain
- GCC Compiler (v13.2.0)
- Environment Variables Manager

##### System Flow and Interactions

Layer 1: User Interface
- Installation Wizard Interface
- Progress Indicators
- Configuration Options

Layer 2: Installer Logic
- Inno Setup Script Engine
- System Checks
- Path Management

Layer 3: Package Management
- File Extraction
- Component Installation
- Environment Variable Configuration

Layer 4: Target System Integration
- Windows Registry
- System PATH
- VS Code Integration Points

##### Key Relationships to Highlight

- Installation Flow:
- User Input → Installer Engine → Package Deployment → System Integration

- Integration Points:
- PATH Variables ↔ VS Code
- GCC Compiler ↔ Code Runner
- MinGW ↔ System Environment

##### Important Notes

- A clear indication of the one-click installation process
- Automatic PATH configuration flow
- VS Code and Code Runner integration points
- Version-specific components (GCC 13.2.0)
- Both C and C++ support paths

##### Technical Details

- WinLibs build specification
- MinGW-w64 integration points
- Environment variable management system
- VS Code extension compatibility layer

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph UI["User Interface Layer"]
        WizardUI["Installation Wizard UI"]:::ui
        ProgressUI["Progress Indicators"]:::ui
        ConfigUI["Configuration Options"]:::ui
    end

    subgraph Installer["Installer Logic Layer"]
        InnoSetup["Inno Setup Script Engine"]:::core
        SysChecks["System Checks"]:::core
        PathMgmt["Path Management"]:::core
    end

    subgraph Packages["Package Management Layer"]
        FileExtract["File Extraction"]:::package
        CompInstall["Component Installation"]:::package
        EnvConfig["Environment Variable Configuration"]:::package
        WinLibs["WinLibs Distribution"]:::package
        MinGW["MinGW-w64 Toolchain"]:::package
        GCC["GCC Compiler v13.2.0"]:::package
    end

    subgraph System["System Integration Layer"]
        Registry["Windows Registry"]:::system
        SysPath["System PATH"]:::system
        VSCode["VS Code Integration"]:::system
        CodeRunner["Code Runner Extension"]:::system
    end

    WizardUI --> InnoSetup
    ProgressUI --> FileExtract
    ConfigUI --> PathMgmt

    InnoSetup --> FileExtract
    InnoSetup --> SysChecks
    SysChecks --> PathMgmt

    FileExtract --> WinLibs
    FileExtract --> MinGW
    FileExtract --> GCC

    CompInstall --> Registry
    EnvConfig --> SysPath
    PathMgmt --> SysPath

    MinGW --> VSCode
    GCC --> CodeRunner
    SysPath --> VSCode

    %% Click Events
    click InnoSetup "https://github.com/welding-torch/installc/blob/main/Cinstaller1.iss"
    click WizardUI "https://github.com/welding-torch/installc/blob/main/c_wizardimage.bmp"
    click WizardUI "https://github.com/welding-torch/installc/blob/main/c_wizardimagesmall.bmp"

    %% Styles
    classDef ui fill:#3498db,stroke:#2980b9,color:white
    classDef core fill:#2ecc71,stroke:#27ae60,color:white
    classDef package fill:#e67e22,stroke:#d35400,color:white
    classDef system fill:#95a5a6,stroke:#7f8c8d,color:white

    %% Legend
    subgraph Legend
        UI_Legend["User Interface"]:::ui
        Core_Legend["Core Components"]:::core
        Package_Legend["Third-party Packages"]:::package
        System_Legend["System Integration"]:::system
    end
```
