diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8fa9581..3210e36 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,7 +3,7 @@ small project, simple rules. `AGENTS.md` has the full list of lessons. the short version: 1. try it in a VM first. this changes system settings. -2. run `.\Validate.ps1 -Profile daily` and `.\install-Win-Iot.ps1 -DryRun` before a real run. read the log before committing. +2. run `.\Validate.ps1 -Profile daily` and `.\Install.ps1 -Profile iot -DryRun` before a real run. read the log before committing. 3. new switches default off. every write gets a dry-run log line. 4. check `$LASTEXITCODE` after native exes. try/catch alone lies. 5. fresh-install-only deploys never overwrite a lived-in config. diff --git a/MemReduct/README.md b/MemReduct/README.md index 5360bda..ef5112f 100644 --- a/MemReduct/README.md +++ b/MemReduct/README.md @@ -1,6 +1,6 @@ # Mem Reduct -Optional app in the IoT profile. Added with `-IncludeOptional`. Winget ID: +App in the IoT profile, included by default. `-Minimal` skips it. Winget ID: `Henry++.MemReduct`. The app needs admin rights for its Native API cleanup. ## Config diff --git a/QUICKSTART.md b/QUICKSTART.md index 91591ad..45bedbd 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -22,8 +22,8 @@ transcript; iot also writes a report. read the output before the real run. ``` `daily` is the modular engineering workstation. `iot` is the slim LTSC build. -both use the same `config/` tree. `Setup.cmd` still starts the IoT path for the -old one-click flow. +both use the same `config/` tree. `Setup.cmd` starts the IoT profile through +`Install.ps1` for the one-click flow. ## 3. verify without writing @@ -55,10 +55,10 @@ reads the saved state file only. .\Install.ps1 -Profile iot -ConfigsOnly ``` -`install-Win-Iot.ps1 -?` lists the full IoT flag set. useful ones are +`Install.ps1 -Profile iot -?` lists the full IoT flag set. useful ones are `-Unattended`, `-ConfigsOnly`, `-OfflineDir`, `-NoWingetBootstrap`, -`-DriverDir`, `-Only`, `-SkipApps`, and `-IncludeOptional`. Mem Reduct is an -optional IoT app. +`-DriverDir`, `-Only`, `-SkipApps`, and `-Minimal`. Optional apps (Obsidian, +Spotify, Mem Reduct) are included unless `-Minimal` is set. ## where to go next diff --git a/README.md b/README.md index 3c25980..937d84c 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ needs it. .\Install.ps1 -Profile iot ``` -`Setup.cmd` still starts the old IoT path and passes extra flags through. For +`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). ## Verify @@ -96,7 +96,7 @@ 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. -- Mem Reduct is optional via `-IncludeOptional`. No autostart, no scheduled cleanup, native light UI. +- 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. ## OmniRoute and OpenCode diff --git a/Setup.cmd b/Setup.cmd index 8de7aec..bc65bdc 100644 --- a/Setup.cmd +++ b/Setup.cmd @@ -1,6 +1,6 @@ @echo off -rem one click: elevates, runs the full setup (base apps), keeps the window open. -rem extra flags pass straight through: Setup.cmd -SkipApps / -ConfigsOnly ... +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 ... cd /d "%~dp0" fltmc >nul 2>&1 if "%errorlevel%"=="0" goto run @@ -17,7 +17,7 @@ if "%~1"=="" ( ) exit /b :run -powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0install-Win-Iot.ps1" -Unattended %* +powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0Install.ps1" -Profile iot -Unattended %* echo. echo all done. log + report live in C:\Windows\Logs\Win-Iot-Setup pause diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md index 07813bf..8581966 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 (`-IncludeOptional`) | Obsidian, Spotify, Mem Reduct (`Henry++.MemReduct`) | | +| optional (default; `-Minimal` skips) | Obsidian, Spotify, 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/WindowsTerminal/README.md b/WindowsTerminal/README.md index 4908980..da20965 100644 --- a/WindowsTerminal/README.md +++ b/WindowsTerminal/README.md @@ -1,6 +1,6 @@ # Windows Terminal -`install-Win-Iot.ps1` installs `Microsoft.WindowsTerminal` on builds that +`Install.ps1 -Profile iot` installs `Microsoft.WindowsTerminal` on builds that support it and drops `settings.json` into `%LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\` on a fresh install only. The daily theme module keeps the same scheme on an diff --git a/docs/APPS.md b/docs/APPS.md index b4a4b94..4c4afa3 100644 --- a/docs/APPS.md +++ b/docs/APPS.md @@ -73,7 +73,7 @@ rewrites settings on exit. ## Mem Reduct -Optional IoT app, added only with `-IncludeOptional`. Winget ID is +IoT app included by default; `-Minimal` skips it. Winget ID is `Henry++.MemReduct`. `memreduct.ini` is copied fresh-only to `%APPDATA%\Henry++\Mem Reduct\memreduct.ini`. The repo file is comment-only so Mem Reduct can write its own settings on first run. No autostart, no interval diff --git a/docs/CLI.md b/docs/CLI.md index f576ee0..e6bda80 100644 --- a/docs/CLI.md +++ b/docs/CLI.md @@ -15,7 +15,8 @@ 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 script with `-Unattended` before any extra flags you pass. +starts the IoT profile through `Install.ps1` with `-Unattended` before any extra +flags you pass. ## common flags diff --git a/docs/OPENCODE.md b/docs/OPENCODE.md index 653eba0..15bf4ab 100644 --- a/docs/OPENCODE.md +++ b/docs/OPENCODE.md @@ -26,7 +26,7 @@ no MCP server is enabled by default. that keeps each message small and avoids se ## upgrading an existing machine -the IoT profile is fresh-only, but the daily profile merges JSON by default. a machine that already has `~\.config\opencode\opencode.json` may keep its old V2 config. to switch: back it up, then run `install-Win-Iot.ps1 -ConfigsOnly`, or copy `config/opencode/opencode.json` over by hand. +the IoT profile is fresh-only, but the daily profile merges JSON by default. a machine that already has `~\.config\opencode\opencode.json` may keep its old V2 config. to switch: back it up, then run `.\Install.ps1 -Profile iot -ConfigsOnly`, or copy `config/opencode/opencode.json` over by hand. ## measure your own setup diff --git a/docs/RUNBOOK.md b/docs/RUNBOOK.md index 0fbec3a..38c5c0b 100644 --- a/docs/RUNBOOK.md +++ b/docs/RUNBOOK.md @@ -130,7 +130,7 @@ Rerun `.\scripts\Install.ps1 -Only engineering` after installing MATLAB. It sets ### LibreWolf profile creation fails Close every LibreWolf window, then rerun `.\Install.ps1 -Profile daily -Only -developer`. On IoT, rerun `install-Win-Iot.ps1 -ConfigsOnly`. The profile name +developer`. On IoT, rerun `.\Install.ps1 -Profile iot -ConfigsOnly`. The profile name must not already exist in `%APPDATA%\LibreWolf\profiles.ini`. ## Rollback diff --git a/install-Win-Iot.ps1 b/install-Win-Iot.ps1 index fc0d027..6b95d6d 100644 --- a/install-Win-Iot.ps1 +++ b/install-Win-Iot.ps1 @@ -12,7 +12,7 @@ powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 -Unattended -OfflineDir D:\Offline powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 -Unattended -DriverDir D:\Drivers -Reboot - powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 -IncludeOptional -Unattended + powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 -Minimal -Unattended powershell -ExecutionPolicy Bypass -File install-Win-Iot.ps1 -ConfigsOnly (configs-only: re-copy user configs to their real locations, nothing else.) #> @@ -25,7 +25,7 @@ param( [string]$BuildConfig = '', [string]$Arch = '', [switch]$DetectHardware, - [switch]$IncludeOptional, + [switch]$Minimal, [switch]$Unattended, [switch]$NoWingetBootstrap, [string]$OfflineDir = '', @@ -681,7 +681,8 @@ $shellApps = @( ) $coreApps += $shellApps $optionalApps = @('Obsidian.Obsidian','Spotify.Spotify','Henry++.MemReduct') -if ($IncludeOptional) { $coreApps += $optionalApps } +# 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. $wtBuild = 0 $wtOk = (-not $osInfo) -or (-not [int]::TryParse([string]$osInfo.Build, [ref]$wtBuild)) -or ($wtBuild -ge 18362) diff --git a/ventoy/README.md b/ventoy/README.md index 4678297..af6874a 100644 --- a/ventoy/README.md +++ b/ventoy/README.md @@ -10,6 +10,6 @@ rufus path needs nothing. ventoy skips $OEM$, so it needs this folder. ## notes - the answer file expects this repo staged at `C:\Setup` and runs - `install-Win-Iot.ps1` from there on first logon. + `Install.ps1 -Profile iot` from there on first logon. - no net on first boot? stage installers beside the repo or tether the phone when the log asks.