RaggieScript v1.3.0
Browse Table of Contents (17 chapters)
Getting Started (2)
Language Reference (4)
Core Standard Library (3)
Windows, MSI SQL & Native FFI (3)
Wizard UI & Studio Sandboxes (3)
Diagnostics & Bytecode ISA (2)
Master Symbol Index
3 min read Module: raggiesoft.raggiescript F1: IDH_RSSC_PHASES (0x2005)

Package Headers, param, feature, payload & Lifecycle Phases

Every RaggieScript installer, Showcase launchpad, or standalone micro-app follows a deterministic lifecycle designed so interactive UI never mutates the machine and system mutations always roll back cleanly on failure.

Capability Declarations (use <profile>;)

At the top of a .rssc file, use statements declare which Studio host capabilities the script is permitted to invoke:

Top-Level Header Blocks (package, showcase, app)

package "RaggieSoft Sample Workbench" {
    id:                    "{8C41E2B0-5D19-4A73-9E22-524147474945}";
    version:               v"1.2.0";
    publisher:             "RaggieSoft";
    tagline:               "Zero-Dependency Windows 11 Workstation";
    website:               "https://raggiesoftstudio.com";
    scope:                 Scope.Machine;           // Scope.User | Scope.Machine
    uac:                   Uac.Deferred;            // Uac.AsInvoker | Uac.HighestAvailable | Uac.RequireAdministrator | Uac.Deferred
    style:                 WizardStyle.FluentMica;  // Any of the 11 WizardStyle layouts
    supportDir:            "./_support";            // Embedded helper staging folder (#220)
    mainExe:               "SampleWorkbench.exe";
    icon:                  "assets/app.ico";
    accent:                "#0F766E";
    hideFromInstalledApps: false;                   // Sets SystemComponent=1 when true (for content packs!)
    autoPlayAudio:         false;                   // Enforced false per WCAG 2.2 AA
    minWindowsBuild:       22000;                   // Windows 11 floor
}
PropertyAccepted AliasesDefaultPurpose
idupgradeCodeAuto UUIDv5Stable package/UpgradeCode identifier across upgrades.
productCode—Auto UUIDv4Optional explicit MSI ProductCode GUID.
version—"1.0.0"3- or 4-part version stamped into PE VERSIONINFO & Installed Apps.
publishermanufacturer"RaggieSoft"Publisher name in UAC/TaskDialog banners and Uninstall registry keys.
scope—Scope.MachineScope.User (%LOCALAPPDATA% / HKCU) or Scope.Machine (Program Files / HKLM).
uacrequestedExecutionLevelUac.DeferredControls PE manifest requestedExecutionLevel and commit-time UAC broker.
stylewizardLayoutWizardStyle.FluentMicaSelects the native Win32 Per-Monitor V2 DPI wizard theme.
supportDir—""Packs a local folder into #220 (__support__) and extracts it to sys.supportDir at runtime.
hideFromInstalledAppssystemComponentfalseSets SystemComponent = 1 so 30+ book/album content packs never clutter Windows Installed apps.

param, feature & payload Declarations

// 1. CLI-overridable setup parameter
param installDir: path = sys.programFiles / "RaggieSoft" / "Workbench";

// 2. Selectable installation feature (bound automatically to ui.featureTree!)
feature "Core" {
    title:       "Core Workstation";
    description: "Required native x64/ARM64 executables.";
    required:    true;
    inCompact:   true;
}

feature "CliSdk" {
    title:       "Command-Line Compiler & SDK";
    description: "Headless CI/CD tools and C++20 headers.";
    required:    false;
    inCompact:   false;
    selected:    true;
}

// 3. Embedded LZMS payload harvested at build time into RT_RCDATA #220 (RSWPAK1)
payload CoreFiles {
    from "../publish/win-${arch}/*";
    to:      installDir;
    feature: "Core";
}

Execution Lifecycle Phases

  1. Top-Level Pre-Flight Statements: Run first (e.g., verifyWindows11AndHardware(...)).
  2. wizard { step Name when (cond) { ... } }:
  1. install { ... } (Commit Phase):
  1. repair(mode) { ... } & uninstall(purgeUserData) { ... }:
  1. Showcase Event Handlers (on page("Main").show, on hotspot("Btn").click):
Indexed API Calls & Symbols on This Page (3):