Insis 相关设置

NSIS 2G文件的限制

  • 下载 big版本 https://sourceforge.net/projects/nsisbi/

nsis bad text encoding

  • 增添 /INPUTCHARSET UTF8 指令:
  • 例如: MakeNSIS /INPUTCHARSET UTF8 MyFile.nsi

增加exe描述:

  • ;exe infos
  • VIProductVersion "${PRODUCT_VERSION}"
  • VIAddVersionKey "ProductName" "${PRODUCT_NAME}"
  • VIAddVersionKey "CompanyName" ""
  • VIAddVersionKey "LegalCopyright" ""
  • VIAddVersionKey "FileDescription" "${PRODUCT_NAME}"
  • VIAddVersionKey "FileVersion" "${PRODUCT_VERSION}"
  • VIAddVersionKey "ProductVersion" "${PRODUCT_VERSION}"


    最终效果

增加的描述乱码:

; 设置安装界面语言
 !insertmacro MUI_LANGUAGE "SimpChinese" ; The first language is the default language

;exe infos
  VIProductVersion "${PRODUCT_VERSION}"
  VIAddVersionKey /LANG=${LANG_SimpChinese} "ProductName" "${PRODUCT_NAME}"
  VIAddVersionKey /LANG=${LANG_SimpChinese} "CompanyName" ""
  VIAddVersionKey /LANG=${LANG_SimpChinese} "LegalCopyright" "Copyright (c) 2022 "  
  VIAddVersionKey  /LANG=${LANG_SimpChinese} "FileDescription" "${PRODUCT_NAME}"
  VIAddVersionKey /LANG=${LANG_SimpChinese} "FileVersion" "${PRODUCT_VERSION}"
  VIAddVersionKey /LANG=${LANG_SimpChinese} "ProductVersion" "${PRODUCT_VERSION}"

你可能感兴趣的:(Insis 相关设置)