# RaggieSoft Installer Studio — Complete `.rsip`, `.rsis` & `.rsii` Reference (v0.10.0) Generated deterministically by `RaggieSoft Installer Studio (instbuild.exe 0.10.0) --emit-ai-spec`. ## 1. Architectural Rules & AI Pre-Flight Checklist 1. **Native MSI, MSM, MST, MSP & LZMS SetupWizard.exe Output**: Calls `msiquery.h` (`msi.lib`), `fci.h`/`fdi.h`, and `COMPRESS_ALGORITHM_LZMS` (`Cabinet.lib`) directly from static `/MT` C++20. 2. **100% White-Label Attribution (`Community == Architect`)**: Visible dialogs and `Setup.exe` `VERSIONINFO` use `[Package] Manufacturer` and `Name` exclusively; `RaggieSoft Installer Studio (instbuild.exe 0.10.0)` is recorded solely in MSI `SummaryInformation` `PID_APPNAME`. 3. **3-Part MSI Version Rule**: `[Package] Version` MUST use 3-part `Major.Minor.Build` format (`0..255.0..255.0..65535`, e.g., `1.2.0` — never a 4-part `1.2.0.0` string). 4. **Uppercase Braced `UpgradeCode` GUID**: `[Package] UpgradeCode` MUST be a permanent `{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}` GUID kept identical across all releases of the same product. 5. **Mandatory `&` Keyboard Mnemonics**: Custom interactive labels (`[UI] InstallButtonText = &Install`, `FinishLaunchCheckbox = &Launch app`) MUST include `&` for WCAG 2.2 AA keyboard access. 6. **Microsoft Component Rules (`RSW031` & `RSW032`)**: Every `[Payload.*]` assigned to an explicit `[Component.]` must share one destination directory (`RSW031`), and components targeting per-user folders (`AppDataFolder`, `LocalAppDataFolder`, `StartMenu`, `Desktop`) must use `KeyPathKind = registry` (`HKCU`, `RSW032`). 7. **Pre-MSI `[Prerequisite.]` & Zero-DLL `[SqlScript.]` / `sql.*` Execution**: Runtimes (`DotNet11Desktop`, `DotNet11AspNet`, `DotNet11Runtime`, `DotNet10Desktop`, `DotNet10AspNet`, `DotNet10Runtime`, `DotNet9Desktop`, `DotNet9AspNet`, `DotNet9Runtime`, `DotNet8Desktop`, `DotNet8AspNet`, `DotNet8Runtime`, `EdgeWebView2`, `VcRedist2026`, `VcRedist2022`, or `Custom`) execute BEFORE `msiexec` under a single UAC prompt (`download`, `embedded` LZMS, or `side-by-side` `Redist\`) and latch `RebootExitCodes` (`3010, 1641, 23`). Database schema migrations (`[SqlScript.]` and RaggieScript `sql.*`) dynamically load OS-resident `System32\winsqlite3.dll` and `System32\odbc32.dll` (`PostgreSQL`, `MariaDB`, `SQL Server`, `Firebird`, `DB2`) with automatic `SQL_ROLLBACK` and zero bundled 3rd-party DLLs. 8. **64-Bit Silicon & `PID_TEMPLATE` Rules (`x64;1033` vs `Arm64;1033` — Zero `IA-64` / `x86` Host Builds)**: Host toolchain & outer Universal `Setup.exe` stubs are strictly 64-bit (`IMAGE_FILE_MACHINE_AMD64` `0x8664` outer stub using `IsWow64Process2` to pierce Windows 11 Prism and dispatch native `ARM64` `0xAA64` vs `x64` `0x8664`). MSI `SummaryInformation` `PID_TEMPLATE` MUST strictly use `x64;1033` (AMD64/Intel 64-bit) or `Arm64;1033` (64-bit ARM)—NEVER `Intel64;1033` (deceased IA-64 Itanium!). 9. **Multi-Engine Packaging (`v0.9` `PackageKind = msi|msm|sfx|addon|suite`, `Engine = msi|raggiescript`, `RsPatch.exe` & `RsUpdate.exe`)**: Build enterprise `.msi` databases (including `[Upgrade]` Major/Minor/Small servicing, `[Media]` multi-volume `CAB1.cab..CABN.cab` spanning, `Compression = none` loose source media, `msiexec /a` administrative installs, and `.rswpak` `Delivery = ondemand` feature packs), lightweight self-extracting archives (`PackageKind = sfx` with selectable UAC `RequestedExecutionLevel`), **Host-Aware Add-On / Content Pack Installers (`PackageKind = addon` + `[HostApp]`)** unlocked in ALL 4 Editions for books/albums/plugins, zero-MSI **RaggieScript EXE** (`Engine = raggiescript`) direct transactional setups with retired-file pruning & `RsPatch.exe` `msdelta.dll` `.rswpatch` deltas, `RsUpdate.exe` DRY `apps-manifest.json` client updates, or **Unified Suite & Web Workload Setups (`PackageKind = suite`, `Delivery = embedded|side-by-side|web`, `SuiteRollbackPolicy = rollback_new`, `RollbackBoundary`, & dynamic `ARPSYSTEMCOMPONENT` adoption)**. 10. **Lossless AST Comments & Clean-Room Importer Guard (`RSG001`)**: `;` and `#` comments plus `@include` directives survive `InstallerStudio.exe` GUI edits and `instbuild.exe --fix` byte-for-byte. Clean-Room importers accept ONLY documented OS/ISO standards (`.msi`, `.msm`, `.slnx`, `.csproj`, `.vcxproj`, `.vbp`) and permissive open-source scripts (`.iss`, `.nsi`, `.wxs`), fatally blocking all proprietary 3rd-party commercial formats via `RSG001` (`Exit Code 2`). ## 2. Complete `.rsip` Project Schema (`v0.9`) ### `[Package]` (*Required*) Core product identity, PackageKind (msi/msm/sfx/addon/suite), Engine (msi/raggiescript-msi/raggiescript), Script (.rssc), UAC execution level, SuiteRollbackPolicy, target CPU architecture (x64/arm64), and universal output settings. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `SchemaVersion` | `string` | No | `1.0` | Manifest grammar version (`1.0`). | | `Name` | `string` | **Yes** | — | Consumer-facing ProductName written to MSI Property table and VERSIONINFO. | | `Version` | `msi_version (Major.Minor.Build)` | **Yes** | — | Three-part Windows Installer version (`Major.Minor.Build`, max `255.255.65535`). | | `Manufacturer` | `string` | **Yes** | — | Publisher name written to MSI `Manufacturer` property and VERSIONINFO `CompanyName`. | | `UpgradeCode` | `guid ({XXXXXXXX-...})` | **Yes** | — | Permanent `{GUID}` shared across all releases of this product for Major Upgrades and UUIDv5 seeding. | | `ProductCode` | `guid_or_auto ('*' or {GUID})` | No | `*` | `*` generates a fresh ProductCode GUID on each build, or specify an explicit `{GUID}`. | | `Description` | `string` | No | — | Summary Information description and Setup.exe `FileDescription`. | | `Language` | `integer` | No | `1033` | Numeric Windows LCID (`1033` = English - United States). | | `Architecture` | `enum` | No | `arm64` | Allowed: `x64|arm64`. Target silicon (`x64` -> `x64;1033`, `arm64` -> `Arm64;1033`). Overridable via `--arch=`. | | `Scope` | `enum` | No | `machine` | Allowed: `machine|user`. `machine` (`ALLUSERS=1`, `ProgramFiles64Folder`) or `user` (per-user `LocalAppDataFolder`, zero UAC). | | `OutputName` | `string` | No | — | Base filename stem (supports `$(ARCH)`); defaults to `-$(ARCH)`. | | `OutputDir` | `path (supports $(ARCH))` | No | `out` | Output folder for `.msi` and `-setup.exe` (relative to `.rsip` folder or absolute). | | `BuildBootstrapper` | `bool (true|false)` | No | `true` | When `true`, emits branded `-setup.exe` embedding `Product.msi` alongside the standalone `.msi`. | | `CabinetCompression` | `enum` | No | `lzx` | Allowed: `lzx|mszip`. Compression algorithm for embedded `#payload.cab` (`lzx` = high-ratio LZX:21, `mszip` = fast DEFLATE). | | `HideFromInstalledApps` | `bool (true|false)` | No | `false` | Sets `ARPSYSTEMCOMPONENT=1` so content micro-installers do not clutter Windows Installed Apps. | | `AboutUrl` | `string` | No | — | Optional support/product website URL written to `ARPURLINFOABOUT`. | | `PackageKind` | `enum` | No | `msi` | Allowed: `msi|msm|sfx|addon|suite`. `msi` builds an Enterprise `.msi` (+ optional `-setup.exe`), `msm` builds a Merge Module (`.msm`), `sfx` builds a lightweight LZMS Self-Extracting `.exe`, `addon` builds a Host-Aware Add-On / Content Pack Installer (`[HostApp]` locates the parent app and drops books/albums/plugins directly into its library directory), and `suite` builds a single-UAC Unified Suite / Web Workload Chainer. | | `SuiteRollbackPolicy` | `enum` | No | `rollback_new` | Allowed: `keep_completed|rollback_new`. Controls failure & cancel recovery in `PackageKind = suite`: `rollback_new` (default) automatically uninstalls packages newly added in the current Suite session (up to the last `RollbackBoundary = true` savepoint on unexpected error, or 100% of session additions when the user confirms Cancel); `keep_completed` leaves already-finished member packages installed for fast resume. | | `Engine` | `enum` | No | `msi` | Allowed: `msi|raggiescript-msi|raggiescript|native`. `msi` uses Microsoft Windows Installer (`msi.dll`); `raggiescript-msi` builds a **RaggieScript MSI** hybrid installer combining a relational `Product.msi` (+ static `/MT` `RsscMsiCa.dll` inside-the-MSI Custom Actions for `msiexec /qn` GPO/Intune parity) with RaggieScript `.rssc` wizard & property/feature orchestration; `raggiescript` (alias `native`) builds a **RaggieScript EXE** zero-`msi.dll` transactional LZMS installer. | | `Script` | `path (supports $(ARCH))` | No | — | Optional RaggieScript source file (`setup.rssc`) driving wizard steps, property/feature bridging, and `[CustomAction.*]` functions when `Engine = raggiescript-msi`. | | `RequestedExecutionLevel` | `enum` | No | `asInvoker` | Allowed: `asInvoker|highestAvailable|requireAdministrator`. Controls Windows UAC level stamped onto PE `RT_MANIFEST` `#1` across `msi`, `native`, `sfx`, and `suite` EXEs: `asInvoker` (default — un-elevated launch; prompts UAC only if per-machine install begins), `highestAvailable` (elevates upfront for Admins while letting Standard Users run), or `requireAdministrator` (requires Admin UAC immediately at `0.0s` launch). | | `BuildUniversal` | `bool (true|false)` | No | `false` | When `true` (or when `--universal` is passed to `instbuild.exe`), compiles both `x64` and `arm64` editions and emits `-offline-setup.exe` plus `-setup.exe`. | | `UniversalOutputName` | `string` | No | — | Optional base filename stem for universal combined installers; defaults to `OutputName` stripped of `-$(ARCH)`. | | `UniversalDownloadBaseUrl` | `string` | No | — | Optional HTTPS folder URL hosting `-x64-setup.exe`, `-arm64-setup.exe`, and `.rswpak` feature packs. | | `Tagline` | `string` | No | — | Short subtitle displayed beneath the product title in `SetupWizard.exe` and `InstallerStudio.exe`. | | `WebsiteLabel` | `string` | No | — | Optional domain badge shown in the setup wizard footer (left blank if omitted — 100% white-label!). | ### `[BuildHook]` (*Optional*) Optional Opt-In pre-packaging build command ([BuildHook] Enabled = false) emitted by Clean-Room Visual Studio/CMake importers; never executes arbitrary shell commands during --validate unless explicitly opted in. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Enabled` | `bool (true|false)` | No | `false` | Must be explicitly set to `true` before `instbuild.exe --run-build-hook` executes `Command` (`false` by default so AI agents and `--validate` stay 100% side-effect-free). | | `Command` | `string` | No | — | Pre-packaging compiler command (`dotnet publish`, `msbuild`, `cmake --build`) run when `Enabled = true` and `--run-build-hook` is passed. | | `WorkingDir` | `path (supports $(ARCH))` | No | — | Optional working directory for `Command` (defaults to `.rsip` directory). | ### `[RaggieScript]` (*Optional*) Optional RaggieScript (.rssc) configuration ([RaggieScript] Source = setup.rssc) for RaggieScript MSI (Engine = raggiescript-msi) wizard orchestration and inside-the-MSI Custom Actions. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Source` | `path (supports $(ARCH))` | No | — | RaggieScript source file (`setup.rssc`) compiled into `Setup.exe` (`#225`) and/or `Product.msi` (`Binary.RsscBytecode`). | ### `[CustomAction.]` (*Optional*) Declares a native inside-the-MSI RaggieScript Custom Action ([CustomAction.]: immediate, deferred, rollback, or commit) executed via embedded static /MT RsscMsiCa.dll with full msiexec /qn GPO parity and atomic rollback. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Type` | `enum` | No | `raggiescript` | Allowed: `raggiescript`. Custom Action engine (`raggiescript` executes via zero-dependency static `/MT` `RsscMsiCa.dll` embedded in `Product.msi`'s `Binary` table). | | `Function` | `string` | **Yes** | — | Top-level RaggieScript `fn ()` invoked inside `Product.msi` when this Custom Action runs. | | `RollbackFunction` | `string` | No | — | Optional companion `fn ()` invoked after automatic `.jnl` LIFO rollback if `msiexec` aborts after a `deferred` Custom Action. | | `Execution` | `enum` | No | `immediate` | Allowed: `immediate|deferred|rollback|commit`. Windows Installer execution phase: `immediate` (live `MSIHANDLE` properties & feature states), `deferred` (elevated/impersonated inside transaction with `CustomActionData` & automatic rollback pairing), `rollback`, or `commit`. | | `Impersonate` | `bool (true|false)` | No | `false` | When `false` (default on `deferred`), sets `msidbCustomActionTypeNoImpersonate` (`0x0800`) to run under elevated `SYSTEM` privileges during per-machine installs; `true` impersonates the launching user. | | `After` | `string` | No | `InstallFiles` | Schedules this Custom Action immediately after a standard MSI action (`LaunchConditions`, `CostFinalize`, `InstallInitialize`, `InstallFiles`, `WriteRegistryValues`, `InstallFinalize`). | | `Before` | `string` | No | — | Schedules this Custom Action immediately before a standard MSI action (overrides `After` when set). | | `Sequence` | `integer` | No | `0` | Optional explicit `InstallExecuteSequence` number (`> 0` overrides `After`/`Before`). | | `Condition` | `string` | No | `NOT REMOVE~="ALL"` | Windows Installer conditional expression gating when this Custom Action runs (use `""` or `1` to run on both install and uninstall). | ### `[SqlScript.]` (*Optional*) Zero-DLL SQLite (System32\winsqlite3.dll) or ODBC (System32\odbc32.dll: PostgreSQL, MariaDB, MySQL, SQL Server, Firebird, InterBase, DB2) schema migration script ([SqlScript.]) with automatic transaction rollback on failure. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Engine` | `enum` | No | `sqlite` | Allowed: `sqlite|odbc`. `sqlite` executes via OS-resident `System32\winsqlite3.dll`; `odbc` executes via OS-resident `System32\odbc32.dll` against PostgreSQL, MariaDB/MySQL, SQL Server, Firebird, InterBase, or DB2. | | `Target` | `string` | **Yes** | — | For `Engine = sqlite`, target database file path (supports `[INSTALLDIR]` / `[CommonAppDataFolder]`); for `Engine = odbc`, standard ODBC connection string (`Driver={PostgreSQL Unicode(x64)};...`). | | `Source` | `path (supports $(ARCH))` | No | — | Optional `.sql` migration file on disk whose contents are executed at install/uninstall time. | | `InlineSql` | `string` | No | — | Optional inline SQL statements executed directly when `Source` is omitted. | | `Phase` | `enum` | No | `install` | Allowed: `install|uninstall|both`. Lifecycle phase when this SQL migration runs (`install`, `uninstall`, or `both`). | | `Transactional` | `bool (true|false)` | No | `true` | Wraps multi-statement execution inside an atomic SQL transaction (`SQL_ROLLBACK` on error). | | `Feature` | `string` | No | `Main` | Optional Feature ID gating execution of this SQL migration. | ### `[HostApp]` (*Optional*) Host application discovery & automatic content placement rules ([HostApp]) for PackageKind = addon (locates an installed Host App such as Book Reader or Listening Room via UpgradeCode/Registry/Executable and places books, albums, plugins, or DLC into the right directory with zero full-installer ceremony). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Name` | `string` | **Yes** | — | Display name of the required parent application (e.g. `RaggieSoft Book Reader` or `The Listening Room`). | | `UpgradeCode` | `guid ({XXXXXXXX-...})` | No | — | Optional `{UpgradeCode}` of the host application probed via MSI `MsiEnumRelatedProductsW` and Windows `Uninstall` Registry. | | `RegistryHive` | `enum` | No | `auto` | Allowed: `auto|HKCU|HKLM`. Registry hive searched for `RegistryKey` (`auto` probes `HKCU` first, then 64-bit `HKLM`). | | `RegistryKey` | `string` | No | — | Optional registry key holding the host install directory (e.g. `Software\RaggieSoft\Book Reader`). | | `RegistryValue` | `string` | No | `Install Path` | Registry value name under `RegistryKey` holding the host install folder (also falls back to `InstallLocation` and `InstallDir`). | | `FallbackSubdir` | `relpath` | No | — | Optional fallback folder relative to `%ProgramFiles%` or `%LOCALAPPDATA%` (e.g. `RaggieSoft\Book Reader`) checked if Registry/MSI keys are absent. | | `Executable` | `relpath` | No | — | Optional executable relative to the detected host folder (e.g. `BookReader.exe`) verified on disk to confirm the host is genuinely installed. | | `ContentTargetRoot` | `enum` | No | `LocalAppData` | Allowed: `HostInstallDir|LocalAppData|CommonAppData|AppData`. Where to place the add-on content once the host is verified: `HostInstallDir` (`\` for plugins/mods/help packs), `LocalAppData` (`%LOCALAPPDATA%\` for zero-UAC per-user books & albums), `CommonAppData` (`%ProgramData%`), or `AppData` (`%APPDATA%`). | | `ContentSubdir` | `relpath` | No | — | Destination subfolder under `ContentTargetRoot` (e.g. `RaggieSoft\Books\cedar-run` or `Plugins\SynthPack`; defaults to `[Install] DefaultSubdir`). | | `DownloadUrl` | `string` | No | — | Optional HTTPS URL opened when the user clicks `&Get Host...` if the required host application is not yet installed. | | `LaunchUri` | `string` | No | — | Optional URI or host CLI argument launched when the user leaves `&Open in ` checked on completion (e.g. `raggiesoft-books://cedar-run`). | | `RefreshArgs` | `string` | No | — | Optional CLI switch passed silently to `Executable` if the host app is already running during add-on installation (e.g. `--refresh-library`). | | `RequireHostInstalled` | `bool (true|false)` | No | `true` | When `true` (default), verifies the host application is installed before unpacking content (returning `1605` in `/s` silent mode or offering `DownloadUrl` interactively if missing). | ### `[Requirements]` (*Optional*) Minimum Windows 11 build gate (RtlGetVersion & MSI LaunchCondition), downgrade protection, and silent reboot exit code. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `MinWindowsBuild` | `integer` | No | `22000` | Minimum Windows 10/11 build number (`22000` = Windows 11 21H2+, matching .NET 10 Desktop Runtime). | | `OsLaunchMessage` | `string` | No | `This application requires Windows 11 (Build 22000) or later.` | Friendly message shown by LaunchCondition / SetupWizard.exe when the host OS is older than MinWindowsBuild. | | `BlockDowngrades` | `bool (true|false)` | No | `true` | Adds a newer-version Upgrade row + LaunchCondition preventing accidental downgrades. | | `SilentRebootExitCode` | `integer` | No | `3010` | Process exit code returned in silent mode (`/s` / `/qn`) when a runtime prerequisite or MSI requests a Windows restart (`3010` standard MSI). | ### `[Upgrade]` (*Optional*) Declarative update & servicing policy ([Upgrade]): Strategy (major|minor|small_hotfix), RemoveExistingProducts Schedule (early 1525 vs late 6550), MigrateFeatures (257), BaselineMsi, and RsUpdate.exe UpdateFeedUrl. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Strategy` | `enum` | No | `major` | Allowed: `major|minor|small_hotfix`. `major` (default, all editions) mints a fresh `ProductCode` per version and runs `RemoveExistingProducts`; `minor` (Architect/Community) preserves `BaselineMsi`'s `ProductCode` for `.MSP` / `REINSTALLMODE=vomus` Minor Upgrades; `small_hotfix` (Architect/Community) preserves both `ProductCode` and `Version` for emergency hotfix `.MSP` patches. | | `Schedule` | `enum` | No | `early` | Allowed: `early|late`. Controls when `RemoveExistingProducts` executes in `InstallExecuteSequence`: `early` (`Sequence = 1525`, right after `InstallInitialize` — cleanest default) or `late` (`Sequence = 6550`, right before `InstallFinalize` — atomic in-place overwrite). | | `MigrateFeatures` | `bool (true|false)` | No | `true` | When `true` (default), sets `msidbUpgradeAttributesMigrateFeatures` (`0x001` -> `Attributes = 257`) so `MigrateFeatureStates` preserves custom feature selections across Major Upgrades. | | `AllowSameVersion` | `bool (true|false)` | No | `false` | When `true`, sets `msidbUpgradeAttributesVersionMaxInclusive` (`0x200`) on the `Upgrade` table row so rebuilt packages with the same 3-part `Version` and a new `ProductCode` upgrade cleanly. | | `BaselineMsi` | `path (supports $(ARCH))` | No | — | Optional path to the baseline `.msi` (supports `$(ARCH)`) used to inherit `ProductCode` and verify Microsoft Component Rules (`RSW081`–`RSW086`) when `Strategy = minor` or `small_hotfix`. | | `UpdateFeedUrl` | `string` | No | — | Optional HTTPS URL to a `RaggieSoft Launcher`-compatible `apps-manifest.json` feed written to `\UpdateConfig.json` for `RsUpdate.exe`. | | `UpdateChannel` | `enum` | No | `stable` | Allowed: `stable|preview`. Release channel tag written to `UpdateConfig.json` (`stable` or `preview`). | ### `[Install]` (*Required*) Default installation subfolder under ProgramFiles64Folder/LocalAppDataFolder and Start Menu group (optional when PackageKind = sfx or suite). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `DefaultSubdir` | `relpath` | **Yes** | — | Default target folder path under `ProgramFiles64Folder` (or `LocalAppDataFolder`), e.g. `MyCompany\MyApp`. | | `StartMenuFolder` | `relpath` | No | — | Program Menu subfolder name created when `[Shortcut.*]` targets `StartMenu` (defaults to `[Package] Manufacturer`). | | `MainExecutable` | `relpath` | No | — | Optional primary `.exe` relative to `INSTALLDIR` (used for `ARPPRODUCTICON` default & Finish launch). | ### `[Media]` (*Optional*) Multi-volume cabinet disk spanning (MaxCabinetSizeMB -> CAB1.cab..CABN.cab), external vs. embedded cabinets, and uncompressed loose source media (Compression = none | cab). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Compression` | `enum` | No | `cab` | Allowed: `cab|none`. `cab` compresses payloads into `#payload.cab` or external `CAB1.cab..CABN.cab`; `none` emits uncompressed loose source files (`PID_WORDCOUNT` bit `1` cleared + `msidbFileAttributesNoncompressed` `0x2000`) for Run-from-Media / Network shares. | | `EmbedCabinet` | `bool (true|false)` | No | `true` | When `true` and `MaxCabinetSizeMB = 0` (`MaxCabinetSizeKB = 0`), embeds `#payload.cab` inside `Product.msi`; when `false` or spanning is active, emits external `CAB1.cab..CABN.cab` next to `Product.msi`. | | `MaxCabinetSizeMB` | `integer` | No | `0` | Maximum size in megabytes (`1..2047`) per external cabinet (`CAB1.cab..CABN.cab`) before spanning to the next `DiskId` in the `Media` SQL table (`0` = undivided single cabinet). | | `MaxCabinetSizeKB` | `integer` | No | `0` | Optional fine-grained maximum cabinet size in kilobytes (`>= 32`) before spanning to `CAB2.cab..CABN.cab` (overrides `MaxCabinetSizeMB` when `> 0`). | | `VolumeLabel` | `string` | No | `DISK` | Volume label prefix written to `Media.VolumeLabel` (`DISK1`, `DISK2`, ...). | | `DiskPrompt` | `string` | No | `Please insert [ProductName] Disk [1]` | Change-media prompt written to `Media.DiskPrompt` and `Property.DiskPrompt` (`Error 1302`). | ### `[SFX]` (*Optional*) Lightweight LZMS self-extracting archive (.exe) post-extraction launch (PostExtractRun), document open (PostExtractOpen), temp staging, and folder options (PackageKind = sfx). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `DefaultExtractSubdir` | `relpath` | No | — | Optional default subfolder name created next to the self-extracting `.exe` when `ExtractToTemp = false`. | | `PostExtractRun` | `relpath` | No | — | Optional bundled `.exe` or `.cmd` (relative to the extraction folder) launched automatically after extraction completes. | | `PostExtractArgs` | `string` | No | — | Optional command-line arguments passed when launching `PostExtractRun`. | | `PostExtractOpen` | `relpath` | No | — | Optional bundled document (`.pdf`, `.html`, `.txt`, `.rtf`, etc. relative to extraction folder) opened via `ShellExecuteExW` when a compatible viewer is installed. | | `ExtractToTemp` | `bool (true|false)` | No | `false` | When `true`, defaults extraction to an isolated `%TEMP%\-` temporary directory instead of prompting for a permanent folder. | | `AllowChangeFolder` | `bool (true|false)` | No | `true` | When `true` (default), allows the user to edit or browse the destination folder before clicking `&Extract`. | | `SilentOverwrite` | `bool (true|false)` | No | `true` | When `true`, overwrites existing files in the destination folder without extra prompts. | | `CleanupTempAfterRun` | `bool (true|false)` | No | `false` | Software Installation Self-Extractor mode: when `true` (requires `ExtractToTemp = true` and `PostExtractRun`), waits for the launched setup program and any `WaitForProcess` / child processes to finish, then automatically deletes the temporary `%TEMP%` staging directory. | | `WaitMode` | `enum` | No | `auto` | Allowed: `auto|none|direct|job_tree|process_name`. Controls how `[SFX]` waits for `PostExtractRun` before `%TEMP%` cleanup: `auto` (`job_tree` when `CleanupTempAfterRun = true`, else `none`), `none` (fire-and-forget), `direct` (wait only on initial process), `job_tree` (Win32 Job Object + any active process inside `%TEMP%` + `WaitForProcess`), or `process_name` (wait until all processes matching `WaitForProcess` exit). | | `WaitForProcess` | `string` | No | — | Optional companion/cleanup executable name, wildcard, or semicolon/comma-separated list to wait for before deleting `%TEMP%` staging files (e.g., `_ISDEL.EXE; _INS*._MP; setup-worker.exe`). | | `WaitSpawnGraceMs` | `integer` | No | `1500` | Milliseconds (`0..60000`) after `PostExtractRun` exits during which the self-extractor keeps watching for delayed handoff processes (`WaitForProcess` or `%TEMP%` executables like `_ISDEL.EXE`) before removing temporary files. | | `AutoStartExtract` | `bool (true|false)` | No | `false` | When `true`, starts unpacking to `%TEMP%` and launching `PostExtractRun` immediately on startup without requiring an extra click on `&Extract`. | ### `[UI]` (*Optional*) Branding, RTF license, icon, 11 selectable C++ WizardLayout styles (including 'simple' ultra-compact single-dialog mode, Wizard95, FluentMica, FullScreenBlue & ACME FullScreenTeal), SetupTypePreset, and MSI.DLL dialog workflow. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `LicenseRtf` | `path (supports $(ARCH))` | No | — | Optional `.rtf` license file displayed in Wizard 97 `LicenseAgreementDlg` and `SetupWizard.exe`. | | `IconFile` | `path (supports $(ARCH))` | No | — | Optional `.ico` file embedded into MSI `Icon` table (`ARPPRODUCTICON`) and `Setup.exe` resources. | | `BannerTitle` | `string` | No | — | Optional subtitle displayed in the wizard header bar. | | `WelcomeHeadline` | `string` | No | — | Optional custom headline on the Welcome screen. | | `InstallButtonText` | `accel_string (must include '&')` | No | `&Install` | Accessible primary install button caption; MUST include a `&` keyboard mnemonic. | | `FinishLaunchCheckbox` | `accel_string (must include '&')` | No | `&Launch application when setup finishes` | Accessible finish-screen launch checkbox caption; MUST include a `&` keyboard mnemonic. | | `OfferLaunchOnFinish` | `bool (true|false)` | No | `true` | Shows the optional launch checkbox on the completion screen when `MainExecutable` is set. | | `AllowChangeFolder` | `bool (true|false)` | No | `true` | Controls whether the destination folder box and Browse button are editable in compact / add-on setups (defaults to `false` for `PackageKind = addon`). | | `WizardLayout` | `enum` | No | `standard` | Allowed: `standard|wizard95|wizard97|aerowizard|fluentmica|oneclick|passivetoast|fullscreenblue|fullscreenteal|autorun16x9|simple`. Selects the customer-facing `SetupWizard.exe` style: `simple` (ultra-compact single-dialog `Destination folder` + `[...]` + progress + `&Install`/`&Extract`), `standard` (RaggieSoft Glass), `wizard95` (1995 `#C0C0C0` 3D beveled + left sidebar), `wizard97` (classic top-banner), `aerowizard` (command bar + circular `<-` Back), `fluentmica` (Windows 11 Mica + left step rail), `oneclick` (compact 1-click splash), `passivetoast` (`/passive` progress), `fullscreenblue` (1995 `#000080` Cobalt wash + 3D dialog), `fullscreenteal` (1995 `#008080` Microsoft ACME Teal wash + 3D dialog), or `autorun16x9` (640x480 16:9 launcher). | | `SetupTypePreset` | `enum` | No | `express_custom` | Allowed: `express_custom|win95_classic`. `express_custom` displays Express / Compact / Custom cards; `win95_classic` displays classic 4-option Typical / Compact / Complete / Custom cards (overridden if custom `[SetupType.]` sections are defined). | | `MsiDialogPreset` | `enum` | No | `express_custom` | Allowed: `express_custom|minimal`. `express_custom` builds the full Express / Compact / Custom + SelectionTree + BrowseDlg + Shortcuts + Repair Mode workflow inside MSI.DLL's Dialog table; `minimal` builds a compact 3-screen MSI UI. | | `MsiProgressStyle` | `enum` | No | `standard` | Allowed: `standard|flat`. `standard` (default) sets `msidbControlAttributesProgress95` (`0x10000`) on `ProgressDlg.ProgressBar` so Windows renders a native themed Common Controls progress bar instead of MSI.DLL's legacy flat 2D box; `flat` opts into legacy owner-draw. | | `SystemMenuAbout` | `bool (true|false)` | No | `false` | When `true`, appends an author-branded `About Setup...` item to the top-left `Alt+Space` window System Menu with zero forced third-party watermarks. | | `AccentPrimaryHex` | `string` | No | `#2563EB` | Primary header/button accent hex color (checked against WCAG 2.2 AA contrast in `instbuild.exe --validate`). | | `AccentSecondaryHex` | `string` | No | `#FBBF24` | Secondary gradient accent hex color (e.g. `#FBBF24` Warm Gold, `#10B981` Emerald, `#EC4899` Rose). | | `ArtworkPng` | `path (supports $(ARCH))` | No | — | Optional `.png` 16:9 banner, `164x314` wizard sidebar bitmap, or square product cover rendered inside `SetupWizard.exe`. | | `WelcomeIntro` | `string` | No | — | Optional introductory paragraph displayed on the Welcome page of `SetupWizard.exe`. | | `ReadMeText` | `string` | No | — | Optional edition liner notes or ReadMe summary displayed in the ReadMe view of `autorun16x9` installers. | | `ExpressDescription` | `string` | No | `One-click setup into the default installation folder with recommended shortcuts. Skips extra prompts.` | Helper caption for the Express Setup mode card in `SetupWizard.exe` and MSI `SetupTypeDlg`. | | `CompactDescription` | `string` | No | `Installs essential core application files (`Inclusion = minimal`) with minimal disk footprint.` | Helper caption for the Compact Core Setup mode card in `SetupWizard.exe` and MSI `SetupTypeDlg`. | | `CustomDescription` | `string` | No | `Choose features in the MSI SelectionTree, destination folder, Start Menu group, and shortcuts step by step.` | Helper caption for the Custom Setup mode card in `SetupWizard.exe` and MSI `SetupTypeDlg`. | | `AuthorOrArtist` | `string` | No | — | Optional author or band credit badge displayed in `autorun16x9` book/album micro-installers. | | `ShowComponentProgressBar` | `bool (true|false)` | No | `true` | When `true` (default) in Unified Suite Setup (`PackageKind = suite`), displays a secondary `Current Component` (`0%–100%`) progress bar beneath the monotonic byte-weighted `Overall Suite Progress` (`0%–100%`) bar; Windows Taskbar `ITaskbarList3` always tracks Overall Suite Progress. | ### `[Signing]` (*Optional*) Optional dual-layer Authenticode / Microsoft Azure Artifact Signing (Product.msi first, then outer Setup.exe) via signtool.exe. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Enabled` | `bool (true|false)` | No | `false` | Signs `Product.msi` first, embeds it into `Setup.exe`, and signs `Setup.exe` via `signtool.exe`. | | `Thumbprint` | `string` | No | — | Optional SHA-1 certificate thumbprint in the local Windows Certificate Store. | | `TimestampUrl` | `string` | No | `http://timestamp.acs.microsoft.com` | RFC 3161 Authenticode timestamp server URL. | | `DlibPath` | `path (supports $(ARCH))` | No | — | Optional path to Azure Artifact Signing `Azure.CodeSigning.Dlib.dll`. | | `MetadataJson` | `path (supports $(ARCH))` | No | — | Optional path to Azure Artifact Signing metadata `.json` file. | ### `[SetupType.]` (*Optional*) Custom author-defined setup mode card ([SetupType.]: Typical, Compact, Complete, Developer Workstation, etc.) with '&' mnemonic, description, feature tier, and icon. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Title` | `accel_string (must include '&')` | **Yes** | — | Option card heading; MUST include a `&` keyboard mnemonic (e.g. `&Developer Workstation (Recommended)`). | | `Description` | `string` | No | — | Plain-English description of what this Setup Type installs. | | `Tier` | `enum` | No | `typical` | Allowed: `minimal|typical|complete|custom`. Target feature tier (`minimal` -> `INSTALLLEVEL=20`, `typical` -> `100`, `complete` -> `1000`, or `custom` -> opens `SelectionTree` + folder steps). | | `Features` | `string` | No | — | Optional comma-separated explicit Feature IDs (`ADDLOCAL=Main,Templates`) overriding `Tier`. | | `Glyph` | `enum` | No | `Bolt` | Allowed: `Sparkle|ShieldCheck|Bolt|Cube|Sliders|Blocks|Folder|PinGrid|Play|Gear`. Vector icon badge displayed on this Setup Type card. | | `Recommended` | `bool (true|false)` | No | `false` | Marks this Setup Type as the default pre-selected choice on `WizardPage::SetupType`. | ### `[Billboard.]` (*Optional*) Optional rotating feature highlight card ([Billboard.]) displayed during installation on FullScreenBlue, FullScreenTeal, and progress views. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Headline` | `string` | **Yes** | — | Short feature headline displayed on the rotating billboard card while files copy. | | `Body` | `string` | No | — | Supporting description displayed beneath `Headline` on the billboard card. | | `Glyph` | `enum` | No | `Sparkle` | Allowed: `Sparkle|ShieldCheck|Bolt|Cube|Sliders|Blocks|Folder|PinGrid|Play|Gear`. Vector icon badge rendered on this billboard slide. | ### `[Prerequisite.]` (*Optional*) Runtime prerequisite ([Prerequisite.]: .NET 11, .NET 10 LTS, WebView2, VC++ Redist, or Custom .exe/.msi) executed BEFORE msiexec with download/embedded/side-by-side delivery and reboot exit-code tracking. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Preset` | `enum` | No | `Custom` | Allowed: `Custom|DotNet11Desktop|DotNet11AspNet|DotNet11Runtime|DotNet10Desktop|DotNet10AspNet|DotNet10Runtime|DotNet9Desktop|DotNet9AspNet|DotNet9Runtime|DotNet8Desktop|DotNet8AspNet|DotNet8Runtime|EdgeWebView2|VcRedist2026|VcRedist2022`. One-click curated preset (`DotNet10Desktop`, `DotNet10AspNet`, `DotNet9Desktop`, `DotNet8Desktop`, `EdgeWebView2`, `VcRedist2022`) or `Custom`. | | `Name` | `string` | No | — | Consumer-friendly runtime display name (auto-filled when `Preset` != `Custom`). | | `Distribution` | `enum` | No | `download` | Allowed: `download|embedded|side-by-side`. `download` streams over WinHTTP HTTPS on demand; `embedded` packs `SourceFile` inside `Setup.exe` for offline installs; `side-by-side` reads `Redist\` next to `Setup.exe` (with URL fallback). | | `SourceFile` | `path (supports $(ARCH))` | No | — | Local runtime `.exe` or `.msi` on the build machine (required for `Distribution = embedded`, optional for `side-by-side`, supports `$(ARCH)`). | | `FileName` | `string` | No | — | Runtime installer filename used inside `Redist\` or `%TEMP%` (auto-filled for presets). | | `Url` | `string` | No | — | Architecture-neutral HTTPS download URL (or fallback URL for `side-by-side`). | | `UrlX64` | `string` | No | — | Optional `x64`-specific HTTPS download URL (auto-filled for `aka.ms` presets). | | `UrlArm64` | `string` | No | — | Optional `arm64`-specific HTTPS download URL (auto-filled for `aka.ms` presets). | | `Sha256` | `string` | No | — | Optional expected SHA-256 hex digest verified via `bcrypt.dll` before executing a downloaded runtime. | | `SilentArgs` | `string` | No | — | Command-line switches passed to the runtime installer (auto-filled for presets, e.g. `/install /quiet /norestart`). | | `SuccessExitCodes` | `string` | No | `0, 1638` | Comma-separated exit codes treated as clean success (`0` = OK, `1638` = newer redistributable already installed). | | `RebootExitCodes` | `string` | No | `3010, 1641` | Comma-separated exit codes treated as success WITH a Windows restart requested (`3010`, `1641`, `23`, or any custom vendor codes). | | `DetectRegistryHive` | `enum` | No | `HKLM` | Allowed: `HKLM|HKCU`. Registry hive checked before running a `Custom` prerequisite (`HKLM` or `HKCU`, probed in native 64-bit view). | | `DetectRegistryKey` | `string` | No | — | Optional registry key checked to skip an already-installed `Custom` prerequisite. | | `DetectRegistryValue` | `string` | No | — | Optional registry value name under `DetectRegistryKey` (non-empty / non-zero means installed). | | `DetectMinVersion` | `string` | No | — | Optional minimum dotted version compared against `DetectRegistryValue` or `DetectFilePath`. | | `DetectFilePath` | `string` | No | — | Optional file path (supports `%ProgramW6432%` / `%SystemRoot%`) whose presence/version skips the prerequisite. | | `DetectUpgradeCode` | `guid ({XXXXXXXX-...})` | No | — | Optional MSI `{UpgradeCode}` probed via `MsiEnumRelatedProductsW` to skip an already-installed MSI runtime. | | `RequiresElevation` | `bool (true|false)` | No | `true` | When `true` (default), executes inside the single unified elevated UAC session right before `Product.msi`. | | `Optional` | `bool (true|false)` | No | `false` | When `true`, logs a warning and continues installing `Product.msi` even if this prerequisite fails. | ### `[SuitePackage.]` (*Optional*) Child .msi or RaggieScript EXE setup package ([SuitePackage.]) chained under a single UAC prompt in Unified Suite Setup (PackageKind = suite) with dynamic ARPSYSTEMCOMPONENT adoption. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Name` | `string` | **Yes** | — | Consumer-facing child tool title displayed in the Unified Suite Setup & Maintenance Hub. | | `Description` | `string` | No | — | Plain-English description of this child package in the Suite checklist. | | `Delivery` | `enum` | No | `embedded` | Allowed: `embedded|side-by-side|web`. `embedded` packs the child installer inside the offline Suite `.exe`; `side-by-side` stages verified child packages in `\packages\` for multi-gigabyte DVD/Boxset suites without the 2 GB PE resource limit; `web` downloads selected packages (`DownloadUrl`) via WinHTTP and verifies `Sha256` before installing. | | `Source` | `path (supports $(ARCH))` | No | — | Path to the compiled child `.msi`, `-setup.exe`, or `addon` binary on the build machine (required when `Delivery = embedded`; optional when `Delivery = web` to auto-fill `Sha256` & `FileName`). | | `DownloadUrl` | `string` | No | — | HTTPS (or `file:///`) URL for `Delivery = web` on-demand workload downloading (supports `$(ARCH)` expansion). | | `Sha256` | `string` | No | — | Expected 64-character SHA-256 hex digest verified via `bcrypt.dll` before executing a `Delivery = web` Suite package (supports `$(ARCH)` or `Sha256X64`/`Sha256Arm64`). | | `Sha256X64` | `string` | No | — | Optional `x64`-specific SHA-256 hex digest when `DownloadUrl` uses `$(ARCH)`. | | `Sha256Arm64` | `string` | No | — | Optional `arm64`-specific SHA-256 hex digest when `DownloadUrl` uses `$(ARCH)`. | | `FileName` | `string` | No | — | Optional staged filename when `Delivery = web` (defaults to the URL's filename leaf; supports `$(ARCH)`). | | `UpgradeCode` | `guid ({XXXXXXXX-...})` | No | — | Permanent `{UpgradeCode}` of this child package used to detect & dynamically adopt already-installed standalone siblings (`RS_SUITE_MANAGED=1`). | | `Engine` | `enum` | No | `msi` | Allowed: `msi|raggiescript|native|addon|exe`. Child installer engine (`msi` passes `RS_SUITE_MANAGED=1` via `MsiInstallProductW`; `raggiescript` / `native` / `addon` / `exe` passes `/s RS_SUITE_MANAGED=1`). | | `InstallArgs` | `string` | No | — | Optional extra properties or CLI switches passed to this child package during Suite install. | | `Required` | `bool (true|false)` | No | `false` | When `true`, locks this core Suite package as required in the Suite Setup checklist. | | `SelectedByDefault` | `bool (true|false)` | No | `true` | Whether this child package is pre-checked by default on fresh Suite installations. | | `Inclusion` | `enum` | No | `typical` | Allowed: `minimal|typical|complete`. Controls which Suite Setup Type presets automatically select this package: `minimal` (included in Compact/Minimal, Express/Typical, & Complete), `typical` (included in Express/Typical & Complete), or `complete` (included in Complete or when checked in Custom Setup). `Required = true` always implies `minimal`. | | `AdoptStandalone` | `bool (true|false)` | No | `true` | When `true` (default), dynamically adopts any already-installed standalone sibling (`REINSTALL=ALL REINSTALLMODE=vomus RS_SUITE_MANAGED=1`) under the single Suite Installed Apps entry. | | `RollbackBoundary` | `bool (true|false)` | No | `false` | When `true` under `SuiteRollbackPolicy = rollback_new`, commits all packages up through this item as a savepoint so a later failure does not uninstall earlier foundational prerequisites/tools. | | `ForwardInstallDir` | `bool (true|false)` | No | `false` | When `true`, passes `SUITE_INSTALLDIR=""` into this child package so member apps or add-ons align under a shared Suite root. | | `Category` | `string` | No | `Suite` | Optional category badge displayed for this application in the Unified Suite Setup checklist. | | `Version` | `string` | No | — | Optional display version (`X.Y.Z`) shown alongside this child package in the Suite checklist. | | `EstimatedSizeKB` | `integer` | No | `0` | Optional uncompressed size override in kilobytes used to weight Overall Suite Progress (`0` uses actual payload size). | ### `[MergeModule.]` (*Optional*) Consumes a Windows Installer Merge Module ([MergeModule.]: .msm) merging its Components, Files, Registry, and MergeModule.CABinet directly into Product.msi. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Source` | `path (supports $(ARCH))` | **Yes** | — | Path to the `.msm` Merge Module database on the build machine (supports `$(ARCH)`). | | `Feature` | `string` | No | `Main` | Parent `[Feature.]` in `Product.msi` that receives the Merge Module's components. | | `TargetRoot` | `enum` | No | `INSTALLDIR` | Allowed: `INSTALLDIR|CommonFiles64Folder|CommonAppDataFolder|AppDataFolder|LocalAppDataFolder|ProgramMenuFolder|ApplicationProgramsFolder|DesktopFolder|System64Folder|FontsFolder`. Destination root folder to which the Merge Module's `TARGETDIR` / `MergeRedirectFolder` maps. | ### `[Feature.]` (*Optional*) Named Feature or Sub-Feature ([Feature.]) with plain-English Inclusion tiers, optional Run-from-Source (MenuCD/MenuNetwork), and embedded vs. external .rswpak on-demand delivery. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Title` | `string` | **Yes** | — | Consumer-facing title of this MSI Feature. | | `Description` | `string` | No | — | Plain-English description of this MSI Feature shown in SelectionTree. | | `Level` | `integer` | No | `1` | MSI InstallLevel (`1` = core/Compact & Express, `2..100` = Express/Custom optional, `0` = hidden). | | `Inclusion` | `enum` | No | `minimal` | Allowed: `minimal|typical|complete|hidden`. Plain-English setup inclusion tier replacing raw numeric `InstallLevel`: `minimal` (`Level = 1`, installed in Minimal/Compact, Typical/Express, & Complete), `typical` (`Level = 50`, installed in Typical/Express & Complete, skipped in Minimal/Compact), `complete` (`Level = 150`, installed in Complete or when opted in inside Custom SelectionTree), or `hidden` (`Level = 0`, hidden/conditional). | | `Parent` | `string` | No | — | Optional parent Feature ID (`Feature_Parent`) creating a hierarchical sub-feature in `SelectionTree`. | | `DisallowAbsent` | `bool (true|false)` | No | `false` | Sets `msidbFeatureAttributesUIDisallowAbsent` (`16`) locking a required core feature so users cannot disable it in `SelectionTree`. | | `AllowAdvertise` | `bool (true|false)` | No | `false` | When `false` (default), sets `msidbFeatureAttributesDisallowAdvertise` (`8`) hiding MSI on-demand advertisement; set `true` to enable 'Feature will be installed when required'. | | `AllowRunFromSource` | `bool (true|false)` | No | `false` | When `true`, sets `msidbComponentAttributesOptional` (`2`) on owned components and enables `MenuCD` ('Will be installed to run from CD') & `MenuNetwork` ('Will be installed to run from network') in `SelectionTree`. | | `Delivery` | `enum` | No | `embedded` | Allowed: `embedded|ondemand`. `embedded` packs feature files inside the main installer; `ondemand` splits this feature into an external LZMS-compressed `-.rswpak` block fetched via WinHTTP with SHA-256 + Authenticode verification when selected. | | `PackUrl` | `string` | No | — | Optional HTTPS download URL for `-.rswpak` when `Delivery = ondemand` (defaults to `UniversalDownloadBaseUrl` or side-by-side local `.rswpak`). | ### `[Component.]` (*Optional*) Explicit MSI Component ([Component.]) enforcing Microsoft Single-Directory & KeyPath rules (File, Registry, or CreateFolder). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Feature` | `string` | No | `Main` | Feature ID owning this Component in `FeatureComponents`. | | `TargetRoot` | `enum` | No | `INSTALLDIR` | Allowed: `INSTALLDIR|CommonFiles64Folder|CommonAppDataFolder|AppDataFolder|LocalAppDataFolder|ProgramMenuFolder|ApplicationProgramsFolder|DesktopFolder|System64Folder|FontsFolder`. Single Windows Installer root directory for this Component (Microsoft Single-Directory Component Rule). | | `TargetSubdir` | `relpath` | No | — | Optional subdirectory under `TargetRoot` where all files of this Component reside. | | `Guid` | `guid_or_auto ('*' or {GUID})` | No | `*` | `*` computes a deterministic SHA-1 UUIDv5 ComponentId, or specify an explicit `{GUID}`. | | `KeyPathKind` | `enum` | No | `auto` | Allowed: `auto|file|registry|folder`. KeyPath resource type required by Windows Installer (`file` = File table key, `registry` = Registry key per ICE38, `folder` = NULL KeyPath + CreateFolder per ICE18). | | `KeyPathTarget` | `string` | No | — | Target filename (when `KeyPathKind = file`) or `[Registry.]` section ID (when `KeyPathKind = registry`). | | `Condition` | `string` | No | — | Optional MSI install condition evaluated during `CostFinalize` (e.g. `DESKTOP_SHORTCUT = "1"`). | | `Permanent` | `bool (true|false)` | No | `false` | Sets `msidbComponentAttributesPermanent` (`16`) so Windows Installer leaves this component on disk during uninstall. | | `NeverOverwrite` | `bool (true|false)` | No | `false` | Sets `msidbComponentAttributesNeverOverwrite` (`128`) so existing user-modified config files/keys are never overwritten. | | `SharedDllRefCount` | `bool (true|false)` | No | `false` | Sets `msidbComponentAttributesSharedDllRefCount` (`8`) for legacy shared reference counting. | ### `[Folder.]` (*Optional*) Creates a destination subdirectory ([Folder.]) via MSI CreateFolder + ICE64 RemoveFolder cleanup. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `TargetRoot` | `enum` | No | `INSTALLDIR` | Allowed: `INSTALLDIR|CommonFiles64Folder|CommonAppDataFolder|AppDataFolder|LocalAppDataFolder|ProgramMenuFolder|ApplicationProgramsFolder|DesktopFolder|System64Folder|FontsFolder`. Parent Windows Installer root folder (`INSTALLDIR`, `CommonAppDataFolder`, `AppDataFolder`, etc.). | | `TargetSubdir` | `relpath` | **Yes** | — | Subfolder path to create under `TargetRoot` (e.g. `Logs` or `Plugins\Custom`). | | `Feature` | `string` | No | `Main` | Feature ID owning the `CreateFolder` component. | | `Component` | `string` | No | — | Optional `[Component.]` name; auto-generates a `CreateFolder` component if omitted. | | `RemoveOnUninstall` | `bool (true|false)` | No | `true` | Emits a `RemoveFile` (`InstallMode = 2`) row so empty folders are removed cleanly on uninstall (ICE64). | ### `[Payload.]` (*Required*) Maps a build-machine file, directory, or .zip archive ([Payload.]) into #payload.cab / RSWPAK1 and deterministic or explicit Components. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Source` | `path (supports $(ARCH))` | **Yes** | — | Source file or directory on the build machine (supports `$(ARCH)` expansion). | | `TargetSubdir` | `relpath` | No | — | Optional destination subfolder inside `TargetRoot` (`""` = root of `TargetRoot`). | | `Recursive` | `bool (true|false)` | No | `true` | Recursively includes subdirectories when `Source` points to a directory. | | `Feature` | `string` | No | `Main` | Feature ID owning the generated file component(s). | | `TargetRoot` | `enum` | No | `INSTALLDIR` | Allowed: `INSTALLDIR|CommonFiles64Folder|CommonAppDataFolder|AppDataFolder|LocalAppDataFolder|ProgramMenuFolder|ApplicationProgramsFolder|DesktopFolder|System64Folder|FontsFolder`. Destination MSI system folder root (`INSTALLDIR`, `CommonAppDataFolder`, `AppDataFolder`, `FontsFolder`, etc.). | | `Component` | `string` | No | — | Optional `[Component.]` name. When omitted, each file gets its own deterministic SHA-1 UUIDv5 Component & File KeyPath per Microsoft best practice. | ### `[FileAssociation.]` (*Optional*) Registers a file extension, ProgId, document icon, MIME type, and Explorer shell verbs ([FileAssociation.]). | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Extension` | `string` | **Yes** | — | File extension to register (with or without leading dot, e.g. `.rsip` or `rsip`). | | `ProgId` | `string` | **Yes** | — | Canonical programmatic identifier, e.g. `RaggieSoft.InstallerStudio.Project`. | | `Description` | `string` | **Yes** | — | Human-friendly document type description displayed in Windows Explorer (e.g. `RaggieSoft Installer Project`). | | `TargetFile` | `relpath` | **Yes** | — | Relative path under `INSTALLDIR` to the handler `.exe` packaged by `[Payload.*]`. | | `Verbs` | `string` | No | `open:&Open:"%1"` | Pipe-separated shell verb definitions `verbId:MenuCaption:Arguments` (e.g. `open:&Open:"%1"|build:&Compile MSI:--build "%1"`). | | `ContentType` | `string` | No | — | Optional MIME content type (e.g. `application/x-raggiesoft-rsip`). | | `PerceivedType` | `string` | No | — | Optional Windows Explorer PerceivedType (`text`, `document`, `audio`, `image`, `video`). | | `IconIndex` | `integer` | No | `0` | Zero-based icon resource index inside `TargetFile` (or `[UI] IconFile` when `Advertise = true`). | | `Advertise` | `bool (true|false)` | No | `false` | `false` (default) writes clean `HKMU\Software\Classes` + `OpenWithProgids` keys with zero MSI self-repair popups; `true` populates native MSI `ProgId`, `Extension`, `Verb`, and `MIME` tables. | | `Feature` | `string` | No | `Main` | Feature ID owning this file association. | ### `[Shortcut.]` (*Optional*) Creates an advertised-free Start Menu or Desktop shortcut ([Shortcut.]) with ICE38 HKCU KeyPath & ICE64 RemoveFolder. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Name` | `string` | **Yes** | — | Display name of the shortcut in Start Menu or Desktop. | | `TargetFile` | `relpath` | **Yes** | — | Relative path under `INSTALLDIR` to the target executable packaged by `[Payload.*]`. | | `Location` | `enum` | No | `StartMenu` | Allowed: `StartMenu|Desktop`. Where to place the shortcut (`StartMenu` or `Desktop`). | | `Description` | `string` | No | — | Accessible screen-reader/tooltip description for the shortcut. | | `Arguments` | `string` | No | — | Optional command-line arguments passed when the shortcut launches `TargetFile`. | | `Feature` | `string` | No | `Main` | Feature ID owning this shortcut. | ### `[Registry.]` (*Optional*) Writes an HKLM/HKCU/HKCR/HKMU registry value ([Registry.]) tied to an auto or explicit 64-bit MSI Component. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Root` | `enum` | No | `HKLM` | Allowed: `HKLM|HKCU|HKCR|HKU|HKMU`. Registry hive (`HKLM` machine, `HKCU` user, `HKCR` classes, `HKU` users, or `HKMU` auto-switching per `ALLUSERS`). | | `Key` | `string` | **Yes** | — | Registry key path without hive prefix, e.g. `Software\RaggieSoft\MyApp`. | | `Name` | `string` | **Yes** | — | Registry value name (use `@` for the key's default value). | | `Value` | `string` | **Yes** | — | Registry value data (supports MSI formatted tokens like `[INSTALLDIR]` and `[ProductVersion]`). | | `Type` | `enum` | No | `string` | Allowed: `string|expand_string|dword`. Registry value type (`string` = REG_SZ, `expand_string` = REG_EXPAND_SZ, `dword` = REG_DWORD). | | `Feature` | `string` | No | `Main` | Feature ID owning this registry value. | | `Component` | `string` | No | — | Optional `[Component.]` owning this registry row (used when grouping registry values or setting a Registry KeyPath). | ### `[Environment.]` (*Optional*) Configures a user or system Environment Variable ([Environment.]), including non-clobbering PATH append/prepend with exact uninstall removal across MSI & RaggieScript EXE. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Name` | `string` | **Yes** | `PATH` | Environment variable name (e.g. `PATH` or `RAGGIESOFT_STUDIO_HOME`). | | `Value` | `string` | **Yes** | `[INSTALLDIR]` | Formatted value or directory path to set/append (e.g. `[INSTALLDIR]` or `[INSTALLDIR]bin`). | | `Action` | `enum` | No | `append_path` | Allowed: `append_path|prepend_path|set|create_if_absent`. `append_path` (`[~];Value`) appends safely without clobbering existing entries and removes only its own entry on uninstall; `prepend_path` (`Value;[~]`) prepends; `set` overwrites; `create_if_absent` (`+Name`) sets only if unset. | | `Scope` | `enum` | No | `auto` | Allowed: `auto|machine|user`. `auto` matches `[Package] Scope`, `machine` writes to System (`*Name`), and `user` writes to `HKCU\Environment`. | | `RemoveOnUninstall` | `bool (true|false)` | No | `true` | When `true` (default), removes this variable or `PATH` segment cleanly on uninstallation (`=-Name`). | | `OnUninstall` | `enum` | No | `remove` | Allowed: `remove|keep`. Alias for `RemoveOnUninstall` (`remove` removes this variable or `PATH` segment on uninstallation; `keep` leaves it intact). | | `Condition` | `string` | No | — | Optional MSI component condition (e.g. `ADD_TO_PATH = "1"` bound to a custom wizard checkbox!). | | `Feature` | `string` | No | `Main` | Feature ID owning this environment variable rule. | | `Component` | `string` | No | — | Optional explicit `[Component.]` name. | ### `[IniFile.]` (*Optional*) Writes or updates a [Section] Key = Value entry inside a target .ini configuration file ([IniFile.]) across MSI & RaggieScript EXE. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `FileName` | `string` | **Yes** | `settings.ini` | Target `.ini` filename inside `TargetRoot` / `TargetSubdir`. | | `TargetRoot` | `enum` | No | `INSTALLDIR` | Allowed: `INSTALLDIR|CommonFiles64Folder|CommonAppDataFolder|AppDataFolder|LocalAppDataFolder|ProgramMenuFolder|ApplicationProgramsFolder|DesktopFolder|System64Folder|FontsFolder`. Destination root folder containing `FileName` (`INSTALLDIR`, `AppDataFolder`, `LocalAppDataFolder`, `CommonAppDataFolder`, etc.). | | `TargetSubdir` | `relpath` | No | — | Optional subfolder inside `TargetRoot`. | | `Section` | `string` | **Yes** | `General` | INI `[Section]` header name. | | `Key` | `string` | **Yes** | — | INI key name within `[Section]`. | | `Value` | `string` | **Yes** | — | Formatted INI value (supports `[INSTALLDIR]`, `[ProductVersion]`, and custom dialog properties). | | `Action` | `enum` | No | `add_line` | Allowed: `add_line|set|create_line|create_only|add_tag|remove_key`. `add_line` / `set` (`0` = create or update key), `create_line` / `create_only` (`1` = write only if key does not exist), `add_tag` (`3` = append comma-separated tag), or `remove_key`. | | `Feature` | `string` | No | `Main` | Feature ID owning this INI rule. | | `Component` | `string` | No | — | Optional explicit `[Component.]` name. | ### `[Dialog.]` (*Optional*) Defines a custom C++ SetupWizard.exe page ([Dialog.]) edited in the WYSIWYG Visual Dialog Designer and spliced into the runtime setup flow. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Title` | `string` | **Yes** | `Custom Configuration` | Heading displayed on this custom `SetupWizard.exe` page. | | `Subtitle` | `string` | No | — | Supporting subtitle displayed beneath `Title`. | | `AfterPage` | `enum` | No | `SetupType` | Allowed: `Welcome|License|SetupType|CustomFeatures|CustomFolder|CustomShortcuts`. Wizard step after which this custom page appears in `SetupWizard.exe`. | | `ShowInModes` | `enum` | No | `all` | Allowed: `all|custom_only`. `all` displays this page in Express & Custom flows; `custom_only` displays it only when Custom Setup is selected. | ### `[Control.]` (*Optional*) Places a Per-Monitor V2 DPI Win32 control ([Control.]: Label, Edit, PathEdit, CheckBox, RadioGroup, ComboBox, GroupBox) onto a custom C++ [Dialog.] page. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Dialog` | `string` | **Yes** | — | Target `[Dialog.]` page owning this control. | | `Type` | `enum` | **Yes** | `CheckBox` | Allowed: `Text|Label|Heading|Edit|PasswordEdit|PathEdit|CheckBox|RadioGroup|RadioButtonGroup|ComboBox|ListBox|GroupBox|Line`. Control widget kind rendered in `SetupWizard.exe` and the IDE Visual Dialog Designer. | | `X` | `integer` | No | `24` | Horizontal position in 96-DPI logical pixels inside the wizard content area (`0..560`). | | `Y` | `integer` | No | `20` | Vertical position in 96-DPI logical pixels inside the wizard content area (`0..240`). | | `Width` | `integer` | No | `500` | Control width in 96-DPI logical pixels. | | `Height` | `integer` | No | `26` | Control height in 96-DPI logical pixels. | | `Property` | `string` | No | — | Uppercase MSI / Native property bound two-way to this control (automatically added to `SecureCustomProperties`!). | | `DefaultValue` | `string` | No | — | Initial value assigned to `Property` before the dialog opens. | | `Text` | `string` | No | — | Control caption or prompt (include a `&` keyboard mnemonic on interactive inputs/checkboxes!). | | `Items` | `string` | No | — | Pipe-separated `Value:Caption` options for `RadioGroup`, `RadioButtonGroup`, `ComboBox`, or `ListBox` controls. | | `TabOrder` | `integer` | No | `0` | Explicit keyboard `Tab` focus sequence order (`0` = document order). | | `Required` | `bool (true|false)` | No | `false` | When `true`, blocks `&Next >` on this custom page until the user supplies a non-empty value. | ### `[MsiDialog.]` (*Optional*) Defines a custom 370x270 Windows Installer SQL Dialog ([MsiDialog.]) spliced into the MSI.DLL UI sequence. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Title` | `string` | No | `[ProductName] Setup` | Window caption bar title of this MSI Dialog. | | `Width` | `integer` | No | `370` | Width in Windows Installer dialog units (standard Wizard 97 width is `370`). | | `Height` | `integer` | No | `270` | Height in Windows Installer dialog units (standard Wizard 97 height is `270`). | | `Banner` | `bool (true|false)` | No | `true` | Automatically adds standard Wizard 97 top `BannerBitmap`, `BannerLine`, `BottomLine`, and `Back`/`Next`/`Cancel` buttons. | | `HeaderTitle` | `string` | No | `Custom Configuration` | Bold title text rendered inside the top 44-unit Wizard 97 banner. | | `HeaderSubtitle` | `string` | No | — | Subtitle description rendered beneath `HeaderTitle` inside the top Wizard 97 banner. | | `PrevDialog` | `string` | No | `SetupTypeDlg` | Previous dialog ID in the wizard chain (`< &Back` target and automatic forward splice point!). | | `NextDialog` | `string` | No | `VerifyReadyDlg` | Next dialog ID opened when the user clicks `&Next >`. | ### `[MsiControl.]` (*Optional*) Adds a native MSI control ([MsiControl.]: Text, Edit, CheckBox, RadioButtonGroup, etc.) to a new or built-in MSI Dialog. | Key | Type | Required | Default | Allowed / Notes | | :--- | :--- | :---: | :--- | :--- | | `Dialog` | `string` | **Yes** | — | Target dialog ID (`[MsiDialog.]` or built-in dialog such as `SetupTypeDlg` or `VerifyReadyDlg`). | | `Type` | `enum` | **Yes** | `Text` | Allowed: `Text|Edit|MaskedEdit|PathEdit|CheckBox|RadioButtonGroup|PushButton|ComboBox|ListBox|SelectionTree|GroupBox|Line|Bitmap|ScrollableText`. Native Windows Installer Control table type. | | `X` | `integer` | **Yes** | `20` | Horizontal position in MSI dialog units (`0..370`). | | `Y` | `integer` | **Yes** | `60` | Vertical position in MSI dialog units (`0..270`). | | `Width` | `integer` | **Yes** | `330` | Control width in MSI dialog units. | | `Height` | `integer` | **Yes** | `18` | Control height in MSI dialog units. | | `Property` | `string` | No | — | MSI Property bound to this control (automatically added to `SecureCustomProperties` if uppercase!). | | `DefaultValue` | `string` | No | — | Optional initial value written to the MSI `Property` table. | | `Text` | `string` | No | — | Control label or rich text (`{\DlgFontBold8}...`). | | `Items` | `string` | No | — | Pipe-separated `Value:Caption` entries for `RadioButtonGroup`, `ComboBox`, or `ListBox` controls. | ## 3. `.rsis` Multi-Project Suite Schema (Optional — Multi-Package Workspace) ```ini [Suite] Name = Sample Studio Workspace Version = 1.0.0 Architectures = arm64|x64 [Variable] PUBLISHER = Sample Studio [Project.CoreMsm] Path = shared\core-runtime.rsip Category = MergeModules BuildOrder = 10 [Project.DesktopApp] Path = apps\desktop-client.rsip Category = CoreApps BuildOrder = 20 ``` ## 4. Minimal From-Scratch `.rsip` Project Blueprint ```ini ; Minimal standalone RaggieSoft Installer Project (.rsip) — compiles x64 and arm64! [Package] Name = Hello Studio App Tagline = Fast, Accessible Native Windows Application Version = 1.0.0 Manufacturer = Sample Studio UpgradeCode = {A18F4E20-7C93-4D62-9B44-524147474945} Architecture = $(ARCH) Scope = machine BuildBootstrapper = true [Install] DefaultSubdir = Sample Studio\Hello App MainExecutable = HelloApp.exe [UI] WizardLayout = aerowizard AccentPrimaryHex = #2563EB AccentSecondaryHex= #FBBF24 InstallButtonText = &Install [Payload.App] Source = ..\..\bin\$(ARCH)\HelloApp.exe [Shortcut.StartMenu] Name = Hello Studio App TargetFile = HelloApp.exe Location = StartMenu Description = Launch Hello Studio App ``` ## 5. Complete Enterprise `.rsip` Blueprint (SelectionTree Features, Pre-MSI Runtimes, `.MSM`, FileAssoc & Custom MSI Dialog) ```ini ; Full-featured enterprise .rsip demonstrating SelectionTree hierarchy, Pre-MSI ; Prerequisites, 64-bit .MSM Merge Modules, File Associations, & Custom MSI SQL Dialogs. [Package] Name = Studio Workbench Tagline = Accessible Desktop Authoring Environment WebsiteLabel = raggiesoftstudio.com Version = 2.1.0 Manufacturer = RaggieSoft UpgradeCode = {7F4E91C2-58B4-4D21-8E77-314159265358} Architecture = $(ARCH) Scope = machine OutputName = studio-workbench-$(ARCH) OutputDir = out BuildBootstrapper = true [Requirements] MinWindowsBuild = 22000 [Install] DefaultSubdir = RaggieSoft\Studio Workbench StartMenuFolder = RaggieSoft Studio Workbench MainExecutable = Workbench.exe [UI] WizardLayout = aerowizard MsiDialogPreset = express_custom AccentPrimaryHex = #2563EB AccentSecondaryHex = #FBBF24 LicenseRtf = License.rtf InstallButtonText = &Install FinishLaunchCheckbox = &Launch Studio Workbench when setup finishes ; Hierarchical MSI SelectionTree Features (Core locked via DisallowAbsent = true) [Feature.Main] Title = Core Workbench Application Description = Primary executable and core authoring engine. Level = 1 DisallowAbsent = true [Feature.Templates] Parent = Main Title = Starter Project Templates Description = Optional starter blueprints and offline documentation. Level = 1 ; Pre-MSI Runtime Prerequisite (runs BEFORE msiexec under one UAC prompt) [Prerequisite.DotNet10] Preset = DotNet10Desktop Distribution = download RebootExitCodes = 3010, 1641, 23 ; Optional 64-Bit Merge Module (.msm) merged natively into Product.msi [MergeModule.SharedCodec] Source = ..\shared\out\shared-codec-$(ARCH).msm Feature = Main TargetRoot = INSTALLDIR [Component.CoreExeComp] Feature = Main TargetRoot = INSTALLDIR Guid = * KeyPathKind = file KeyPathTarget = Workbench.exe [Payload.MainExe] Source = ..\bin\$(ARCH)\Workbench.exe Component = CoreExeComp [Payload.TemplatesDir] Source = ..\templates TargetRoot = INSTALLDIR TargetSubdir = templates Feature = Templates [FileAssociation.WorkbenchDoc] Extension = .rswb ProgId = RaggieSoft.Workbench.Document Description = Studio Workbench Project TargetFile = Workbench.exe Verbs = open:&Open in Workbench:"%1" Advertise = false [Shortcut.StartMenuApp] Name = Studio Workbench TargetFile = Workbench.exe Location = StartMenu [MsiDialog.WorkspaceUrlDlg] HeaderTitle = Default Asset Endpoint PrevDialog = SetupTypeDlg NextDialog = VerifyReadyDlg [MsiControl.EndpointEdit] Dialog = WorkspaceUrlDlg Type = Edit X = 20 Y = 74 Width = 330 Height = 18 Property = ASSET_ENDPOINT DefaultValue = https://assets.raggiesoft.com ```