Jump to content

Recommended Posts

Posted

when u select a them manually & apply it, it instantly changes, how can i do this unattended ? not neccessarly threw an unattended setup of windows, but maybe threw a batch file run on user logon or something :D

thanks


Posted

MCT

Your question has me ;-) I don't know the answer, but would like to know it too :) I was messing with desk.cpl, but could figure out how to launch the theme. This page has a reference on Control Panel applets. It even has a command for installing the screensaver

rundll32.exe desk.cpl,InstallScreenSaver "File"

I tried to use a similar command with InstallTheme (just off the top of my head), but no go ;-)

I know regional settings can be set from

rundll32.exe shell32,Control_RunDLL intl.cpl,,/f:"c:\regopts.txt"

, but I don't know where to find the info on the switches either.

Posted

Add That In Winnt.sif

[Shell] 
   CustomDefaultThemeFile=%systemdrive%\WINDOWS\Resources\Themes\MCBlue2.theme

I have That As My Last Entry The Theme Must Be There In That Location

For It To Work.

To Get It There I Have Made A Winrar.exe That Runs From

cmdlines.txt

[COMMANDS]
"REGEDIT /S 000.reg"
"REGEDIT /S 020.reg"
"REGEDIT /S 040.reg"
"REGEDIT /S 060.reg"
"REGEDIT /S 080.reg"
"Theme.cmd"
"RunOnceEx.cmd"

Which Runs This Batch File

mode con: Cols=37 Lines=6
color 4f
echo.
echo  Adding The Custom Themes
echo.
echo  GsmGrey MCBlue2 Royale
echo.
start /w Themes.exe

Posted

This is a command that I got with 2 minutes of searching Google :) (I didn't test it though):

rundll32.exe shell32.dll,Control_RunDLL desk.cpl desk,@Themes /Action:OpenTheme /File:"<theme file>"

Edit: nevermind, this is the same command that runs when you double-click a theme-file, so it still opens the Display Properties. The topic I found it in talks about using an AutoIt/VBS script to send keys to the window, so you can let it press OK.

Posted

Can you not just use change the registry key in a cmd script, and perhaps killing explorer.exe and then restarting it again.

try this key:

REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\ThemeManager /v DllName /t REG_EXPAND_SZ /d "%SystemRoot%\Resources\Themes\ForeverBlue.Theme" /f

Obviously changing the .Theme file name to suit

Posted

@Tsunami

thx for the effort :)

@Yzöwl

Didnt work

there has to be a way cuz there are different things out there that run a command & apply the theme instantly :( lol

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...