MCT Posted December 22, 2004 Posted December 22, 2004 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 thanks
Vadikan Posted December 22, 2004 Posted December 22, 2004 MCTYour 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.
gunsmokingman Posted December 22, 2004 Posted December 22, 2004 Add That In Winnt.sif[Shell] CustomDefaultThemeFile=%systemdrive%\WINDOWS\Resources\Themes\MCBlue2.themeI 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 Filemode con: Cols=37 Lines=6color 4fecho.echo Adding The Custom Themesecho.echo GsmGrey MCBlue2 Royaleecho.start /w Themes.exe
MCT Posted December 22, 2004 Author Posted December 22, 2004 i know how 2 do it from winnt.sif but im wondering how to "Call" it
Tsunami Posted December 22, 2004 Posted December 22, 2004 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.
Yzöwl Posted December 22, 2004 Posted December 22, 2004 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" /fObviously changing the .Theme file name to suit
MCT Posted December 22, 2004 Author Posted December 22, 2004 @Tsunamithx for the effort @YzöwlDidnt workthere has to be a way cuz there are different things out there that run a command & apply the theme instantly lol
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now