From c12c744e497aed4f622ab4450d2fdf47c0295114 Mon Sep 17 00:00:00 2001
From: SOSMLG <117748270+SOSMLG@users.noreply.github.com>
Date: Tue, 24 Nov 2026 14:38:06 -0800
Subject: [PATCH 1/2] feat: one default debloat pass and FOSS app swaps
- add config/debloat.json and a single shared debloat pass for both profiles
- replace Obsidian/Spotify with Joplin/Spotube and drop the Spicetify note
- harden IoT post-install when winget, AppX, Store, or task cmdlets are missing
- make Setup.cmd exit clean on success, pause only on failure
- update docs and remove the dead daily apps config
---
CHANGELOG.md | 10 +-
Install.ps1 | 2 +
QUICKSTART.md | 13 +-
README.md | 19 ++-
SECURITY.md | 6 +-
Setup.cmd | 13 +-
THIRD-PARTY-NOTICES.md | 2 +-
assets/preview-iot.svg | 2 +-
config/daily/apps.json | 42 ------
config/debloat.json | 69 ++++++++++
config/joplin/settings.json | 7 +
docs/APPS.md | 24 ++++
docs/CLI.md | 8 +-
docs/RESEARCH.md | 7 +
scripts/Install.ps1 | 11 +-
scripts/lib/Common.ps1 | 2 +
scripts/lib/Debloat.ps1 | 212 +++++++++++++++++++++++++++++++
scripts/modules/00-Preflight.ps1 | 14 ++
scripts/modules/30-Apps.ps1 | 1 +
scripts/modules/50-Debloat.ps1 | 7 +
scripts/modules/80-Configs.ps1 | 22 +++-
scripts/modules/iot/Configs.ps1 | 2 +
scripts/modules/iot/Debloat.ps1 | 12 ++
scripts/modules/iot/IotMain.ps1 | 17 ++-
scripts/modules/iot/Packages.ps1 | 14 +-
25 files changed, 460 insertions(+), 78 deletions(-)
delete mode 100644 config/daily/apps.json
create mode 100644 config/debloat.json
create mode 100644 config/joplin/settings.json
create mode 100644 scripts/lib/Debloat.ps1
create mode 100644 scripts/modules/50-Debloat.ps1
create mode 100644 scripts/modules/iot/Debloat.ps1
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5873edf..1e385b0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,8 @@ format follows keep a changelog. versions are git tags like `v0.1.0`.
## [Unreleased]
### added
+- one default debloat pass for both profiles, driven by `config/debloat.json`. it applies UI, privacy, and provider values, removes the consumer app set including Outlook for Windows, blocks consumer-app reinstall, and disables only CEIP/Appraiser/reporting tasks. `-NoDebloat` is a recovery switch, not a tier.
+- Joplin as the FOSS notes app and Spotube as the FOSS Spotify client. Joplin gets a local-only light seed config; Spotube keeps its first-run wizard.
- repository health files and read-only CI validation.
- `docs/APPS.md` with install IDs, config paths, theme scope, and manual steps for the desktop apps.
- configured LibreWolf and Mem Reduct folders. LibreWolf gets safe `defaultPref` overrides and three profiles; Mem Reduct gets a comment-only portable config.
@@ -19,13 +21,15 @@ format follows keep a changelog. versions are git tags like `v0.1.0`.
- merged the modular daily installer, the daily config set and their docs into this repo. `Install.ps1` and `Validate.ps1` are the front doors for both profiles.
- OpenCode now uses one V2 config with `providers` and `permissions`. the old deployed V1 config is gone; the root `opencode.json` is repo-only.
- the deployed opencode config no longer loads context7 and playwright into every message. an existing `~\.config\opencode\opencode.json` is kept (fresh-only), see `docs/OPENCODE.md` to switch.
-- Defender is left as shipped. no script writes its preferences or disables real-time protection.
-- missing winget is a skip with manual IDs in the README, not a failed run.
+- Defender, Windows Update, Store, Terminal, WebView2, and .NET are left alone by the debloat pass. it never touches those services, tasks, or packages.
+- missing winget is a skip with manual IDs in the README, not a failed run. on IoT, apps with a GitHub or direct source still install; AppX and scheduled-task cmdlets missing are skips, not failures.
+- `Setup.cmd` exits clean on success and pauses only on failure.
+- README, QUICKSTART, CLI, APPS, SECURITY, THIRD-PARTY-NOTICES, and the IoT preview describe the post-install profiles, the FOSS app choices, and the single debloat pass.
- OmniRoute logon tasks use a `.cmd` wrapper so `.cmd` CLI shims work.
- README and docs describe installs and configs only; tweak and OOSU notes are gone.
### removed
-- removed every Windows optimization on request. gone: the IoT tweak/debloat phases, `-TweaksOnly`, the tweak matrix, O&O config, Lenovo charge cap, DNS/power/taskbar/privacy tuning, temp cleanup, the daily privacy, power, PLC and Defender-exclusion code, and the unused root `lib/` helpers. these are manual now.
+- removed every Windows optimization on request. gone: the old tiered tweak/debloat phases, `-TweaksOnly`, the tweak matrix, O&O config, Lenovo charge cap, DNS/power/taskbar/privacy tuning, temp cleanup, the daily privacy, power, PLC and Defender-exclusion code, and the unused root `lib/` helpers. these are manual now. the new single debloat pass is a separate, fixed set.
- removed the third-party package-manager bootstrap and fallback engine from the IoT installer. package sources are now staged files, winget, GitHub releases, and direct vendor URLs.
- dropped the study pack: Zotero, SumatraPDF, MiKTeX, Typst and their configs. Windows Terminal moved into the base app list.
- dropped Komorebi and whkd, including keybinds, WM config, autostart shortcuts and smoke checks. the desktop is stock Windows now.
diff --git a/Install.ps1 b/Install.ps1
index 3e28d13..12ddde8 100644
--- a/Install.ps1
+++ b/Install.ps1
@@ -21,6 +21,7 @@ param(
[ValidateSet('daily', 'iot')][string]$Profile = 'daily',
[switch]$DryRun,
[switch]$Force,
+ [switch]$NoDebloat,
[string[]]$Only = @(),
[switch]$Resume,
[switch]$Verify,
@@ -53,6 +54,7 @@ if (-not (Test-Path -LiteralPath $entry)) {
$arguments = @('-Profile', $Profile)
if ($DryRun) { $arguments += '-DryRun' }
if ($Force) { $arguments += '-Force' }
+if ($NoDebloat) { $arguments += '-NoDebloat' }
if ($Only.Count -gt 0) { $arguments += @('-Only', ($Only -join ',')) }
if ($Resume) { $arguments += '-Resume' }
if ($Status) { $arguments += '-Status' }
diff --git a/QUICKSTART.md b/QUICKSTART.md
index 45bedbd..c28b1a2 100644
--- a/QUICKSTART.md
+++ b/QUICKSTART.md
@@ -21,9 +21,10 @@ transcript; iot also writes a report. read the output before the real run.
.\Install.ps1 -Profile iot
```
-`daily` is the modular engineering workstation. `iot` is the slim LTSC build.
-both use the same `config/` tree. `Setup.cmd` starts the IoT profile through
-`Install.ps1` for the one-click flow.
+`daily` is the modular engineering workstation. `iot` is the slim post-install
+build for tiny11, AspectOS, and Windows 11 IoT Enterprise LTSC. both use the
+same `config/` tree. `Setup.cmd` starts the IoT profile through `Install.ps1`
+for the one-click flow and exits clean when it succeeds.
## 3. verify without writing
@@ -57,8 +58,10 @@ reads the saved state file only.
`Install.ps1 -Profile iot -?` lists the full IoT flag set. useful ones are
`-Unattended`, `-ConfigsOnly`, `-OfflineDir`, `-NoWingetBootstrap`,
-`-DriverDir`, `-Only`, `-SkipApps`, and `-Minimal`. Optional apps (Obsidian,
-Spotify, Mem Reduct) are included unless `-Minimal` is set.
+`-DriverDir`, `-Only`, `-SkipApps`, `-Minimal`, and `-NoDebloat`. Optional apps
+(Joplin, Spotube, Mem Reduct) are included unless `-Minimal` is set. The single
+default debloat pass runs on every normal install; `-NoDebloat` is the recovery
+switch.
## where to go next
diff --git a/README.md b/README.md
index 937d84c..098ffd4 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@ installs two Windows setups with native PowerShell 5.1. the daily profile builds
| **profiles** | `daily` installs development tools, Git and gh config, MATLAB paths, OmniRoute, VSCodium, Windows Terminal and per-app configs. `iot` installs a smaller LTSC app set from staged files, winget or vendor URLs. |
| **dry run** | `-DryRun` prints the writes and installs it would perform. it does not change settings, install apps or overwrite configs. logs and the IoT report are still written. |
| **configs** | one `config/` tree serves both profiles. IoT keeps `defaults.json` and an empty `hashes.json`, so downloads are not hash-pinned today. |
-| **guardrails** | Defender preferences are not written. `OMNIROUTE_API_KEY` is read from the environment only. there is no tweak pass, debloat pass or third-party package manager bootstrap. |
+| **guardrails** | Defender preferences are not written. `OMNIROUTE_API_KEY` is read from the environment only. one default debloat pass runs unless `-NoDebloat` is set; there are no safe/standard/aggressive tiers and no third-party package manager bootstrap. |
## Preview
@@ -34,8 +34,10 @@ needs it.
.\Install.ps1 -Profile iot
```
-`Setup.cmd` starts the IoT profile through `Install.ps1` and passes extra flags through. For
-filters, resume, and the full flag list, read [CLI contract](docs/CLI.md).
+`Setup.cmd` starts the IoT profile through `Install.ps1` and passes extra flags through. It is the
+post-install path for tiny11, AspectOS, and Windows 11 IoT Enterprise LTSC images. Missing winget,
+AppX, Store, or scheduled-task cmdlets are skips, not hard failures. For filters, resume, and the
+full flag list, read [CLI contract](docs/CLI.md).
## Verify
@@ -56,7 +58,7 @@ modules, pending reboot, and the next command.
The daily profile runs steps in this order:
```text
-preflight os packages apps engineering developer omniroute theme configs validate
+preflight os packages apps engineering developer omniroute theme configs debloat validate
```
Run one step with `-Only`:
@@ -76,10 +78,13 @@ use module names. See [CLI contract](docs/CLI.md).
logs under `C:\Windows\Logs\Win-Iot-Setup`, with a `%TEMP%` fallback.
- Daily logs go to `%LOCALAPPDATA%\win11-stack\logs`. IoT logs go to
`C:\Windows\Logs\Win-Iot-Setup`.
-- If winget is missing, the installer skips app installs and prints the IDs to
- install by hand.
+- If winget is missing on daily, app installs are skipped with the IDs to
+ install by hand. On IoT, apps with a GitHub or direct source still install.
- IoT package sources are staged files, then winget, then GitHub releases or
direct vendor URLs.
+- The default debloat pass removes the consumer app set and applies UI/privacy
+ values. It never touches Windows Update, Defender, Store, Terminal, WebView2,
+ or .NET. Use `-NoDebloat` only for recovery or a deliberate stock image.
- A reboot is required after OS feature changes. Re-run with `-Resume`.
## Theme
@@ -96,6 +101,8 @@ See the [app inventory](docs/APPS.md) for install IDs, config paths, and manual
- 7-Zip is in both app lists. The IoT self-check also accepts the Program Files install path.
- qBittorrent ships with WebUI off, UPnP off, no stored web password, and loopback only if WebUI is enabled locally. Existing configs are kept.
- LibreWolf is the IoT browser. It gets three isolated profiles, Start Menu shortcuts, and safe `defaultPref` overrides. Default browser is a manual Settings step.
+- Joplin replaces Obsidian and gets a light, local-only seed config. Spotube replaces Spotify; its one-time first-run setup is left to the app.
+- Outlook for Windows is removed and blocked from reinstalling by the default debloat pass. Classic Outlook from a paid Office install is not touched.
- Mem Reduct ships in the default install; `-Minimal` skips it. No autostart, no scheduled cleanup, native light UI.
- Windows Terminal keeps one Graphite Amber scheme and no stale PowerShell 7 profile.
diff --git a/SECURITY.md b/SECURITY.md
index 4b3bfa7..6825411 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -1,9 +1,9 @@
# security
## what this repo does
-the installer changes system settings and installs software. it does not apply
-tweaks, debloat Windows, or change Defender preferences. run `-DryRun` and try a
-VM first.
+the installer changes system settings and installs software. it applies one
+fixed default debloat set, but no tiered tweaks and no Defender preference
+changes. run `-DryRun` and try a VM first.
## what to know before running it
- `Setup.cmd` self-elevates. the installer is normally run with `-ExecutionPolicy Bypass`. without
diff --git a/Setup.cmd b/Setup.cmd
index bc65bdc..9986b4f 100644
--- a/Setup.cmd
+++ b/Setup.cmd
@@ -1,6 +1,6 @@
@echo off
-rem one click: elevates, runs the IoT profile through Install.ps1, keeps the window open.
-rem extra flags pass straight through: Setup.cmd -SkipApps / -ConfigsOnly / -Minimal ...
+rem one click: elevates, runs the IoT post-install profile, exits clean on success.
+rem extra flags pass straight through: Setup.cmd -SkipApps / -ConfigsOnly / -Minimal / -NoDebloat ...
cd /d "%~dp0"
fltmc >nul 2>&1
if "%errorlevel%"=="0" goto run
@@ -18,6 +18,13 @@ if "%~1"=="" (
exit /b
:run
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install.ps1" -Profile iot -Unattended %*
+if errorlevel 1 (
+ echo.
+ echo setup failed. log + report live in C:\Windows\Logs\Win-Iot-Setup
+ echo fix the error above, then re-run.
+ pause
+ exit /b 1
+)
echo.
echo all done. log + report live in C:\Windows\Logs\Win-Iot-Setup
-pause
+exit /b 0
diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md
index 8581966..244f2a4 100644
--- a/THIRD-PARTY-NOTICES.md
+++ b/THIRD-PARTY-NOTICES.md
@@ -19,7 +19,7 @@ engines per app, first hit wins: staged `-OfflineDir` files, winget, GitHub rele
| opencode | `SST.opencode`. CI also installs `opencode-ai@1.19.4` from npm to validate configs | |
| shell pack | Starship, zoxide, fzf, bat, eza, Fastfetch | |
| Windows Terminal | `Microsoft.WindowsTerminal` | |
-| optional (default; `-Minimal` skips) | Obsidian, Spotify, Mem Reduct (`Henry++.MemReduct`) | |
+| optional (default; `-Minimal` skips) | Joplin (`Joplin.Joplin`), Spotube (`KRTirtho.Spotube`), Mem Reduct (`Henry++.MemReduct`) | |
| runtimes | VC++ 2005 to 2022, .NET 8 Desktop Runtime | |
| context7 MCP, Playwright MCP | `@upstash/context7-mcp@4.4.4`, `@playwright/mcp@0.0.83`, fetched by `npx` the first time OpenCode starts them | |
diff --git a/assets/preview-iot.svg b/assets/preview-iot.svg
index cf978dc..35f482c 100644
--- a/assets/preview-iot.svg
+++ b/assets/preview-iot.svg
@@ -11,7 +11,7 @@
$Install.ps1 -Profile iot -OfflineDir D:\stage
$Validate.ps1 -Profile iot
sourcesstaged files, winget, vendor URLs
- desktopstock Windows, no tweaks or debloat
+ desktopslim post-install, one default debloat pass
verifychecks configs and installed state
diff --git a/config/daily/apps.json b/config/daily/apps.json
deleted file mode 100644
index ac16494..0000000
--- a/config/daily/apps.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "winget": [
- { "id": "Microsoft.WindowsTerminal", "name": "Windows Terminal" },
- { "id": "VSCodium.VSCodium", "name": "VSCodium" },
- { "id": "Git.Git", "name": "Git" },
- { "id": "GitHub.cli", "name": "GitHub CLI" },
- { "id": "OpenJS.NodeJS.LTS", "name": "Node.js LTS" },
- { "id": "Python.Python.3.12", "name": "Python 3.12" },
- { "id": "ONLYOFFICE.DesktopEditors", "name": "ONLYOFFICE Desktop Editors" },
- { "id": "LibreWolf.LibreWolf", "name": "LibreWolf" },
- { "id": "KeePassXCTeam.KeePassXC", "name": "KeePassXC" }
- ],
- "portable": [
- {
- "name": "MercuryGram desktop",
- "url": "https://github.com/Mercurygram/mdesktop/releases",
- "target": "%LOCALAPPDATA%\\Portable\\MercuryGram"
- },
- {
- "name": "Vesktop",
- "url": "https://github.com/Vencord/Vesktop/releases",
- "target": "%LOCALAPPDATA%\\Portable\\Vesktop"
- }
- ],
- "extensions": [
- "ms-python.python",
- "ms-toolsai.jupyter",
- "yzhang.markdown-all-in-one",
- "esbenp.prettier-vscode",
- "EditorConfig.EditorConfig",
- "streetsidesoftware.code-spell-checker",
- "tamasfe.even-better-toml",
- "redhat.vscode-yaml"
- ],
- "pip": [
- "openpyxl",
- "matplotlib",
- "pandas",
- "numpy",
- "scipy"
- ]
-}
diff --git a/config/debloat.json b/config/debloat.json
new file mode 100644
index 0000000..aba23f4
--- /dev/null
+++ b/config/debloat.json
@@ -0,0 +1,69 @@
+{
+ "version": 1,
+ "registry": [
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarAl", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarMn", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "ChatIcon", "value": 3, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "ShowCopilotButton", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarDa", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "HideFileExt", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "TaskbarEndTask", "value": 1, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "LaunchTo", "value": 1, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "Start_IrisRecommendations", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced", "name": "Start_AccountNotifications", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SilentInstalledAppsEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SystemPaneSuggestionsEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SubscribedContent-338388Enabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SubscribedContent-338389Enabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SubscribedContent-353694Enabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SubscribedContent-353696Enabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "RotatingLockScreenEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "SoftLandingEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "PreInstalledAppsEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\ContentDeliveryManager", "name": "OemPreInstalledAppsEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\AdvertisingInfo", "name": "Enabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy", "name": "TailoredExperiencesWithDiagnosticDataEnabled", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy", "name": "PublishUserActivities", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Privacy", "name": "UploadUserActivities", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "name": "RestrictImplicitTextCollection", "value": 1, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\InputPersonalization", "name": "RestrictImplicitInkCollection", "value": 1, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\InputPersonalization\\TrainedDataStore", "name": "HarvestContacts", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Microsoft\\Speech_OneCore\\Settings\\OnlineSpeechPrivacy", "name": "HasAccepted", "value": 0, "type": "DWord" },
+ { "path": "HKCU:\\Software\\Policies\\Microsoft\\Windows\\Explorer", "name": "DisableSearchBoxSuggestions", "value": 1, "type": "DWord" },
+ { "path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\WindowsCopilot", "name": "TurnOffWindowsCopilot", "value": 1, "type": "DWord" },
+ { "path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection", "name": "AllowTelemetry", "value": 0, "type": "DWord" },
+ { "path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection", "name": "AllowTelemetry", "value": 0, "type": "DWord" },
+ { "path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Dsh", "name": "AllowNewsAndInterests", "value": 0, "type": "DWord" },
+ { "path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\CloudContent", "name": "DisableWindowsConsumerFeatures", "value": 1, "type": "DWord" }
+ ],
+ "defaultRegistryValues": [
+ { "path": "HKCU:\\Software\\Classes\\CLSID\\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\\InprocServer32", "value": "" }
+ ],
+ "appx": [
+ "Microsoft.Clipchamp",
+ "Microsoft.BingNews",
+ "Microsoft.BingWeather",
+ "Microsoft.GetHelp",
+ "Microsoft.MicrosoftOfficeHub",
+ "Microsoft.MicrosoftSolitaireCollection",
+ "Microsoft.OutlookForWindows",
+ "Microsoft.PowerAutomateDesktop",
+ "Microsoft.StartExperiencesApp",
+ "Microsoft.Todos",
+ "Microsoft.Windows.DevHome",
+ "Microsoft.WindowsFeedbackHub",
+ "MicrosoftTeams",
+ "MSTeams",
+ "Microsoft.Copilot"
+ ],
+ "scheduledTasks": [
+ { "path": "\\Microsoft\\Windows\\Application Experience\\", "name": "ProgramDataUpdater" },
+ { "path": "\\Microsoft\\Windows\\Application Experience\\", "name": "Microsoft Compatibility Appraiser" },
+ { "path": "\\Microsoft\\Windows\\Customer Experience Improvement Program\\", "name": "Consolidator" },
+ { "path": "\\Microsoft\\Windows\\Customer Experience Improvement Program\\", "name": "UsbCeip" },
+ { "path": "\\Microsoft\\Windows\\Windows Error Reporting\\", "name": "QueueReporting" },
+ { "path": "\\Microsoft\\Windows\\Feedback\\Siuf\\", "name": "DmClient" },
+ { "path": "\\Microsoft\\Windows\\Feedback\\Siuf\\", "name": "DmClientOnScenarioDownload" },
+ { "path": "\\Microsoft\\Windows\\Autochk\\", "name": "Proxy" }
+ ]
+}
diff --git a/config/joplin/settings.json b/config/joplin/settings.json
new file mode 100644
index 0000000..441a7b7
--- /dev/null
+++ b/config/joplin/settings.json
@@ -0,0 +1,7 @@
+{
+ "theme": 1,
+ "sync.target": 0,
+ "editor.codeView": true,
+ "editor.spellcheck.enabled": true,
+ "markdown.plugin.softbreaks": false
+}
diff --git a/docs/APPS.md b/docs/APPS.md
index 4c4afa3..1b1b055 100644
--- a/docs/APPS.md
+++ b/docs/APPS.md
@@ -12,6 +12,8 @@ files.
| VSCodium | daily, iot | `VSCodium.VSCodium` | `config/vscodium/settings.json`, `VSCodium/graphite-amber-theme/` | Graphite Amber |
| LibreWolf | daily, iot | `LibreWolf.LibreWolf` | `LibreWolf/librewolf.overrides.cfg` | native light |
| Vesktop | daily, iot | `Vencord.Vesktop` | `config/vesktop/settings.json`, `Vesktop/quickcss.css` | Graphite Amber |
+| Joplin | daily, iot, optional | `Joplin.Joplin` | `config/joplin/settings.json` | native light |
+| Spotube | iot, optional | `KRTirtho.Spotube` | app-managed | native light |
| Mem Reduct | iot, optional | `Henry++.MemReduct` | `MemReduct/memreduct.ini` | native light |
## 7-Zip
@@ -71,6 +73,28 @@ Vesktop and Vencord settings are merged into
Graphite Amber Quick CSS. Close Vesktop before changing these files; it
rewrites settings on exit.
+## Joplin
+
+Joplin is the FOSS notes replacement for Obsidian. The installer seeds
+`config/joplin/settings.json` to `%USERPROFILE%\.config\joplin-desktop\settings.json`
+on a fresh profile. It sets the light theme, code view, spellcheck, and
+`sync.target: 0` so the first run stays local. Existing settings are kept on
+re-run; `-Force` replaces them after a backup. Sync is a one-time Joplin setting
+if you want it.
+
+## Spotube
+
+Spotube is the FOSS Spotify client. It is installed by winget, or from the
+GitHub release when winget is missing. Its settings live in Flutter
+`shared_preferences.json` and are not stable across releases, so the installer
+does not ship a fake config. The first-run wizard is a one-time step.
+
+## Outlook
+
+The default debloat pass removes `Microsoft.OutlookForWindows` and the
+provisioned package, then turns off the consumer-app reinstall switches. Classic
+Outlook from a paid Office install is not touched.
+
## Mem Reduct
IoT app included by default; `-Minimal` skips it. Winget ID is
diff --git a/docs/CLI.md b/docs/CLI.md
index ce39a02..1b9e76a 100644
--- a/docs/CLI.md
+++ b/docs/CLI.md
@@ -16,7 +16,7 @@ to the profile script unchanged.
`Install.ps1 -Verify` is an alias for the matching validator. Neither validation
path writes settings, state, logs, transcripts, or reports. `Setup.cmd` always
starts the IoT profile through `Install.ps1` with `-Unattended` before any extra
-flags you pass.
+flags you pass. It exits clean on success and pauses only on failure.
## common flags
@@ -31,9 +31,10 @@ flags you pass.
| `-ConfigsOnly` | no | yes | copy configs only |
| `-OfflineDir` | no | yes | staged install source |
| `-SkipApps` | no | yes | skip app install phase |
+| `-NoDebloat` | yes | yes | skip the single default debloat pass |
daily `-Only` accepts `preflight`, `os`, `packages`, `apps`, `engineering`,
-`developer`, `omniroute`, `theme`, `configs`, `validate`, or `all`.
+`developer`, `omniroute`, `theme`, `configs`, `debloat`, `validate`, or `all`.
iot `-Only` and `-SkipApps` match app IDs as substrings. They do not gate
configs, drivers, repairs, or other phases.
@@ -44,7 +45,7 @@ daily module load order is alphabetical from `scripts/modules/`. Run order is
fixed in `scripts/Install.ps1`:
```text
-preflight os packages apps engineering developer omniroute theme configs validate
+preflight os packages apps engineering developer omniroute theme configs debloat validate
```
Daily state lives in `%LOCALAPPDATA%\win11-stack\state.json`. IoT state lives
@@ -71,6 +72,7 @@ Defender preferences are never written by this repo.
- `OMNIROUTE_API_KEY` is read from the environment only. It is never written to a file.
- dry-run skips the execution policy write.
+- the default debloat pass is one fixed set. there are no severity tiers.
- IoT log, state, transcript, and report setup happens after `-Verify`, so the read-only path writes nothing.
- LibreWolf default browser is a manual Windows UserChoice step.
- no published tag is moved by installer runs.
diff --git a/docs/RESEARCH.md b/docs/RESEARCH.md
index 4698289..ca382f4 100644
--- a/docs/RESEARCH.md
+++ b/docs/RESEARCH.md
@@ -81,6 +81,11 @@ scans, and exclusions untouched.
portable alternative: v7.4.4.1, SHA256
`BCE4A20B0389095CCD5DF95C24FC0F9CA23D4EAF758F259986AC579F548F1774`.
`tdata` stays next to the executable.
+- Joplin replaces Obsidian. The installer seeds a local-only light profile at
+ `%USERPROFILE%\.config\joplin-desktop\settings.json`.
+- Spotube replaces Spotify. It is installed from winget or the GitHub release.
+ Its Flutter preferences are left to the app because the file shape is not a
+ stable public contract.
- Vesktop uses `%APPDATA%\vesktop\settings.json`; Vencord uses
`%APPDATA%\vesktop\settings\settings.json`. Close Vesktop before editing,
because it rewrites settings on exit.
@@ -111,6 +116,8 @@ scheduled cleanup is configured.
| Chrome/Edge for personal use | LibreWolf | Separate profiles, no Google sync. |
| Discord desktop | Vesktop | Vencord, lower overhead, no telemetry plugins. |
| Telegram Desktop | MercuryGram (manual) | Portable, pinned release. |
+| Obsidian | Joplin | AGPL-3.0, local-first, optional sync. |
+| Spotify | Spotube | AGPL-3.0 client; YouTube-backed playback, one-time setup. |
| WinRAR | 7-Zip | No nag screen. |
| Browser password store | KeePassXC | Local vault, no cloud. |
| Flow Launcher | Windows Start search | No extra background app. |
diff --git a/scripts/Install.ps1 b/scripts/Install.ps1
index c03db14..8ba43d4 100644
--- a/scripts/Install.ps1
+++ b/scripts/Install.ps1
@@ -56,6 +56,7 @@ param(
[string]$Arch = '',
[switch]$DetectHardware,
[switch]$Minimal,
+ [switch]$NoDebloat,
[switch]$Unattended,
[switch]$NoWingetBootstrap,
[string]$OfflineDir = '',
@@ -75,6 +76,7 @@ $ErrorActionPreference = 'Stop'
$libPath = Join-Path $PSScriptRoot 'lib\Common.ps1'
. $libPath
+. (Join-Path $PSScriptRoot 'lib\Debloat.ps1')
if ($Profile -eq 'iot') {
# IoT profile: run the modular IoT implementation from scripts/modules/iot.
@@ -84,7 +86,7 @@ if ($Profile -eq 'iot') {
if ($Status) {
$statusState = Get-StackState
- $statusOrder = @('preflight', 'os', 'packages', 'apps', 'engineering', 'developer', 'omniroute', 'theme', 'configs', 'validate')
+ $statusOrder = @('preflight', 'os', 'packages', 'apps', 'engineering', 'developer', 'omniroute', 'theme', 'configs', 'debloat', 'validate')
$statusDone = @($statusState.Completed)
$statusTodo = @($statusOrder | Where-Object { $statusDone -notcontains $_ })
Write-Host 'win11-engineering-stack status'
@@ -105,6 +107,7 @@ if ($Status) {
Reset-WriteCounts
$script:DryRun = [bool]$DryRun
$script:Force = [bool]$Force
+$script:NoDebloat = [bool]$NoDebloat
$script:SxsPath = $SxsPath
$script:GitName = $GitName
$script:GitEmail = $GitEmail
@@ -115,7 +118,7 @@ $script:MatlabInstaller = $MatlabInstaller
$Only = @($Only | ForEach-Object { $_ -split ',' } | ForEach-Object { $_.Trim() } | Where-Object { $_ })
if (-not (Test-Admin) -and -not $DryRun) {
- $adminModules = @('os', 'engineering', 'developer')
+ $adminModules = @('os', 'engineering', 'developer', 'debloat')
$needsAdmin = ($Only.Count -eq 0) -or ($Only -contains 'all') -or (@($Only | Where-Object { $adminModules -contains $_ }).Count -gt 0)
}
else {
@@ -135,6 +138,7 @@ if ($needsAdmin) {
if ($Only.Count -gt 0) { $arguments += @('-Only', (& $quote ($Only -join ','))) }
if ($Resume) { $arguments += '-Resume' }
if ($Force) { $arguments += '-Force' }
+ if ($NoDebloat) { $arguments += '-NoDebloat' }
if ($SxsPath) { $arguments += @('-SxsPath', (& $quote $SxsPath)) }
if ($GitName) { $arguments += @('-GitName', (& $quote $GitName)) }
if ($GitEmail) { $arguments += @('-GitEmail', (& $quote $GitEmail)) }
@@ -149,7 +153,7 @@ if ($needsAdmin) {
return
}
-$order = @('preflight', 'os', 'packages', 'apps', 'engineering', 'developer', 'omniroute', 'theme', 'configs', 'validate')
+$order = @('preflight', 'os', 'packages', 'apps', 'engineering', 'developer', 'omniroute', 'theme', 'configs', 'debloat', 'validate')
$functions = @{
preflight = 'Invoke-Preflight'
os = 'Invoke-OS'
@@ -160,6 +164,7 @@ $functions = @{
omniroute = 'Invoke-OmniRoute'
theme = 'Invoke-Theme'
configs = 'Invoke-Configs'
+ debloat = 'Invoke-DebloatModule'
validate = 'Invoke-Validate'
}
diff --git a/scripts/lib/Common.ps1 b/scripts/lib/Common.ps1
index 670ac9a..9736a9f 100644
--- a/scripts/lib/Common.ps1
+++ b/scripts/lib/Common.ps1
@@ -202,6 +202,8 @@ function Get-ImageGuardrails {
WinSxS = Test-Path (Join-Path $env:WINDIR 'WinSxS')
Winget = $winget
ComponentStore = Test-Path (Join-Path $env:WINDIR 'WinSxS\Backup')
+ Appx = $null -ne (Get-Command Get-AppxPackage -ErrorAction SilentlyContinue)
+ ScheduledTasks = $null -ne (Get-Command Get-ScheduledTask -ErrorAction SilentlyContinue)
}
}
diff --git a/scripts/lib/Debloat.ps1 b/scripts/lib/Debloat.ps1
new file mode 100644
index 0000000..7a05d9f
--- /dev/null
+++ b/scripts/lib/Debloat.ps1
@@ -0,0 +1,212 @@
+# Shared single-pass debloat. Windows PowerShell 5.1 compatible.
+# The list lives in config/debloat.json so the policy is reviewable.
+# Nothing here touches Windows Update, Defender, Store, Terminal, WebView2, or .NET.
+
+function Get-DebloatConfig {
+ $path = Join-Path $script:ConfigRoot 'debloat.json'
+ if (-not (Test-Path -LiteralPath $path)) {
+ throw "Debloat config missing: $path"
+ }
+ return Get-Content -LiteralPath $path -Raw | ConvertFrom-Json
+}
+
+function Set-DebloatDefaultRegistryValue {
+ param(
+ [Parameter(Mandatory = $true)][string]$Path,
+ [AllowEmptyString()][string]$Value = ''
+ )
+
+ $exists = Test-Path -LiteralPath $Path
+ $current = $null
+ if ($exists) {
+ try { $current = (Get-Item -LiteralPath $Path).GetValue('') } catch { $current = $null }
+ }
+ if ($exists -and "$current" -eq "$Value") {
+ Write-Skip "default value already set: $Path"
+ return
+ }
+
+ if ($script:DryRun) {
+ Write-Detail "[dry-run] default value $Path = '$Value'"
+ return
+ }
+
+ try {
+ if (-not $exists) {
+ New-Item -Path $Path -Force -ErrorAction Stop | Out-Null
+ }
+ Set-Item -LiteralPath $Path -Value $Value -ErrorAction Stop
+ Write-Ok "default value set: $Path"
+ }
+ catch {
+ Write-Skip "default value skipped: $Path ($($_.Exception.Message))"
+ }
+}
+
+function Invoke-DebloatRegistry {
+ param([object[]]$Items)
+
+ foreach ($item in @($Items)) {
+ if ($null -eq $item) { continue }
+ try {
+ Set-RegistryValue -Path $item.path -Name $item.name -Value $item.value -Type $item.type
+ }
+ catch {
+ Write-Skip "registry value skipped: $($item.path)\$($item.name) ($($_.Exception.Message))"
+ }
+ }
+}
+
+function Invoke-DebloatAppx {
+ param([string[]]$Names)
+
+ if ($null -eq (Get-Command Get-AppxPackage -ErrorAction SilentlyContinue)) {
+ Write-Skip 'AppX cmdlets are missing; app removal skipped.'
+ return
+ }
+
+ $provisionCmd = Get-Command Get-AppxProvisionedPackage -ErrorAction SilentlyContinue
+ $removeProvisionCmd = Get-Command Remove-AppxProvisionedPackage -ErrorAction SilentlyContinue
+
+ foreach ($name in @($Names)) {
+ if (-not $name) { continue }
+
+ $seen = $false
+ $packages = @()
+ try {
+ $packages = @(Get-AppxPackage -Name $name -AllUsers -ErrorAction SilentlyContinue)
+ }
+ catch {
+ $packages = @()
+ }
+ if (-not $packages.Count) {
+ try {
+ $packages = @(Get-AppxPackage -Name $name -ErrorAction SilentlyContinue)
+ }
+ catch {
+ $packages = @()
+ }
+ }
+
+ foreach ($package in $packages) {
+ $seen = $true
+ if ($script:DryRun) {
+ Write-Detail "[dry-run] remove appx $($package.PackageFullName)"
+ continue
+ }
+
+ $removed = $false
+ try {
+ Remove-AppxPackage -Package $package.PackageFullName -AllUsers -ErrorAction Stop
+ $removed = $true
+ }
+ catch {
+ try {
+ Remove-AppxPackage -Package $package.PackageFullName -ErrorAction Stop
+ $removed = $true
+ }
+ catch {
+ $removed = $false
+ }
+ }
+ if ($removed) {
+ Write-Ok "removed appx $name"
+ }
+ else {
+ Write-Skip "appx $name is in use or locked"
+ }
+ }
+
+ if ($provisionCmd -and $removeProvisionCmd) {
+ $provisioned = @()
+ try {
+ $provisioned = @(Get-AppxProvisionedPackage -Online -ErrorAction Stop |
+ Where-Object { $_.DisplayName -eq $name -or $_.PackageName -like "$name*" })
+ }
+ catch {
+ $provisioned = @()
+ }
+
+ foreach ($package in $provisioned) {
+ $seen = $true
+ if ($script:DryRun) {
+ Write-Detail "[dry-run] remove provisioned appx $($package.PackageName)"
+ continue
+ }
+ try {
+ Remove-AppxProvisionedPackage -Online -PackageName $package.PackageName -ErrorAction Stop | Out-Null
+ Write-Ok "removed provisioned appx $name"
+ }
+ catch {
+ Write-Skip "provisioned appx $name could not be removed"
+ }
+ }
+ }
+
+ if (-not $seen) {
+ Write-Skip "appx $name not present"
+ }
+ }
+}
+
+function Invoke-DebloatTasks {
+ param([object[]]$Items)
+
+ if ($null -eq (Get-Command Get-ScheduledTask -ErrorAction SilentlyContinue) -or
+ $null -eq (Get-Command Disable-ScheduledTask -ErrorAction SilentlyContinue)) {
+ Write-Skip 'Scheduled-task cmdlets are missing; task cleanup skipped.'
+ return
+ }
+
+ foreach ($item in @($Items)) {
+ if ($null -eq $item) { continue }
+ $task = $null
+ try {
+ $task = Get-ScheduledTask -TaskPath $item.path -TaskName $item.name -ErrorAction SilentlyContinue
+ }
+ catch {
+ $task = $null
+ }
+ if ($null -eq $task) {
+ Write-Skip "task not present: $($item.name)"
+ continue
+ }
+ if ($task.State -eq 'Disabled') {
+ Write-Skip "task already disabled: $($item.name)"
+ continue
+ }
+ if ($script:DryRun) {
+ Write-Detail "[dry-run] disable task $($item.path)$($item.name)"
+ continue
+ }
+ try {
+ Disable-ScheduledTask -TaskPath $item.path -TaskName $item.name -ErrorAction Stop | Out-Null
+ Write-Ok "disabled task $($item.name)"
+ }
+ catch {
+ Write-Skip "task $($item.name) could not be disabled"
+ }
+ }
+}
+
+function Invoke-Debloat {
+ param([switch]$Skip)
+
+ if ($Skip) {
+ Write-Skip 'Debloat skipped (-NoDebloat).'
+ return
+ }
+
+ Write-Step 'Debloat: one default set'
+ $config = Get-DebloatConfig
+
+ Invoke-DebloatRegistry -Items @($config.registry)
+ foreach ($item in @($config.defaultRegistryValues)) {
+ if ($null -eq $item) { continue }
+ Set-DebloatDefaultRegistryValue -Path $item.path -Value $item.value
+ }
+ Invoke-DebloatAppx -Names @($config.appx)
+ Invoke-DebloatTasks -Items @($config.scheduledTasks)
+
+ Write-Detail 'Kept: Windows Update, Defender, Store, Terminal, WebView2, .NET, Paint, Notepad, Photos, Camera, Snipping Tool, Sound Recorder, Media Player, QuickAssist.'
+}
diff --git a/scripts/modules/00-Preflight.ps1 b/scripts/modules/00-Preflight.ps1
index 21d922f..17836f4 100644
--- a/scripts/modules/00-Preflight.ps1
+++ b/scripts/modules/00-Preflight.ps1
@@ -44,6 +44,20 @@ function Invoke-Preflight {
Write-Ok 'winget present.'
}
+ if ($guardrails.Appx) {
+ Write-Ok 'AppX cmdlets present.'
+ }
+ else {
+ Write-Skip 'AppX cmdlets are missing; debloat app removal will skip.'
+ }
+
+ if ($guardrails.ScheduledTasks) {
+ Write-Ok 'Scheduled-task cmdlets present.'
+ }
+ else {
+ Write-Skip 'Scheduled-task cmdlets are missing; task cleanup will skip.'
+ }
+
if ($missing.Count -gt 0) {
Write-Warn "This image is missing: $($missing -join ', ')."
Write-Warn 'Rebuild with WinUtil/MicroWin keeping Defender, WinSxS, Windows Update, and App Installer.'
diff --git a/scripts/modules/30-Apps.ps1 b/scripts/modules/30-Apps.ps1
index c0763d5..8d5e3ed 100644
--- a/scripts/modules/30-Apps.ps1
+++ b/scripts/modules/30-Apps.ps1
@@ -181,6 +181,7 @@ function Invoke-Apps {
Install-AppPackage -Id 'KeePassXCTeam.KeePassXC' -Name 'KeePassXC'
Install-AppPackage -Id 'LibreWolf.LibreWolf' -Name 'LibreWolf'
Install-AppPackage -Id 'ONLYOFFICE.DesktopEditors' -Name 'ONLYOFFICE'
+ Install-AppPackage -Id 'Joplin.Joplin' -Name 'Joplin'
Install-AppPackage -Id 'Vencord.Vesktop' -Name 'Vesktop'
Install-AppPackage -Id 'Microsoft.WindowsTerminal' -Name 'Windows Terminal' -Command 'wt'
diff --git a/scripts/modules/50-Debloat.ps1 b/scripts/modules/50-Debloat.ps1
new file mode 100644
index 0000000..b493874
--- /dev/null
+++ b/scripts/modules/50-Debloat.ps1
@@ -0,0 +1,7 @@
+function Invoke-DebloatModule {
+ $skip = $false
+ if ($null -ne (Get-Variable -Name NoDebloat -Scope Script -ErrorAction SilentlyContinue)) {
+ $skip = [bool]$script:NoDebloat
+ }
+ Invoke-Debloat -Skip:$skip
+}
diff --git a/scripts/modules/80-Configs.ps1 b/scripts/modules/80-Configs.ps1
index 6be9708..5a21c22 100644
--- a/scripts/modules/80-Configs.ps1
+++ b/scripts/modules/80-Configs.ps1
@@ -24,6 +24,25 @@ function Set-VSCodiumConfig {
else { Write-Ok "VSCodium settings merged: $target" }
}
+function Set-JoplinConfig {
+ $source = Join-Path $script:ConfigRoot 'joplin\settings.json'
+ if (-not (Test-Path $source)) {
+ Write-Skip "Joplin settings template missing: $source"
+ return
+ }
+
+ $target = Join-Path $env:USERPROFILE '.config\joplin-desktop\settings.json'
+ if ((Test-Path $target) -and -not $script:Force) {
+ Write-Skip "Joplin settings kept: $target"
+ return
+ }
+
+ $settings = ConvertTo-DeepHashtable (Get-Content $source -Raw | ConvertFrom-Json)
+ Write-JsonFile -Path $target -Value $settings -NoMerge
+ if ($script:DryRun) { Write-Detail "[dry-run] Joplin settings would be written: $target" }
+ else { Write-Ok "Joplin settings written: $target" }
+}
+
function Set-LibreWolfConfig {
$source = Join-Path $script:RepoRoot 'LibreWolf\librewolf.overrides.cfg'
if (-not (Test-Path $source)) {
@@ -117,12 +136,13 @@ function Set-VesktopConfig {
}
function Invoke-Configs {
- Write-Step 'Configs: editor, OpenCode, Vesktop, LibreWolf'
+ Write-Step 'Configs: editor, OpenCode, Vesktop, LibreWolf, Joplin'
Set-VSCodiumConfig
Set-OpenCodeConfig
Set-VesktopConfig
Set-LibreWolfConfig
+ Set-JoplinConfig
Write-Detail 'Config backups:'
if ($script:BackupSession) {
diff --git a/scripts/modules/iot/Configs.ps1 b/scripts/modules/iot/Configs.ps1
index eb8f541..541008d 100644
--- a/scripts/modules/iot/Configs.ps1
+++ b/scripts/modules/iot/Configs.ps1
@@ -115,6 +115,8 @@ if (Test-Path $ocSkillSrc) {
}
# terminal config, fresh-only. only where terminal can actually land (same build gate as the install).
if ($wtOk) { Copy-Fresh (Join-Path $Repo 'WindowsTerminal\settings.json') (Join-Path $env:LOCALAPPDATA 'Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json') }
+# joplin: light theme and local-only profile on first run. keep edits on re-run.
+Copy-Fresh (Join-Path $Repo 'config\joplin\settings.json') (Join-Path $env:USERPROFILE '.config\joplin-desktop\settings.json')
$ocPlugins = Join-Path $env:USERPROFILE '.config\opencode\plugins'
if (-not $DryRun -and -not (Test-Path $ocPlugins)) { New-Item -ItemType Directory -Force -Path $ocPlugins | Out-Null }
# librewolf: safe defaults plus three isolated profiles. fresh-only overrides.
diff --git a/scripts/modules/iot/Debloat.ps1 b/scripts/modules/iot/Debloat.ps1
new file mode 100644
index 0000000..8c00dbe
--- /dev/null
+++ b/scripts/modules/iot/Debloat.ps1
@@ -0,0 +1,12 @@
+# ---------- 3. one default debloat pass ----------
+# Runs after apps and before configs. Missing AppX or task cmdlets are skips,
+# not failures, so tiny11/AspectOS-style images keep going.
+if ((-not $ConfigsOnly) -and (Should-Run 'debloat')) {
+ Log 'Debloat...'
+ Start-Phase 'debloat'
+ Invoke-Debloat -Skip:$NoDebloat
+ Stop-Phase
+ Complete-Phase 'debloat'
+} elseif ($ConfigsOnly) {
+ Log 'Configs-only: debloat skipped.'
+}
diff --git a/scripts/modules/iot/IotMain.ps1 b/scripts/modules/iot/IotMain.ps1
index 1e70923..0729d21 100644
--- a/scripts/modules/iot/IotMain.ps1
+++ b/scripts/modules/iot/IotMain.ps1
@@ -18,6 +18,8 @@ if ($Verify) {
$repoFiles = @(
'config\defaults.json',
'config\hashes.json',
+ 'config\debloat.json',
+ 'config\joplin\settings.json',
'config\opencode\opencode.json',
'config\vscodium\settings.json',
'config\vesktop\settings.json',
@@ -64,8 +66,17 @@ if ($Verify) {
$Stamp = Get-Date -Format 'yyyyMMdd-HHmmss'
# C:\Windows\Logs needs admin. non-admin runs fall back to TEMP instead of dying.
-try { New-Item -ItemType Directory -Force -Path $LogDir -EA Stop | Out-Null }
-catch { $LogDir = Join-Path $env:TEMP 'Win-Iot-Setup'; New-Item -ItemType Directory -Force -Path $LogDir -EA SilentlyContinue | Out-Null }
+# probe a real write: an existing directory can still be read-only for this user.
+try {
+ New-Item -ItemType Directory -Force -Path $LogDir -EA Stop | Out-Null
+ $probe = Join-Path $LogDir '.write-test'
+ Set-Content -Path $probe -Value 'ok' -Encoding Ascii -EA Stop
+ Remove-Item $probe -Force -EA SilentlyContinue
+}
+catch {
+ $LogDir = Join-Path $env:TEMP 'Win-Iot-Setup'
+ New-Item -ItemType Directory -Force -Path $LogDir -EA SilentlyContinue | Out-Null
+}
# non-admin runs land in TEMP, so the state dir follows the log dir there.
if ($StateDir -eq 'C:\Windows\Logs\Win-Iot-Setup\state' -and $LogDir -ne 'C:\Windows\Logs\Win-Iot-Setup') { $StateDir = Join-Path $LogDir 'state' }
$LogFile = Join-Path $LogDir "install-$Stamp.log"
@@ -159,6 +170,8 @@ if ($OfflineDir) {
. (Join-Path $Repo 'scripts\modules\iot\Repairs.ps1')
+. (Join-Path $Repo 'scripts\modules\iot\Debloat.ps1')
+
. (Join-Path $Repo 'scripts\modules\iot\Configs.ps1')
diff --git a/scripts/modules/iot/Packages.ps1 b/scripts/modules/iot/Packages.ps1
index 64e511b..da2b97d 100644
--- a/scripts/modules/iot/Packages.ps1
+++ b/scripts/modules/iot/Packages.ps1
@@ -147,6 +147,8 @@ $gitMap = @{
'Git.Git' = @{ repo='git-for-windows/git'; pattern='Git-*-64-bit.exe' }
'VSCodium.VSCodium' = @{ repo='VSCodium/vscodium'; pattern='VSCodiumSetup-x64-*.exe' }
'SST.opencode' = @{ repo='sst/opencode'; pattern='opencode-windows-x64.zip' }
+ 'Joplin.Joplin' = @{ repo='laurent22/joplin'; pattern='Joplin-Setup-*.exe' }
+ 'KRTirtho.Spotube' = @{ repo='KRTirtho/spotube'; pattern='Spotube-windows-x86_64-setup.exe' }
}
function Install-GitHubAsset($id) {
$g = $gitMap[$id]
@@ -279,7 +281,7 @@ $shellApps = @(
'Fastfetch-cli.Fastfetch'
)
$coreApps += $shellApps
-$optionalApps = @('Obsidian.Obsidian','Spotify.Spotify','Henry++.MemReduct')
+$optionalApps = @('Joplin.Joplin','KRTirtho.Spotube','Henry++.MemReduct')
# Optional apps are part of the default install; -Minimal leaves them out.
if (-not $Minimal) { $coreApps += $optionalApps }
# terminal wants win10 1903+. on ltsc 2019 it would just fail every run.
@@ -311,6 +313,8 @@ $failed = @()
$installed = @()
# apps we actually tried an engine on this run. skip-only failures don't need a retry pass.
$script:appAttempted = @{}
+# apps with no usable engine on this image are skips, not failures.
+$script:appSkipped = @{}
# per-app state so -Idempotent re-runs skip what already landed and retry
# only what failed. one small json next to phases.json.
function Get-AppState {
@@ -392,7 +396,7 @@ function Install-OfflineFile($file) {
$proc = Start-Process $exe -ArgumentList '/q' -Wait -PassThru -EA Stop
} elseif ($file.Name -like '*python*') {
$proc = Start-Process $exe -ArgumentList '/quiet', 'InstallAllUsers=0', 'PrependPath=1' -Wait -PassThru -EA Stop
- } elseif ($file.Name -like '*VSCodium*' -or $file.Name -like '*Git*' -or $file.Name -like '*Telegram*' -or $file.Name -like '*tsetup*' -or $file.Name -like '*td-setup*') {
+ } elseif ($file.Name -like '*VSCodium*' -or $file.Name -like '*Git*' -or $file.Name -like '*Telegram*' -or $file.Name -like '*tsetup*' -or $file.Name -like '*td-setup*' -or $file.Name -like '*Spotube*') {
$proc = Start-Process $exe -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART' -Wait -PassThru -EA Stop
} else {
$proc = Start-Process $exe -ArgumentList '/S' -Wait -PassThru -EA Stop
@@ -432,8 +436,10 @@ function Install-App($id) {
}
if ($off) {
Log " SKIP $id (staged but no -Unattended. re-run with -Unattended or run $($off.Name) by hand)"
+ $script:appSkipped[$id] = $true
} elseif (-not $gitMap.ContainsKey($id) -and -not $directMap.ContainsKey($id)) {
Log " SKIP $id (no github/direct fallback. stage it in -OfflineDir or retry with winget)"
+ $script:appSkipped[$id] = $true
}
return $false
}
@@ -447,7 +453,7 @@ if ((-not $ConfigsOnly) -and (Should-Run 'apps') -and ($DryRun -or $online -or (
if ($Idempotent -and (Test-AppDone $id)) { Log " skip (done): $id"; continue }
Write-Progress -Activity 'installing apps' -Status "$appIdx/$appTotal $id" -PercentComplete ([int]((($appIdx - 1) * 100) / [math]::Max(1, $appTotal))) -EA SilentlyContinue
if (Install-App $id) { $installed += $id; Set-AppDone $id }
- else { $failed += $id }
+ elseif (-not $script:appSkipped.ContainsKey($id)) { $failed += $id }
}
Write-Progress -Activity 'installing apps' -Completed -EA SilentlyContinue
# one free retry pass. flaky links and rate limits are the usual causes.
@@ -497,6 +503,4 @@ if ($DriverDir -and (Test-Path $DriverDir) -and (-not $ConfigsOnly)) {
} else { Log ' WARN drivers: skipped (not admin).' }
} elseif ($DriverDir) { Log ' WARN drivers: folder missing or configs-only run.' }
-Log 'NOTE manual-only: ExplorerBlurMica (Maplespe releases, optional), Spicetify (after Spotify: Invoke-WebRequest -UseBasicParsing https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | Invoke-Expression).'
-
# Helpers.ps1 is dot-sourced separately by the installer.
From 186965adefada7f6a8c80d444375cb06d6a792f1 Mon Sep 17 00:00:00 2001
From: SOSMLG <117748270+SOSMLG@users.noreply.github.com>
Date: Tue, 24 Nov 2026 14:58:03 -0800
Subject: [PATCH 2/2] fix: audit cleanups and installer exit status
- propagate real IoT app-install failures as exit 1
- fix staged Spotube silent flags and canonical GitHub source
- correct Joplin setting keys and keep its light theme
- treat a missing registry default value as unset in debloat
- remove dead config/daily and stale ignore-patterns docs
- fix stale help, changelog, report, and Joplin backup claims
- normalize new PowerShell files to CRLF
---
CHANGELOG.md | 6 ++--
config/daily/omniroute/README.md | 23 ------------
config/daily/opencode/opencode.json | 43 ----------------------
config/daily/vscodium/settings.json | 55 -----------------------------
config/joplin/settings.json | 3 +-
config/opencode/ignore-patterns.txt | 19 ----------
docs/APPS.md | 4 +--
docs/CLI.md | 1 +
scripts/Install.ps1 | 9 ++++-
scripts/lib/Debloat.ps1 | 2 +-
scripts/modules/iot/Packages.ps1 | 5 +--
scripts/modules/iot/Report.ps1 | 2 +-
12 files changed, 22 insertions(+), 150 deletions(-)
delete mode 100644 config/daily/omniroute/README.md
delete mode 100644 config/daily/opencode/opencode.json
delete mode 100644 config/daily/vscodium/settings.json
delete mode 100644 config/opencode/ignore-patterns.txt
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e385b0..e6d6d5d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -32,12 +32,14 @@ format follows keep a changelog. versions are git tags like `v0.1.0`.
- removed every Windows optimization on request. gone: the old tiered tweak/debloat phases, `-TweaksOnly`, the tweak matrix, O&O config, Lenovo charge cap, DNS/power/taskbar/privacy tuning, temp cleanup, the daily privacy, power, PLC and Defender-exclusion code, and the unused root `lib/` helpers. these are manual now. the new single debloat pass is a separate, fixed set.
- removed the third-party package-manager bootstrap and fallback engine from the IoT installer. package sources are now staged files, winget, GitHub releases, and direct vendor URLs.
- dropped the study pack: Zotero, SumatraPDF, MiKTeX, Typst and their configs. Windows Terminal moved into the base app list.
-- dropped Komorebi and whkd, including keybinds, WM config, autostart shortcuts and smoke checks. the desktop is stock Windows now.
+- dropped Komorebi and whkd, including keybinds, WM config, autostart shortcuts and smoke checks. no tiling WM remains; the shell is stock Windows plus one fixed debloat pass.
- dropped the ISO builder, autounattend templates and `templates/`. offline installs still work through `-OfflineDir`.
- deleted the `tests/` suite on request. `-DryRun` is the remaining preflight check.
### fixed
-- IoT `-Verify` now runs before log, state, transcript, and report setup, so the read-only path writes nothing.
+- IoT runs now exit 1 when an app install actually failed, so `Setup.cmd` pauses instead of claiming success. Skip-only misses on stripped images still exit 0.
+- staged Spotube now uses the NSIS `/S` switch, and its GitHub fallback uses the canonical `team-spotube/spotube` repo.
+- Joplin seed config now uses valid setting keys and keeps a light theme with `themeAutoDetect` off.
- `Install.ps1 -Verify` is an alias for the matching validator, `Install.ps1 -Status` reports saved daily state, and `Validate.ps1` defaults to `daily`.
- the UAC relaunch waits for the elevated child and returns its exit code. daily modules can mark failure, and the run summary prints ok, skip, warn, and fail counts with the next command.
- the IoT 7-Zip smoke test accepts `C:\Program Files\7-Zip\7z.exe` when `7z` is not on `PATH`.
diff --git a/config/daily/omniroute/README.md b/config/daily/omniroute/README.md
deleted file mode 100644
index 3aaee83..0000000
--- a/config/daily/omniroute/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
-# omniroute notes
-
-source: https://github.com/diegosouzapw/OmniRoute
-
-install: `npm install -g omniroute`, then run `omniroute`.
-dashboard: http://localhost:20128
-
-create a key at http://localhost:20128/dashboard/api-manager and set it for your user:
-
-```powershell
-setx OMNIROUTE_API_KEY "your-key-here"
-```
-
-`setup.ps1` never writes a key to a file. it only installs the opencode config that reads
-`OMNIROUTE_API_KEY` from the environment. verify with:
-
-```powershell
-curl http://localhost:20128/v1/models -H "Authorization: Bearer $env:OMNIROUTE_API_KEY"
-```
-
-base URL for tools is `http://localhost:20128/v1`. `127.0.0.1` is used in opencode.json so ipv6
-resolution cannot send the request to the wrong listener. model ids: `auto`, `auto/coding`,
-`auto/fast`. `auto` skips providers marked `tos: avoid`.
diff --git a/config/daily/opencode/opencode.json b/config/daily/opencode/opencode.json
deleted file mode 100644
index 3f4a75c..0000000
--- a/config/daily/opencode/opencode.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "model": "omniroute/auto-coding",
- "permissions": [
- { "action": "read", "resource": "*Siemens/*", "effect": "deny" },
- { "action": "read", "resource": "*MATLAB/*", "effect": "deny" },
- { "action": "read", "resource": "*datasets/*", "effect": "deny" },
- { "action": "read", "resource": "*.venv/*", "effect": "deny" },
- { "action": "read", "resource": "*.ssh/*", "effect": "deny" },
- { "action": "read", "resource": "*.kdbx", "effect": "deny" },
- { "action": "read", "resource": "*.env", "effect": "deny" },
- { "action": "shell", "resource": "*", "effect": "ask" },
- { "action": "shell", "resource": "git status *", "effect": "allow" },
- { "action": "shell", "resource": "git diff *", "effect": "allow" },
- { "action": "shell", "resource": "git log *", "effect": "allow" },
- { "action": "shell", "resource": "git show *", "effect": "allow" }
- ],
- "watcher": {
- "ignore": [
- "**/node_modules/**",
- "**/.git/objects/**",
- "**/Siemens/**",
- "**/MATLAB/**",
- "**/datasets/**",
- "**/.venv/**",
- "**/__pycache__/**",
- "**/site-packages/**"
- ]
- },
- "providers": {
- "omniroute": {
- "env": ["OMNIROUTE_API_KEY"],
- "models": {
- "auto-coding": { "name": "OmniRoute Auto Coding", "modelID": "auto/coding" },
- "auto-fast": { "name": "OmniRoute Auto Fast", "modelID": "auto/fast" },
- "auto": { "name": "OmniRoute Auto", "modelID": "auto" }
- },
- "package": "@opencode/ai/providers/openai-compatible",
- "settings": { "baseURL": "http://127.0.0.1:20128/v1" },
- "name": "OmniRoute"
- }
- },
- "$schema": "https://opencode.ai/config.json"
-}
diff --git a/config/daily/vscodium/settings.json b/config/daily/vscodium/settings.json
deleted file mode 100644
index f29b5fb..0000000
--- a/config/daily/vscodium/settings.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "telemetry.telemetryLevel": "off",
- "telemetry.enableCrashReporter": false,
- "telemetry.enableTelemetry": false,
- "telemetry.editStats.enabled": false,
- "workbench.enableExperiments": false,
- "workbench.settings.enableNaturalLanguageSearch": false,
- "workbench.commandPalette.experimental.enableNaturalLanguageSearch": false,
- "workbench.startupEditor": "none",
- "workbench.welcomePage.walkthroughs.openOnInstall": false,
- "extensions.autoUpdate": false,
- "extensions.autoCheckUpdates": false,
- "update.mode": "none",
- "update.showReleaseNotes": false,
- "editor.fontFamily": "JetBrainsMono Nerd Font Mono, Cascadia Mono, Consolas",
- "editor.fontSize": 13,
- "workbench.colorTheme": "Graphite Amber",
- "workbench.iconTheme": "vs-seti",
- "editor.fontLigatures": true,
- "editor.cursorSmoothCaretAnimation": "on",
- "editor.renderWhitespace": "boundary",
- "editor.rulers": [88, 100],
- "editor.formatOnSave": true,
- "editor.codeActionsOnSave": { "source.organizeImports": "explicit" },
- "files.autoSave": "onFocusChange",
- "files.trimTrailingWhitespace": true,
- "files.insertFinalNewline": true,
- "files.exclude": {
- "**/.git": true,
- "**/__pycache__": true,
- "**/*.pyc": true
- },
- "search.exclude": {
- "**/Siemens/**": true,
- "**/MATLAB/**": true,
- "**/datasets/**": true,
- "**/.venv/**": true,
- "**/node_modules/**": true,
- "**/site-packages/**": true
- },
- "python.defaultInterpreterPath": "${env:USERPROFILE}\\AppData\\Local\\Programs\\Python\\Python312\\python.exe",
- "python.terminal.activateEnvironment": true,
- "python.testing.pytestEnabled": true,
- "jupyter.askForKernelRestart": false,
- "terminal.integrated.defaultProfile.windows": "PowerShell",
- "terminal.integrated.fontFamily": "JetBrainsMono Nerd Font Mono, Cascadia Mono, Consolas",
- "terminal.integrated.fontSize": 12,
- "[python]": {
- "editor.defaultFormatter": "ms-python.python",
- "editor.tabSize": 4
- },
- "git.autofetch": true,
- "git.confirmSync": false,
- "github.gitProtocol": "ssh"
-}
diff --git a/config/joplin/settings.json b/config/joplin/settings.json
index 441a7b7..b34eae4 100644
--- a/config/joplin/settings.json
+++ b/config/joplin/settings.json
@@ -1,7 +1,8 @@
{
"theme": 1,
+ "themeAutoDetect": false,
"sync.target": 0,
"editor.codeView": true,
- "editor.spellcheck.enabled": true,
+ "editor.spellcheckBeta": true,
"markdown.plugin.softbreaks": false
}
diff --git a/config/opencode/ignore-patterns.txt b/config/opencode/ignore-patterns.txt
deleted file mode 100644
index c47181b..0000000
--- a/config/opencode/ignore-patterns.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-# Scan exclusions used by this setup.
-#
-# OpenCode has no .opencodeignore file. This list is documentation; the
-# installer applies the same patterns in three places:
-#
-# 1. watcher.ignore in ~/.config/opencode/opencode.json
-# 2. permissions deny rules in the same file
-# 3. .gitignore in repositories that hold engineering data
-#
-# Keep this list in sync with configs/opencode/opencode.json.
-
-**/node_modules/**
-**/.git/objects/**
-**/Siemens/**
-**/MATLAB/**
-**/datasets/**
-**/.venv/**
-**/__pycache__/**
-**/site-packages/**
diff --git a/docs/APPS.md b/docs/APPS.md
index 1b1b055..b8931c9 100644
--- a/docs/APPS.md
+++ b/docs/APPS.md
@@ -79,8 +79,8 @@ Joplin is the FOSS notes replacement for Obsidian. The installer seeds
`config/joplin/settings.json` to `%USERPROFILE%\.config\joplin-desktop\settings.json`
on a fresh profile. It sets the light theme, code view, spellcheck, and
`sync.target: 0` so the first run stays local. Existing settings are kept on
-re-run; `-Force` replaces them after a backup. Sync is a one-time Joplin setting
-if you want it.
+re-run. Daily `-Force` replaces them after a backup; IoT `-Force` overwrites
+without one. Sync is a one-time Joplin setting if you want it.
## Spotube
diff --git a/docs/CLI.md b/docs/CLI.md
index 1b9e76a..f44ba1e 100644
--- a/docs/CLI.md
+++ b/docs/CLI.md
@@ -61,6 +61,7 @@ sets the exit code and stops the run from claiming the module completed.
- `0` means the checked path completed without a hard failure.
- `1` means at least one real check failed.
+- IoT app installs that actually failed set `1`; skip-only misses do not.
- a nonzero child exit code is propagated by both front doors.
- the UAC relaunch waits for the elevated child and returns its exit code.
diff --git a/scripts/Install.ps1 b/scripts/Install.ps1
index 8ba43d4..8748d37 100644
--- a/scripts/Install.ps1
+++ b/scripts/Install.ps1
@@ -15,7 +15,7 @@
.PARAMETER Only
Run selected modules: all, preflight, os, packages, apps, engineering,
- developer, omniroute, theme, configs, validate.
+ developer, omniroute, theme, configs, debloat, validate.
.PARAMETER Resume
Continue after the reboot requested by the OS module.
@@ -81,6 +81,13 @@ $libPath = Join-Path $PSScriptRoot 'lib\Common.ps1'
if ($Profile -eq 'iot') {
# IoT profile: run the modular IoT implementation from scripts/modules/iot.
. (Join-Path $PSScriptRoot 'modules\iot\IotMain.ps1')
+ # packages sets $failed in this scope. skips never enter it, so only real
+ # install failures turn a successful-looking run into a non-zero exit.
+ $iotFailed = @()
+ if (Get-Variable -Name failed -Scope Script -ErrorAction SilentlyContinue) {
+ $iotFailed = @($script:failed)
+ }
+ if ($iotFailed.Count -gt 0) { exit 1 }
exit 0
}
diff --git a/scripts/lib/Debloat.ps1 b/scripts/lib/Debloat.ps1
index 7a05d9f..8cce382 100644
--- a/scripts/lib/Debloat.ps1
+++ b/scripts/lib/Debloat.ps1
@@ -21,7 +21,7 @@ function Set-DebloatDefaultRegistryValue {
if ($exists) {
try { $current = (Get-Item -LiteralPath $Path).GetValue('') } catch { $current = $null }
}
- if ($exists -and "$current" -eq "$Value") {
+ if ($exists -and $null -ne $current -and "$current" -eq "$Value") {
Write-Skip "default value already set: $Path"
return
}
diff --git a/scripts/modules/iot/Packages.ps1 b/scripts/modules/iot/Packages.ps1
index da2b97d..353fa53 100644
--- a/scripts/modules/iot/Packages.ps1
+++ b/scripts/modules/iot/Packages.ps1
@@ -148,7 +148,7 @@ $gitMap = @{
'VSCodium.VSCodium' = @{ repo='VSCodium/vscodium'; pattern='VSCodiumSetup-x64-*.exe' }
'SST.opencode' = @{ repo='sst/opencode'; pattern='opencode-windows-x64.zip' }
'Joplin.Joplin' = @{ repo='laurent22/joplin'; pattern='Joplin-Setup-*.exe' }
- 'KRTirtho.Spotube' = @{ repo='KRTirtho/spotube'; pattern='Spotube-windows-x86_64-setup.exe' }
+ 'KRTirtho.Spotube' = @{ repo='team-spotube/spotube'; pattern='Spotube-windows-x86_64-setup.exe' }
}
function Install-GitHubAsset($id) {
$g = $gitMap[$id]
@@ -396,9 +396,10 @@ function Install-OfflineFile($file) {
$proc = Start-Process $exe -ArgumentList '/q' -Wait -PassThru -EA Stop
} elseif ($file.Name -like '*python*') {
$proc = Start-Process $exe -ArgumentList '/quiet', 'InstallAllUsers=0', 'PrependPath=1' -Wait -PassThru -EA Stop
- } elseif ($file.Name -like '*VSCodium*' -or $file.Name -like '*Git*' -or $file.Name -like '*Telegram*' -or $file.Name -like '*tsetup*' -or $file.Name -like '*td-setup*' -or $file.Name -like '*Spotube*') {
+ } elseif ($file.Name -like '*VSCodium*' -or $file.Name -like '*Git*' -or $file.Name -like '*Telegram*' -or $file.Name -like '*tsetup*' -or $file.Name -like '*td-setup*') {
$proc = Start-Process $exe -ArgumentList '/VERYSILENT', '/SUPPRESSMSGBOXES', '/NORESTART' -Wait -PassThru -EA Stop
} else {
+ # NSIS installers (Joplin, Spotube, 7-Zip) use /S.
$proc = Start-Process $exe -ArgumentList '/S' -Wait -PassThru -EA Stop
}
if ($proc.ExitCode -notin @(0,1641,3010)) { throw "installer exit=$($proc.ExitCode) ($($file.Name))" }
diff --git a/scripts/modules/iot/Report.ps1 b/scripts/modules/iot/Report.ps1
index a0a6c48..f43e4a5 100644
--- a/scripts/modules/iot/Report.ps1
+++ b/scripts/modules/iot/Report.ps1
@@ -40,7 +40,7 @@ if ($DryRun) { Log 'Dry-run finished. system state was not changed; logs and the
elseif ($ConfigsOnly) { Log 'Configs-only done.' }
else {
Log 'NEXT:'
-Log ' 1. reboot, stock desktop as-is.'
+Log ' 1. reboot, slim post-install desktop as-is.'
Log ' 2. double-click Desktop Win-Iot-Finish.cmd (opencode auth + optional password).'
Log ' 3. MATLAB via campus license + USB-serial drivers (CH340/CP210x/ST-Link) manually.'
Log ' 4. set LibreWolf as default browser in Settings > Apps > Default apps.'