Note that (of course) this was changed in Office 2013. Instead, use the following constants:
const string OfficeCommonKey =
@"Software\Microsoft\Office\15.0\Common";
const string OfficeThemeValueName = "UI Theme";
const int ThemeWhite = 0;
const int ThemeLightGray = 1;
const int ThemeDarkGray = 2;
Please note that if the theme has never been installed, the "Interface Theme" button will not exist. I believe that it defaults to "0" ("White theme").
source
share