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
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion MemReduct/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 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 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
Expand All @@ -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
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 (`-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 | |

Expand Down
2 changes: 1 addition & 1 deletion WindowsTerminal/README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/APPS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/OPENCODE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions install-Win-Iot.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
#>
Expand All @@ -25,7 +25,7 @@ param(
[string]$BuildConfig = '',
[string]$Arch = '',
[switch]$DetectHardware,
[switch]$IncludeOptional,
[switch]$Minimal,
[switch]$Unattended,
[switch]$NoWingetBootstrap,
[string]$OfflineDir = '',
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion ventoy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.