Jump to content

Applying themes using a script


Recommended Posts

Hi all,

I've created a set of simple themes which basically apply our corporate colours. Ideally I need to apply these as part of a script which will be run post sysprep.

I've tried changing the "HKEY_CURRENT_USER\Software\Microsoft\Plus!\Themes\Current" key but that doesn't seem to work. I can't find anything documented on the net other than a script using sendkeys to run the manual process which isn't silent... does anyone have any ideas how else this can be scripted?

Thanks,

T

Link to comment
Share on other sites


hi :)

is what u are wanting 2 do is copy over all your themes? or just apply 1?

[Shell]
   CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Luna VX.theme"

Note: the above must be put in $OEM$\$$\Resources\Themes

i find that the easiest , put that in winnt.sif , but if u are wanting 2 do it with a registry tweak, search the registry tweaks thread or the customizing threads, they will have that answer

hope u get it 2 work somehow :rolleyes:

Link to comment
Share on other sites

Note:

Before you can get (what MCT describes) it to work, you first need to have a patched (version as per your WXP servicepack) uxtheme.dll

Just notifying, maybe MCT forgot to mention this.

Link to comment
Share on other sites

Thanks for the reply MCT

I'm using the [shell] section to set the default user theme, so that works fine. However what I need to do is change the applied theme based on AD site. I could do this using group policy, but that would mean a new GPO for each theme and there are quite a few so I want to avoid that if I can.

At the moment on win2k I have a set of scripts which run post sysprep and effective determine the AD site then apply an Appearence Scheme based on that site. Unfortunatly Schemes don't seem to work the same way in XP so I'm using themes instead. There must be an API call that applies the scheme when you click 'Apply', but I don't think its documented anywhere.

When you look at the changes to the registry after you apply a theme, all Windows does is change the colour, screensave.exe etc reg keys with the values stored in the theme files. I've not really messed around with themes before but I was hoping they would be a bit more sophisicated than big .reg files! :)

Anyway, before I set about writing some code to parse the theme files and apply the setting I want, if anyone has any ideas I'd appreciate the help! :rolleyes:

Link to comment
Share on other sites

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...