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:
use std;— Core pure computation, strings, arrays, JSON, SemVer, andsys.*read-only queries (always implicitly available).use ui;— Declarative Wizard UI controls andTaskDialogIndirectprompts.use installer;— Full Windows packaging standard library (fs.*,reg.*,msi.*,proc.*,ffi.*,svc.*,shortcut.*,arp.*,firewall.*,acl.*).use showcase;— Interactive Showcase Studio canvas pages, accessible hotspots, and captioned audio.- Sandboxed Studio Profiles (
RSW702enforced):use training;,use a11y;,use localization;,use document;,use launcher;,use help;.
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
}
| Property | Accepted Aliases | Default | Purpose |
|---|---|---|---|
id | upgradeCode | Auto UUIDv5 | Stable package/UpgradeCode identifier across upgrades. |
productCode | — | Auto UUIDv4 | Optional explicit MSI ProductCode GUID. |
version | — | "1.0.0" | 3- or 4-part version stamped into PE VERSIONINFO & Installed Apps. |
publisher | manufacturer | "RaggieSoft" | Publisher name in UAC/TaskDialog banners and Uninstall registry keys. |
scope | — | Scope.Machine | Scope.User (%LOCALAPPDATA% / HKCU) or Scope.Machine (Program Files / HKLM). |
uac | requestedExecutionLevel | Uac.Deferred | Controls PE manifest requestedExecutionLevel and commit-time UAC broker. |
style | wizardLayout | WizardStyle.FluentMica | Selects 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. |
hideFromInstalledApps | systemComponent | false | Sets 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
- Top-Level Pre-Flight Statements: Run first (e.g.,
verifyWindows11AndHardware(...)). wizard { step Name when (cond) { ... } }:
- Automatically skipped when invoked in silent mode (
/s,/qn,--silent). - Statically verified 100% side-effect-free (
RSW701)—including transitive calls through helper functions! - Navigating backward via
<- Backpops the visited-step history stack so skipped conditionalwhen (...)steps are never landed on in reverse.
install { ... }(Commit Phase):
- When
uac: Uac.Deferredandscope: Scope.Machineare active and the process is not yet elevated, the wizard serializes user choices (ExportWizardStateJson) and launches--elevated-rssc-worker(ShellExecuteExW(L"runas")) right when Install is clicked! - Opens
.rsw-rollback.jnlbefore the first mutation; commits and deletes.rswbakbackups on success, or replays the journal in LIFO reverse order on any uncaught error, failedassert(), or user cancel!
repair(mode) { ... }&uninstall(purgeUserData) { ... }:
- Invoked automatically by
<InstallDir>\Uninstall.exe --repairor--uninstall(Uninstall.rswm).
- Showcase Event Handlers (
on page("Main").show,on hotspot("Btn").click):
- Bound directly to keyboard-accessible UI Automation hotspot peers in RaggieSoft Showcase Studio.