# ironmansoftware/psmsi architecture

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

- Interactive diagram: https://gitdiagram.com/ironmansoftware/psmsi
- Repository: https://github.com/ironmansoftware/psmsi
- Video tour (about a minute): https://gitdiagram.com/ironmansoftware/psmsi/video

## Overview

PSMSI is a PowerShell module for authoring Windows MSI installers. Users define installer metadata and nested content with cmdlets; PSMSI converts that model to WiX XML, then invokes WiX compilation and linking tools to produce an MSI. The graph preserves documented capabilities such as selectable features, shortcuts, custom actions, icons, configurable directories, and customized UI. Several command implementations and generator sections were not sampled, so those relationships are included only where the README or SOURCE INDEX supports them.

Main entry points: [`PSMSI/Xml/WixXmlGenerator.cs`](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Xml/WixXmlGenerator.cs) (WiX XML generator), [`PSMSI/NewInstallerCommand.cs`](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerCommand.cs) (New-Installer), [`PSMSI/Wix/light.cs`](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/light.cs) (Light wrapper), [`PSMSI/Wix/Candle.cs`](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/Candle.cs) (Candle wrapper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["PowerShell authoring"]
  node_installer_cmd["New-Installer"]
  node_directory_cmd["Directory cmdlet"]
  node_file_cmd["File cmdlet"]
  node_feature_cmd["Feature cmdlet"]
  node_shortcut_cmd["Shortcut cmdlet"]
  node_action_cmd["Custom-action cmdlet"]
  node_ui_cmd["UI cmdlet"]
end

subgraph group_model["Installer model"]
  node_installer_model["Installer settings<br/>[Installer.cs]"]
  node_directory_model["Directory tree<br/>[Directory.cs]"]
  node_file_model["Install files<br/>[File.cs]"]
  node_feature_model["Selectable features<br/>[Feature.cs]"]
  node_shortcut_model["Shortcuts<br/>[Shortcut.cs]"]
  node_action_model["Custom actions<br/>[CustomAction.cs]"]
  node_ui_model["Installer interface<br/>[UserInterface.cs]"]
  node_icon_model["Installer icons<br/>[Icon.cs]"]
  node_component_model["WiX components<br/>[Component.cs]"]
end

subgraph group_generation["WiX generation"]
  node_xml_generator["WiX XML generator<br/>[WixXmlGenerator.cs]"]
end

subgraph group_toolchain["MSI toolchain"]
  node_candle["Candle wrapper<br/>[Candle.cs]"]
  node_light["Light wrapper<br/>[light.cs]"]
  node_tool_result["Tool result<br/>[ToolResult.cs]"]
end

node_user(("Installer author"))
node_wix_candle["WiX Candle"]
node_wix_light["WiX Light"]
node_msi["MSI package"]

node_user -->|"authors installer"| node_installer_cmd
node_user -->|"defines directories"| node_directory_cmd
node_user -->|"selects files"| node_file_cmd
node_user -->|"defines features"| node_feature_cmd
node_user -->|"defines shortcuts"| node_shortcut_cmd
node_user -->|"defines actions"| node_action_cmd
node_user -->|"customizes interface"| node_ui_cmd
node_installer_cmd -->|"builds settings"| node_installer_model
node_installer_cmd -->|"generates XML"| node_xml_generator
node_installer_cmd -->|"compiles source"| node_candle
node_installer_cmd -->|"links object"| node_light
node_directory_cmd -->|"creates model"| node_directory_model
node_file_cmd -->|"creates model"| node_file_model
node_feature_cmd -->|"creates model"| node_feature_model
node_shortcut_cmd -->|"creates model"| node_shortcut_model
node_action_cmd -->|"creates model"| node_action_model
node_ui_cmd -->|"creates model"| node_ui_model
node_xml_generator -->|"reads settings"| node_installer_model
node_xml_generator -->|"renders directories"| node_directory_model
node_xml_generator -->|"renders files"| node_file_model
node_xml_generator -->|"renders features"| node_feature_model
node_xml_generator -->|"renders shortcuts"| node_shortcut_model
node_xml_generator -->|"renders actions"| node_action_model
node_xml_generator -->|"renders interface"| node_ui_model
node_xml_generator -->|"renders icons"| node_icon_model
node_xml_generator -->|"renders components"| node_component_model
node_candle -->|"runs compiler"| node_wix_candle
node_candle -->|"returns status"| node_tool_result
node_light -.->|"runs linker"| node_wix_light
node_light -->|"returns status"| node_tool_result
node_light -.->|"produces package"| node_msi

click node_installer_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerCommand.cs"
click node_directory_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerDirectoryCommand.cs"
click node_file_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerFileCommand.cs"
click node_feature_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerFeatureCommand.cs"
click node_shortcut_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerShortcutCommand.cs"
click node_action_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerCustomActionCommand.cs"
click node_ui_cmd "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerUserInterface.cs"
click node_installer_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Installer.cs"
click node_directory_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Directory.cs"
click node_file_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/File.cs"
click node_feature_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Feature.cs"
click node_shortcut_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Shortcut.cs"
click node_action_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/CustomAction.cs"
click node_ui_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/UserInterface.cs"
click node_icon_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Icon.cs"
click node_component_model "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Component.cs"
click node_xml_generator "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Xml/WixXmlGenerator.cs"
click node_candle "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/Candle.cs"
click node_light "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/light.cs"
click node_tool_result "https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/ToolResult.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_installer_cmd,node_directory_cmd,node_file_cmd,node_feature_cmd,node_shortcut_cmd,node_action_cmd,node_ui_cmd toneBlue
class node_installer_model,node_directory_model,node_file_model,node_feature_model,node_shortcut_model,node_action_model,node_ui_model,node_icon_model,node_component_model toneAmber
class node_xml_generator toneMint
class node_candle,node_light,node_tool_result toneRose
class node_user,node_wix_candle,node_wix_light,node_msi toneIndigo
```

## Components

### PowerShell authoring

- [New-Installer](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerCommand.cs): `PSMSI/NewInstallerCommand.cs`
- [Directory cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerDirectoryCommand.cs): `PSMSI/NewInstallerDirectoryCommand.cs`
- [File cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerFileCommand.cs): `PSMSI/NewInstallerFileCommand.cs`
- [Feature cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerFeatureCommand.cs): `PSMSI/NewInstallerFeatureCommand.cs`
- [Shortcut cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerShortcutCommand.cs): `PSMSI/NewInstallerShortcutCommand.cs`
- [Custom-action cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerCustomActionCommand.cs): `PSMSI/NewInstallerCustomActionCommand.cs`
- [UI cmdlet](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/NewInstallerUserInterface.cs): `PSMSI/NewInstallerUserInterface.cs`

### Installer model

- [Installer settings](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Installer.cs): `PSMSI/Models/Installer.cs`
- [Directory tree](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Directory.cs): `PSMSI/Models/Directory.cs`
- [Install files](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/File.cs): `PSMSI/Models/File.cs`
- [Selectable features](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Feature.cs): `PSMSI/Models/Feature.cs`
- [Shortcuts](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Shortcut.cs): `PSMSI/Models/Shortcut.cs`
- [Custom actions](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/CustomAction.cs): `PSMSI/Models/CustomAction.cs`
- [Installer interface](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/UserInterface.cs): `PSMSI/Models/UserInterface.cs`
- [Installer icons](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Icon.cs): `PSMSI/Models/Icon.cs`
- [WiX components](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Models/Component.cs): `PSMSI/Models/Component.cs`

### WiX generation

- [WiX XML generator](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Xml/WixXmlGenerator.cs): `PSMSI/Xml/WixXmlGenerator.cs`

### MSI toolchain

- [Candle wrapper](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/Candle.cs): `PSMSI/Wix/Candle.cs`
- [Light wrapper](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/light.cs): `PSMSI/Wix/light.cs`
- [Tool result](https://github.com/ironmansoftware/psmsi/blob/main/PSMSI/Wix/ToolResult.cs): `PSMSI/Wix/ToolResult.cs`

### Other components

- **Installer author**
- **WiX Candle**
- **WiX Light**
- **MSI package**

## Connections

- Installer author → New-Installer: authors installer (evidence: `README.md`)
- Installer author → Directory cmdlet: defines directories (evidence: `README.md`)
- Installer author → File cmdlet: selects files (evidence: `README.md`)
- Installer author → Feature cmdlet: defines features (evidence: `README.md`)
- Installer author → Shortcut cmdlet: defines shortcuts (evidence: `README.md`)
- Installer author → Custom-action cmdlet: defines actions (evidence: `README.md`)
- Installer author → UI cmdlet: customizes interface (evidence: `README.md`)
- New-Installer → Installer settings: builds settings (evidence: `PSMSI/NewInstallerCommand.cs`)
- New-Installer → WiX XML generator: generates XML (evidence: `PSMSI/NewInstallerCommand.cs`)
- New-Installer → Candle wrapper: compiles source (evidence: `PSMSI/NewInstallerCommand.cs`)
- New-Installer → Light wrapper: links object (evidence: `PSMSI/NewInstallerCommand.cs`)
- Directory cmdlet → Directory tree: creates model (evidence: `PSMSI/NewInstallerDirectoryCommand.cs`)
- File cmdlet → Install files: creates model (evidence: `PSMSI/NewInstallerFileCommand.cs`)
- Feature cmdlet → Selectable features: creates model (evidence: `PSMSI/NewInstallerFeatureCommand.cs`)
- Shortcut cmdlet → Shortcuts: creates model (evidence: `PSMSI/NewInstallerShortcutCommand.cs`)
- Custom-action cmdlet → Custom actions: creates model (evidence: `PSMSI/NewInstallerCustomActionCommand.cs`)
- UI cmdlet → Installer interface: creates model (evidence: `PSMSI/NewInstallerUserInterface.cs`)
- WiX XML generator → Installer settings: reads settings (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Directory tree: renders directories (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Install files: renders files (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Selectable features: renders features (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Shortcuts: renders shortcuts (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Custom actions: renders actions (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Installer interface: renders interface (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → Installer icons: renders icons (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- WiX XML generator → WiX components: renders components (evidence: `PSMSI/Xml/WixXmlGenerator.cs`)
- Candle wrapper → WiX Candle: runs compiler (evidence: `PSMSI/Wix/Candle.cs`)
- Candle wrapper → Tool result: returns status (evidence: `PSMSI/Wix/Candle.cs`)
- Light wrapper → WiX Light: runs linker
- Light wrapper → Tool result: returns status (evidence: `PSMSI/Wix/light.cs`)
- Light wrapper → MSI package: produces package
