Tom B Posted July 7, 2004 Share Posted July 7, 2004 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 More sharing options...
MCT Posted July 7, 2004 Share Posted July 7, 2004 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\Themesi 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 answerhope u get it 2 work somehow Link to comment Share on other sites More sharing options...
prathapml Posted July 7, 2004 Share Posted July 7, 2004 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.dllJust notifying, maybe MCT forgot to mention this. Link to comment Share on other sites More sharing options...
MCT Posted July 7, 2004 Share Posted July 7, 2004 ya, sorry , i indeed forgot 2 mention it , thanks prathapml Link to comment Share on other sites More sharing options...
Tom B Posted July 7, 2004 Author Share Posted July 7, 2004 Thanks for the reply MCTI'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! Link to comment Share on other sites More sharing options...
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