Chapter 6 of 8 • CLI & AI Automation

Headless CLI (instbuild.exe) & AI Agent Authoring

RaggieSoft Installer Studio was designed from Day 1 so human engineers and autonomous AI coding agents can create, validate, and compile production Windows installers from scratch without touching a mouse or fighting opaque XML/binary files.

Core instbuild.exe Commands

; 1. Sub-millisecond schema, GUID, 3-part version, Component rule & mnemonic linter
instbuild.exe --validate --diagnostics=json MyProject.rsip --arch=arm64

; 2. Compile standalone Enterprise .msi + LZMS-compressed Setup.exe (+ VPAT 2.5 HTML5)
instbuild.exe MyProject.rsip --arch=arm64 --with-vpat
instbuild.exe MyProject.rsip --arch=x64   --with-vpat

; 3. Build an entire multi-project .rsis Suite in deterministic BuildOrder
instbuild.exe MyWorkspace.rsis --with-vpat

; 4. Emit a reusable 64-bit Merge Module (.msm), GPO Transform (.mst), or Patch (.msp)
instbuild.exe --emit-msm MyLibrary.rsip out\MyLibrary-x64.msm --arch=x64
instbuild.exe --generate-mst Base.msi CustomOrg.msi OrgPolicy.mst
instbuild.exe --generate-msp v1.0.0.msi v1.1.0.msi Update-1.1.0.msp

; 5. Regenerate constexpr AI specifications (llms.txt, llms-full.txt, SKILL.md)
instbuild.exe --emit-ai-spec .\specs
  

Zero-Drift AI Specifications (llms.txt & SKILL.md)

Because instbuild.exe --emit-ai-spec generates llms.txt, llms-full.txt, and SKILL.md directly from the compiler's own C++20 constexpr field descriptors in RswSchema.hpp, the AI documentation can never drift out of sync with the validator!

  1. Step 1 — Read: Point your AI agent at specs/llms-full.txt (or https://raggiesoftstudio.com/llms-full.txt).
  2. Step 2 — Author: Have the agent write a commented .rsip manifest using $(ARCH) payload paths, a permanent UpgradeCode GUID, 3-part Major.Minor.Build version numbers, and & keyboard mnemonics.
  3. Step 3 — Validate: Run instbuild.exe --validate --diagnostics=json and confirm "ok": true before compiling.
  4. Step 4 — Compile & Inspect: Compile arm64 and x64 outputs and verify with msiprism.exe --inspect-summary.