enabled = RegRead("HKLM", "MUI", "Enable")
SysLang = RegRead("HKLM", "MUI", "SysLang")

if(not enabled)
  RegWriteDword("HKLM", "MUI", "Enable", 1)
Endif

Repeat(4)
  x = SysLang mod 16

  Switch(x)
    Case(10)
      x = "A"
    Case(11)
      x = "B"
    Case(12)
      x = "C"
    Case(13)
      x = "D"
    Case(14)
      x = "E"
    Case(15)
      x = "F"
  EndSwitch

  Localization = x & Localization
  SysLang = SysLang / 16
EndRepeat

localizedName = "\Windows\shellres.96.dll." & Localization & ".mui"
Rename("\Windows\shellres.96.dll.temp.mui", localizedName, 1)

