# memstechtips/winhance architecture

> Architecture diagram of the GitHub repository memstechtips/winhance, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/memstechtips/winhance
- Repository: https://github.com/memstechtips/winhance

## Overview

Winhance is a Windows 10/11 enhancement utility for managing apps, applying system optimizations and customizations, and preparing Windows installation media. The user works through the UI to select actions; settings are prepared for compatibility and localization, then applied through infrastructure services. Configuration import/export and review, software management, and advanced ISO and unattended-install tools are distinct capability branches. The README documents the product workflows; source excerpts confirm setting preparation, dependency handling, power queries, and OSCDIMG setup. Other internal links are omitted where implementation was not sampled.

Main entry points: [`src/Winhance.UI/Features/AdvancedTools/WimUtilPage.xaml.cs`](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/AdvancedTools/WimUtilPage.xaml.cs) (WIMUtil interface), [`src/Winhance.Infrastructure/Features/AdvancedTools/Services/IsoService.cs`](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/IsoService.cs) (ISO creation), [`src/Winhance.Core/Features/Common/Services/DependencyManager.cs`](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Services/DependencyManager.cs) (Setting dependencies), [`src/Winhance.UI/App.xaml.cs`](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/App.xaml.cs) (Winhance app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_application["Winhance app<br/>[App.xaml.cs]"]
  node_settings_ui["Settings interface"]
end

subgraph group_settings["Settings and configuration"]
  node_setting_prep["Setting preparation"]
  node_setting_defs["Setting definitions"]
  node_dependency["Setting dependencies"]
  node_config["Configuration files"]
  node_config_review["Config review"]
end

subgraph group_system["Windows management"]
  node_setting_apply["Setting application"]
  node_power_query["Power settings query"]
  node_customize["Windows customization"]
  node_power["Power optimization<br/>[PowerService.cs]"]
  node_updates["Update settings<br/>[UpdateService.cs]"]
end

subgraph group_apps["Software management"]
  node_windows_apps["Windows apps and features"]
  node_external_apps["External app catalog"]
  node_app_status["App discovery"]
  node_app_download["App downloads"]
  node_win_get["WinGet integration"]
end

subgraph group_advanced["Advanced tools"]
  node_autounattend["Unattended XML"]
  node_wim_page["WIMUtil interface"]
  node_wim["WIM customization"]
  node_iso["ISO creation<br/>[IsoService.cs]"]
  node_oscdimg["OSCDIMG manager"]
end

node_user(("Windows user"))
node_windows["Windows system"]
node_install_media["Windows installation media"]

node_user -->|"uses"| node_application
node_application -.->|"presents"| node_settings_ui
node_settings_ui -.->|"prepares"| node_setting_prep
node_setting_prep -->|"localizes"| node_setting_defs
node_dependency -->|"checks dependencies"| node_setting_defs
node_dependency -->|"applies prerequisites"| node_setting_apply
node_setting_apply -.->|"changes settings"| node_windows
node_power_query -.->|"queries power state"| node_windows
node_user -->|"saves or imports"| node_config
node_user -.->|"reviews"| node_config_review
node_user -->|"manages apps"| node_windows_apps
node_user -->|"selects apps"| node_external_apps
node_user -->|"customizes Windows"| node_customize
node_user -->|"optimizes Windows"| node_power
node_user -->|"configures updates"| node_updates
node_user -->|"creates answer file"| node_autounattend
node_user -->|"uses WIMUtil"| node_wim_page
node_wim_page -.->|"customizes image"| node_wim
node_wim_page -.->|"creates ISO"| node_iso
node_iso -.->|"uses tooling"| node_oscdimg
node_iso -.->|"produces"| node_install_media

click node_application "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/App.xaml.cs"
click node_settings_ui "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Optimize/ViewModels/BaseSettingsFeatureViewModel.cs"
click node_setting_prep "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Common/Services/SettingPreparationPipeline.cs"
click node_setting_defs "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Models/SettingDefinition.cs"
click node_dependency "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Services/DependencyManager.cs"
click node_setting_apply "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Common/Services/SettingApplicationService.cs"
click node_power_query "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Common/Services/PowerSettingsQueryService.cs"
click node_config "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Models/UnifiedConfigurationFile.cs"
click node_config_review "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Common/Services/ConfigReviewOrchestrationService.cs"
click node_windows_apps "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/SoftwareApps/Models/WindowsAppDefinitions.cs"
click node_external_apps "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/SoftwareApps/Models/ExternalAppDefinitions.OnlineStorageBackup.cs"
click node_app_status "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/SoftwareApps/Services/AppStatusDiscoveryService.cs"
click node_app_download "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/SoftwareApps/Services/DirectDownloadService.cs"
click node_win_get "https://github.com/memstechtips/winhance/blob/main/src/WindowsPackageManager.Interop/WindowsPackageManager/WindowsPackageManagerFactory.cs"
click node_customize "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Customize/Services/WallpaperService.cs"
click node_power "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Optimize/Services/PowerService.cs"
click node_updates "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Optimize/Services/UpdateService.cs"
click node_autounattend "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/AdvancedTools/Services/AutounattendXmlGeneratorService.cs"
click node_wim_page "https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/AdvancedTools/WimUtilPage.xaml.cs"
click node_wim "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/WimCustomizationService.cs"
click node_iso "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/IsoService.cs"
click node_oscdimg "https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/OscdimgToolManager.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_settings_ui,node_user toneBlue
class node_setting_prep,node_setting_defs,node_dependency,node_config,node_config_review toneAmber
class node_setting_apply,node_power_query,node_customize,node_power,node_updates toneMint
class node_windows_apps,node_external_apps,node_app_status,node_app_download,node_win_get toneRose
class node_autounattend,node_wim_page,node_wim,node_iso,node_oscdimg,node_windows,node_install_media toneIndigo
```

## Components

### User interface

- [Winhance app](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/App.xaml.cs): `src/Winhance.UI/App.xaml.cs`
- [Settings interface](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Optimize/ViewModels/BaseSettingsFeatureViewModel.cs): `src/Winhance.UI/Features/Optimize/ViewModels/BaseSettingsFeatureViewModel.cs`

### Settings and configuration

- [Setting preparation](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Common/Services/SettingPreparationPipeline.cs): `src/Winhance.UI/Features/Common/Services/SettingPreparationPipeline.cs`
- [Setting definitions](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Models/SettingDefinition.cs): `src/Winhance.Core/Features/Common/Models/SettingDefinition.cs`
- [Setting dependencies](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Services/DependencyManager.cs): `src/Winhance.Core/Features/Common/Services/DependencyManager.cs`
- [Configuration files](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/Common/Models/UnifiedConfigurationFile.cs): `src/Winhance.Core/Features/Common/Models/UnifiedConfigurationFile.cs`
- [Config review](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/Common/Services/ConfigReviewOrchestrationService.cs): `src/Winhance.UI/Features/Common/Services/ConfigReviewOrchestrationService.cs`

### Windows management

- [Setting application](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Common/Services/SettingApplicationService.cs): `src/Winhance.Infrastructure/Features/Common/Services/SettingApplicationService.cs`
- [Power settings query](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Common/Services/PowerSettingsQueryService.cs): `src/Winhance.Infrastructure/Features/Common/Services/PowerSettingsQueryService.cs`
- [Windows customization](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Customize/Services/WallpaperService.cs): `src/Winhance.Infrastructure/Features/Customize/Services/WallpaperService.cs`
- [Power optimization](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Optimize/Services/PowerService.cs): `src/Winhance.Infrastructure/Features/Optimize/Services/PowerService.cs`
- [Update settings](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/Optimize/Services/UpdateService.cs): `src/Winhance.Infrastructure/Features/Optimize/Services/UpdateService.cs`

### Software management

- [Windows apps and features](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/SoftwareApps/Models/WindowsAppDefinitions.cs): `src/Winhance.Core/Features/SoftwareApps/Models/WindowsAppDefinitions.cs`
- [External app catalog](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Core/Features/SoftwareApps/Models/ExternalAppDefinitions.OnlineStorageBackup.cs): `src/Winhance.Core/Features/SoftwareApps/Models/ExternalAppDefinitions.OnlineStorageBackup.cs`
- [App discovery](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/SoftwareApps/Services/AppStatusDiscoveryService.cs): `src/Winhance.Infrastructure/Features/SoftwareApps/Services/AppStatusDiscoveryService.cs`
- [App downloads](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/SoftwareApps/Services/DirectDownloadService.cs): `src/Winhance.Infrastructure/Features/SoftwareApps/Services/DirectDownloadService.cs`
- [WinGet integration](https://github.com/memstechtips/winhance/blob/main/src/WindowsPackageManager.Interop/WindowsPackageManager/WindowsPackageManagerFactory.cs): `src/WindowsPackageManager.Interop/WindowsPackageManager/WindowsPackageManagerFactory.cs`

### Advanced tools

- [Unattended XML](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/AdvancedTools/Services/AutounattendXmlGeneratorService.cs): `src/Winhance.UI/Features/AdvancedTools/Services/AutounattendXmlGeneratorService.cs`
- [WIMUtil interface](https://github.com/memstechtips/winhance/blob/main/src/Winhance.UI/Features/AdvancedTools/WimUtilPage.xaml.cs): `src/Winhance.UI/Features/AdvancedTools/WimUtilPage.xaml.cs`
- [WIM customization](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/WimCustomizationService.cs): `src/Winhance.Infrastructure/Features/AdvancedTools/Services/WimCustomizationService.cs`
- [ISO creation](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/IsoService.cs): `src/Winhance.Infrastructure/Features/AdvancedTools/Services/IsoService.cs`
- [OSCDIMG manager](https://github.com/memstechtips/winhance/blob/main/src/Winhance.Infrastructure/Features/AdvancedTools/Services/OscdimgToolManager.cs): `src/Winhance.Infrastructure/Features/AdvancedTools/Services/OscdimgToolManager.cs`

### Other components

- **Windows user**
- **Windows system**
- **Windows installation media**

## Connections

- Windows user → Winhance app: uses (evidence: `README.md`)
- Winhance app → Settings interface: presents
- Settings interface → Setting preparation: prepares
- Setting preparation → Setting definitions: localizes (evidence: `src/Winhance.UI/Features/Common/Services/SettingPreparationPipeline.cs`)
- Setting dependencies → Setting definitions: checks dependencies (evidence: `src/Winhance.Core/Features/Common/Services/DependencyManager.cs`)
- Setting dependencies → Setting application: applies prerequisites (evidence: `src/Winhance.Core/Features/Common/Services/DependencyManager.cs`)
- Setting application → Windows system: changes settings
- Power settings query → Windows system: queries power state
- Windows user → Configuration files: saves or imports (evidence: `README.md`)
- Windows user → Config review: reviews
- Windows user → Windows apps and features: manages apps (evidence: `README.md`)
- Windows user → External app catalog: selects apps (evidence: `README.md`)
- Windows user → Windows customization: customizes Windows (evidence: `README.md`)
- Windows user → Power optimization: optimizes Windows (evidence: `README.md`)
- Windows user → Update settings: configures updates (evidence: `README.md`)
- Windows user → Unattended XML: creates answer file (evidence: `README.md`)
- Windows user → WIMUtil interface: uses WIMUtil (evidence: `README.md`)
- WIMUtil interface → WIM customization: customizes image
- WIMUtil interface → ISO creation: creates ISO
- ISO creation → OSCDIMG manager: uses tooling
- ISO creation → Windows installation media: produces
