设置支持的语言

//设置支持英文,简中,繁中
; Language files
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "SimpChinese"
!insertmacro MUI_LANGUAGE "TradChinese"
; MUI end ------

设置自动跟随系统变化

Function SelectLanguage
  ;根据windowsapi返回值选择语言,不支持语言默认显示英文
  System::Call 'Kernel32::GetUserDefaultUILanguage() i.r0'
  ${If} $0 == '1033'
  ${OrIf} $0 == '1028'
  ${OrIf} $0 == '2052'
      StrCpy $LANGUAGE $0
  ${Else}
      StrCpy $LANGUAGE 1033
  ${EndIf}
FunctionEnd

;初始化时直接调用
Function .onInit
    Call SelectLanguage
FunctionEnd

Q.E.D.