Modify XP theme (appearance&color scheme) from a vbscript

installationthemesvbscriptwindows-xp

Does anybody know how to modify Windows XP appearance and color scheme using VBScript?

I have an application written in Visual C++ that needs Windows XP appearance (not classic) to be properly displayed and I want to set this properties from the Installation.

I use InstallShield to make the installer and VBScript to perform some custom actions. So it would be great if I can create a script in visual basic to change this properties.

Best Answer

This should do it:

rundll32 shell32.dll,Control_RunDLL desk.cpl desk,@themes /Action:OpenTheme /File:"%WinDir%\Resources\Themes\Luna.theme"

However you still need to get the user to click "OK" or use another utility to do this for you.

Related Topic