当脚本中没有指定文件版本,文件名称,文件说明时,创建的安装包文件不包含这些信息的,都是空白的,如下图:
选中NIS打包后的安装包文件,右键,选择属性:
脚本如下:
VIProductVersion “${PRODUCT_VERSION}”
VIAddVersionKey /LANG= L A N G _ E N G L I S H " P r o d u c t N a m e " " {LANG\_ENGLISH} "ProductName" " LANG_ENGLISH"ProductName""{PRODUCT_NAME}"
VIAddVersionKey /LANG= L A N G _ E N G L I S H " C o m m e n t s " " {LANG\_ENGLISH} "Comments" " LANG_ENGLISH"Comments""{PRODUCT_WEB_SITE}"
VIAddVersionKey /LANG= L A N G _ E N G L I S H " C o m p a n y N a m e " " {LANG\_ENGLISH} "CompanyName" " LANG_ENGLISH"CompanyName""{PRODUCT_PUBLISHER}"
VIAddVersionKey /LANG= L A N G _ E N G L I S H " L e g a l T r a d e m a r k s " " {LANG\_ENGLISH} "LegalTrademarks" " LANG_ENGLISH"LegalTrademarks""{PRODUCT_NAME} Application is a trademark of ${PRODUCT_PUBLISHER} company"
VIAddVersionKey /LANG=${LANG_ENGLISH} “LegalCopyright” “Copyright ${PRODUCT_PUBLISHER} company”
VIAddVersionKey /LANG=${LANG_ENGLISH} “FileDescription” “System software for factory”
VIAddVersionKey /LANG= L A N G _ E N G L I S H " F i l e V e r s i o n " " {LANG\_ENGLISH} "FileVersion" " LANG_ENGLISH"FileVersion""{PRODUCT_VERSION}"
VIAddVersionKey /LANG= L A N G _ E N G L I S H " I n t e r n a l N a m e " " P G M M S e t u p {LANG\_ENGLISH} "InternalName" "PGMMSetup LANG_ENGLISH"InternalName""PGMMSetup{PRODUCT_VERSION}.exe"
对应信息如上图。