0

From Windows XP to Windows 7, you could change the current the with the command line: (How do I change the current Windows theme programmatically?). But in Windows 8.1 (and windows 8 I suppose), it doesn't work.

The only way I can do it is with WinaeroThemeSwitcher (http://winaero.com/comment.php?comment.news.209).

How can I do it from native commands or from C#? WinaeroThemeSwitcher proves that it is possible.

Community
  • 1
  • 1
cricardol
  • 4,212
  • 3
  • 20
  • 28

1 Answers1

0

I finally found how. Using ILSpy (with few corrections) helped a lot. Thank you magicandre1981.

I also found an implementation online afterwards using COM objects GUID (class ThemeManagerHelpClass):

https://github.com/opkorz/CS199_Thesis/blob/master/Implementation1/CL_Utility2.ps1

cricardol
  • 4,212
  • 3
  • 20
  • 28
  • Please help me. I used JustDecompile and ILSpy to decompile it, and made some corrections, but it just doesnt work! Can you tell me which one should be edited after the decompilation? Thanks in advance! – Wahyu Dec 18 '17 at 01:50
  • Have you tried the code in the github link? I used it with a theme file: themeManager.ApplyTheme(themeFilePath); – cricardol Aug 29 '18 at 13:31