MSFN Forum: Applying themes using a script - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Applying themes using a script Rate Topic: -----

#1 User is offline   Tom B 

  • Group: Members
  • Posts: 6
  • Joined: 09-December 03

Posted 07 July 2004 - 06:18 AM

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


#2 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 07 July 2004 - 07:57 AM

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:

#3 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 July 2004 - 08:12 AM

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.

#4 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 07 July 2004 - 08:15 AM

ya, sorry , i indeed forgot 2 mention it , thanks prathapml :)

#5 User is offline   Tom B 

  • Group: Members
  • Posts: 6
  • Joined: 09-December 03

Posted 07 July 2004 - 08:19 AM

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:

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy