Change default theme in install.wim or other fully "silent" method?

Discussion in 'Windows 7' started by Atari800XL, Nov 23, 2014.

  1. Atari800XL

    Atari800XL MDL Addicted

    Apr 3, 2011
    633
    1,014
    30
    #1 Atari800XL, Nov 23, 2014
    Last edited by a moderator: Apr 20, 2017
    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)

    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!
     
  2. Tito

    Tito Super Mod / Adviser
    Staff Member

    Nov 30, 2009
    17,498
    15,288
    340
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gamazet

    gamazet MDL Senior Member

    Sep 26, 2009
    279
    943
    10
    #3 gamazet, Nov 25, 2014
    Last edited by a moderator: Apr 20, 2017
  4. Dante demon

    Dante demon MDL Novice

    Jan 27, 2018
    2
    0
    0
    how to apply theme to install.wim can you one tell this...
     
  5. dhjohns

    dhjohns MDL Guru

    Sep 5, 2013
    3,285
    1,716
    120
    #5 dhjohns, Jan 27, 2018
    Last edited: Jan 27, 2018
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    14,758
    16,987
    340
    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).