fix(deploy-win): keep default background colour, just drop the wallpaper

Remove only the wallpaper image (Wallpaper="" + WallpaperStyle=0) and leave
Control Panel\Colors\Background at the WS2025 default, so the desktop shows
the default grey instead of black.
This commit is contained in:
2026-06-09 23:41:22 +02:00
parent 8095f001d3
commit bc20fd633e
@@ -263,11 +263,10 @@ reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v Hi
reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v LaunchTo /t REG_DWORD /d 1 /f | Out-Null
L 'Explorer UX tweaks applied (HKCU)'
# ── No desktop wallpaper — solid black background (headless CI VM) ────────
reg add 'HKCU\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null
reg add 'HKCU\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null
reg add 'HKCU\Control Panel\Colors' /v Background /t REG_SZ /d '0 0 0' /f | Out-Null
L 'Wallpaper removed (black background, HKCU)'
# ── No desktop wallpaper (keep the WS2025 default background colour) ──────
reg add 'HKCU\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null
reg add 'HKCU\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null
L 'Wallpaper removed (default background colour, HKCU)'
# ── Taskbar / terminal UX tweaks ─────────────────────────────────────────
# SearchboxTaskbarMode=0 hide search bar
@@ -284,10 +283,9 @@ reg add 'HKU\DefaultUser2\Software\Microsoft\Windows\CurrentVersion\Search'
reg add 'HKU\DefaultUser2\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v ShowTaskViewButton /t REG_DWORD /d 0 /f | Out-Null
reg add 'HKU\DefaultUser2\Console\%Startup' /v DelegationConsole /t REG_SZ /d '{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}' /f | Out-Null
reg add 'HKU\DefaultUser2\Console\%Startup' /v DelegationTerminal /t REG_SZ /d '{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}' /f | Out-Null
# No wallpaper / black background as the default for any future profile.
reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null
reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null
reg add 'HKU\DefaultUser2\Control Panel\Colors' /v Background /t REG_SZ /d '0 0 0' /f | Out-Null
# No wallpaper (keep default background colour) for any future profile.
reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null
reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null
reg unload HKU\DefaultUser2 2>&1 | Out-Null
L 'Taskbar: search hidden, task view hidden, WT default terminal, no wallpaper'