Chapter 9 of 9 • Updates & Servicing

Updates, Servicing, RsPatch.exe & RsUpdate.exe

RaggieSoft Installer Studio provides a complete, zero-service software update and servicing architecture spanning Enterprise MSI, Windows Installer Patches (.MSP), and RaggieScript EXE installers (Engine = raggiescript and .rssc).

1. Major Upgrades vs. Minor Upgrades vs. Small Updates

  • Major Upgrade (Default Across All 4 Editions — [Upgrade] Strategy = major): Mints a fresh deterministic ProductCode whenever Version increments while preserving your permanent UpgradeCode. Supports freely adding, renaming, moving, or retiring files and components via RemoveExistingProducts (configurable as Schedule = early at Sequence 1525 or Schedule = late at Sequence 6550, with MigrateFeatures = true setting Attributes = 257).
  • Minor Upgrade (Architect & Community — [Upgrade] Strategy = minor): Preserves BaselineMsi's ProductCode while incrementing Version. Can be delivered either as a compact .MSP patch or via SetupWizard.exe (which automatically detects the installed ProductCode via MsiGetProductInfoW and appends REINSTALL=ALL REINSTALLMODE=vomus so MSI Error 1638 never occurs).
  • Small Update Hotfix (Architect & Community — Opt-In --allow-small-update): Emergency hotfix .MSP where both ProductCode and ProductVersion remain unchanged. Blocked by default (RSW084) unless --allow-small-update is explicitly passed.

2. Diff & Component-Rule Planner (--plan-update)

Run instbuild.exe --plan-update <old.msi|.exe> <new.msi|.exe> [--diagnostics=json] (or RsPatch.exe plan) before building a patch. The planner audits Microsoft's Windows Installer Component Rules automatically:

  • RSW080: Mismatched UpgradeCode between baseline and target packages.
  • RSW081: Deleted baseline ComponentId GUID (illegal in Minor/Small .MSP patches; requires a Major Upgrade).
  • RSW082: Changed KeyPath on an existing ComponentId.
  • RSW083: Moved an existing ComponentId to a different Directory_.
  • RSW084: Unchanged ProductVersion without --allow-small-update.

3. Binary-Delta Patching (RsPatch.exe via Windows msdelta.dll)

RsPatch.exe calls Windows 11's built-in System32\msdelta.dll (CreateDeltaB with PE executable call/jump preprocessing and ApplyDeltaB) with zero third-party dependencies:

  • MSI Patches (.MSP): RsPatch.exe build-msp base.msi target.msi update.msp validates Component Rules, populates MsiPatchMetadata (AllowRemoval = 1), and embeds the transform substorage.
  • RaggieScript EXE Deltas (.rswpatch): RsPatch.exe build-exe old-setup.exe new-setup.exe update.rswpatch builds a SHA-256-sealed RSWPATCH1 container recording Keep, Add, Delta, and Delete (retired file) operations. Applying via RsPatch.exe apply update.rswpatch "C:\Program Files\..." verifies baseline SHA-256 digests and rolls back 100% atomically via .rsw-rollback.jnl on any fault.

4. Zero-Service Static-CDN Updater (RsUpdate.exe — 100% DRY with Launcher)

RsUpdate.exe (included in Developer, Architect, and Community Editions) consumes the exact same static apps-manifest.json array schema used by RaggieSoft Launcher—requiring zero background SYSTEM services and zero database servers. When a matching patches entry exists for the user's installedVersion and silicon architecture (x64 or ARM64), RsUpdate.exe downloads and SHA-256-verifies the compact .msp or .rswpatch delta; otherwise it seamlessly falls back to the full Major Upgrade installer.