Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -19,21 +21,25 @@ 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.
- 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`.
Expand Down
2 changes: 2 additions & 0 deletions Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ param(
[ValidateSet('daily', 'iot')][string]$Profile = 'daily',
[switch]$DryRun,
[switch]$Force,
[switch]$NoDebloat,
[string[]]$Only = @(),
[switch]$Resume,
[switch]$Verify,
Expand Down Expand Up @@ -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' }
Expand Down
13 changes: 8 additions & 5 deletions QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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`:
Expand All @@ -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
Expand All @@ -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.

Expand Down
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 10 additions & 3 deletions Setup.cmd
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | |

Expand Down
2 changes: 1 addition & 1 deletion assets/preview-iot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 0 additions & 42 deletions config/daily/apps.json

This file was deleted.

23 changes: 0 additions & 23 deletions config/daily/omniroute/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions config/daily/opencode/opencode.json

This file was deleted.

55 changes: 0 additions & 55 deletions config/daily/vscodium/settings.json

This file was deleted.

Loading