Skip to content

Commit 6cba895

Browse files
committed
Create Demo-003.md
1 parent 106644b commit 6cba895

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<img src="https://r2cdn.perplexity.ai/pplx-full-logo-primary-dark%402x.png" style="height:64px;margin-right:32px"/>
2+
3+
***
4+
5+
## `Demo-003.ps1`
6+
7+
This file is available at: [WinISO.ScriptFXLib/Examples/Demo-003.ps1](https://github.com/praetoriani/PowerShell.Mods/blob/main/WinISO.ScriptFXLib/Examples/Demo-003.ps1)
8+
9+
***
10+
11+
## What Was Analyzed and Implemented
12+
13+
### Repository Analysis (v1.00.05)
14+
15+
The following files were evaluated before creating the demo:
16+
17+
| File | Relevance for the Demo |
18+
| :-- | :-- |
19+
| `CHANGELOG.md` | All new features since v1.00.01 — complete version history |
20+
| `Examples/Demo-002.ps1` | Reference for coding style, helper functions, color scheme |
21+
| `Public/InitializeEnvironment.ps1` | Step 03 — Step-by-step result collector pattern |
22+
| `Public/WriteLogMessage.ps1` | Step 04 — All parameters including override logic |
23+
| `Public/GetUUPDumpPackage.ps1` | Step 08 — Complete multi-edition parameters |
24+
| `Public/LoadRegistryHive.ps1` | Step 11 — HiveMap, WinISO_ prefix, tracking mechanism |
25+
| `Public/GetAppxPackages.ps1` | Step 12 — appx['listed'], ExportFile/Format parameters |
26+
| `Public/VerifyEnvironment.ps1` | Step 03 — Return value semantics (code 1 = exists) |
27+
28+
### New / Improved Helper Functions
29+
30+
Compared to `Demo-002.ps1`, the helper functions have been extended and two new ones added:
31+
32+
- **`WaitForEnter`** — complete `.SYNOPSIS` + `.PARAMETER` documentation added
33+
- **`ThrowInternalError`** — identically refined
34+
- **`PrintSectionHeader`** *(NEW)* — Unicode box-drawing border (`┌─┘`) as a visual section separator
35+
- **`PrintResult`** *(NEW)* — colored `[PASS]`/`[FAIL]` output with green/red console color
36+
37+
### 13 Demo Steps
38+
39+
| Step | Content | Live / DEMO |
40+
| :-- | :-- | :-- |
41+
| 01 | WinISOcore accessor — Read/Write/Unwrap including live round-trip | ✅ Live |
42+
| 02 | `CheckModuleRequirements` — 4-state schema, export report | ✅ Live |
43+
| 03 | `InitializeEnvironment` + `VerifyEnvironment` spot checks | ✅ Live |
44+
| 04 | `WriteLogMessage` — all 4 flags + override, content preview | ✅ Live |
45+
| 05 | `GetLatestPowerShellSetup` — win-x64, download only | ✅ Live |
46+
| 06 | `GitHubDownload` — re-download oscdimg.exe as example | ✅ Live |
47+
| 07 | `DownloadUUPDump` — single-edition Pro/Home, state display before/after | ✅ Live |
48+
| 08 | `GetUUPDumpPackage` — multi-edition, all 3 example calls | 💬 DEMO (can be activated by uncommenting) |
49+
| 09 | `ExtractUUPDump` / `CreateUUPDiso` / `RenameUUPDiso` / `ExtractUUPDiso` | 💬 DEMO |
50+
| 10 | `MountWIMimage` / `ImageIndexLookup` / `UnMountWIMimage` | 💬 DEMO |
51+
| 11 | `LoadRegistryHive` + all `RegistryHive*` functions | 💬 DEMO (+ live display LoadedHives.Count) |
52+
| 12 | `GetAppxPackages` / `AppxPackageLookUp` / `RemAppxPackages` / `AddAppxPackages` | ✅ Live WinISOcore write demo |
53+
| 13 | Advanced WinISOcore usage, type safety, OPSreturn pattern | ✅ Live Round-Trip |
54+

0 commit comments

Comments
 (0)