views:

292

answers:

1

A software package I'm working on installs its own Windows theme and as part of the install tries to make it the current theme. We managed to get this working on Windows XP with a great many registry edits during the install (a reboot applies the changes) but Vista seems to require even more reqistry changes.

We also found that "running" the theme file will open the Themes dialog and select the theme but a user needs to click OK. A script could accomplish this, true, but finding the OK button on non-English Windows is a challenge I'd rather not have to address.

So, is there a way to programmatically change the current theme in Windows Vista?

A: 

Here's a dirty hack: If all else fails, you could try UI Automation Toolkit to automatically "click" on the OK button. :)

Vyas Bharghava