Changing the theme in Windows 7 is about the only thing left that I can't fully script in my Postinstall thingy. This is what I use now (Autohotkey: Open the control panel setting, wait a while, close it) Spoiler Code: runwait,c:\Windows\System32\rundll32.exe c:\Windows\System32\shell32.dll`,Control_RunDLL c:\windows\system32\desk.cpl desk`,@Themes /Action:OpenTheme /file:"c:\windows\resources\ease of access themes\classic.theme" winwait,Personal settings (or whatever language version you use) sleep,1000 msgbox,4096,Classic Theme,Hit Enter when theme is set winactivate,Personal settings send,!{f4} return I know this subject has come up in the past, but I was just wondering if there have been any new developments/ "discoveries" lately on how this can be fully silent and without any user interaction? Maybe even a way to change the theme directly in install.wim? Thanks!
Edit this for your own mount directory and theme location. The x stays as that is your DVD or USB. Mount wim. Patch files as necessary with Ultrauxthemepatcher. If you have used this program you can copy the patched files right out of your current Windows installation, or else patch a virtual Windows install, and copy those files into the mounted wim, then save and unmount. reg load HKLM\TK_HKLM_SOFTWARE "%MOUNT%\Windows\System32\config\software" >nul 2>&1 reg load HKLM\TK_HKLM_SYSTEM "%MOUNT%\Windows\System32\config\system" >nul 2>&1 reg load HKLM\TK_HKCU "%MOUNT%\Users\Default\ntuser.dat" >nul 2>&1 reg load HKLM\TK_HKU_DEFAULT "%MOUNT%\Windows\System32\config\default" >nul 2>&1 Reg.exe add "HKLM\TK_HKLM_SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" /v "InstallTheme" /t REG_SZ /d "x:\Windows\resources\Themes\Chrononaut2.theme" /f >nul 2>&1 Reg.exe add "HKLM\TK_HKLM_SOFTWARE\Microsoft\Windows\CurrentVersion\Themes" /v "InstallVisualStyle" /t REG_SZ /d "%ResourceDir%\themes\Chrononaut2\Chrononaut2.msstyles" /f >nul 2>&1 Reg.exe add "HKLM\TK_HKLM_SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Themes" /v "InstallTheme" /t REG_SZ /d "x:\Windows\resources\Themes\Chrononaut2.theme" /f >nul 2>&1 Reg.exe add "HKLM\TK_HKLM_SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Themes" /v "InstallVisualStyle" /t REG_SZ /d "%ResourceDir%\themes\Chrononaut2\Chrononaut2.msstyles" /f >nul 2>&1 Reg.exe add "HKLM\TK_HKCU\Software\Microsoft\Windows\CurrentVersion\Themes" /v "InstallTheme" /t REG_EXPAND_SZ /d "%SystemRoot%\resources\Themes\Chrononaut2.theme" /f >nul 2>&1 Reg.exe add "HKLM\TK_HKCU\Software\Microsoft\Windows\CurrentVersion\Themes" /v "InstallVisualStyle" /t REG_EXPAND_SZ /d "%ResourceDir%\themes\Chrononaut2\Chrononaut2.msstyles" /f >nul 2>&1 reg unload HKLM\TK_HKLM_SOFTWARE >nul 2>&1 reg unload HKLM\TK_HKLM_SYSTEM >nul 2>&1 reg unload HKLM\TK_HKCU >nul 2>&1 reg unload HKLM\TK_HKU_DEFAULT >nul 2>&1
Maybe you can check out the MRP, it has a "forced theme" option which can set the desired theme for you (and do a lot more if you want).