现在的位置: 首页 > 综合 > 正文

NSIS例子-TSE3.6.2脚本

2013年09月19日 ⁄ 综合 ⁄ 共 36401字 ⁄ 字号 评论关闭

; 安装程序初始定义常量
!define PRODUCT_NAME "TSE"
!define PRODUCT_VERSION "3.6.2"
!define PRODUCT_PUBLISHER "ThinkIT"
!define PRODUCT_WEB_SITE "http://www.thinkit.com.cn"
!define PRODUCT_DIR_REGKEY "Software/Microsoft/Windows/CurrentVersion/App Paths/TSE"
!define PRODUCT_TIT_REGKEY "Software/ThinkIT/TSRSERVER/3.6.0"
!define PRODUCT_UNINST_KEY "Software/Microsoft/Windows/CurrentVersion/Uninstall/${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"

; 被打包文件所在的根目录
!define SOURCE_DIR "F:/TSE_SETUP/TSE_3.6.2_VS2008"

;SetCompressor zlib
;SetCompress force

; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"
!include "LogicLib.nsh"
;!include "AddToPath.nsh" ;向环境变量 Path 中加入 bin 目录
!include "Path.nsh"

!define MUI_SKIN "InstallWizard"

; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_ICON "./icon/TIT.ICO"
!define MUI_UNICON "./icon/TIT.ICO"

; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
; 许可协议页面
!insertmacro MUI_PAGE_LICENSE $(LicenseFileName)
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
; 安装目录选择页面
!insertmacro MUI_PAGE_DIRECTORY
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
!insertmacro MUI_PAGE_FINISH

; 卸载确认页面
!insertmacro MUI_UNPAGE_CONFIRM
; 安装卸载页面
!insertmacro MUI_UNPAGE_INSTFILES
; 卸载完成页面
!insertmacro MUI_UNPAGE_FINISH

; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "SimpChinese"

; 安装预释放文件
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; ------ MUI 现代界面定义结束 ------

LicenseLangString LicenseFileName ${LANG_ENGLISH} "License_Agreement_en.txt"
LicenseLangString LicenseFileName ${LANG_SIMPCHINESE} "License_Agreement_cn.txt"

LangString CompleteSetupString ${LANG_ENGLISH} "Complete"
LangString CompleteSetupString ${LANG_SIMPCHINESE} "完全安装"
LangString TypicalSetupString ${LANG_ENGLISH} "Typical"
LangString TypicalSetupString ${LANG_SIMPCHINESE} "典型安装"
LangString SimpleSetupString ${LANG_ENGLISH} "Simple"
LangString SimpleSetupString ${LANG_SIMPCHINESE} "精简安装"

LangString SystemComponentString ${LANG_ENGLISH} "System Component"
LangString SystemComponentString ${LANG_SIMPCHINESE} "系统组件"

LangString SystemManagementString ${LANG_ENGLISH} "System Management (OAM)"
LangString SystemManagementString ${LANG_SIMPCHINESE} "系统管理 (OAM)"

LangString TSRComponentString ${LANG_ENGLISH} "Speech Recognition (TSR)"
LangString TSRComponentString ${LANG_SIMPCHINESE} "语音识别(TSR)"

LangString TMRComponentString ${LANG_ENGLISH} "Melody Recognition (TMR)"
LangString TMRComponentString ${LANG_SIMPCHINESE} "哼唱点歌(TMR)"

LangString ProgramString ${LANG_ENGLISH} "Programs"
LangString ProgramString ${LANG_SIMPCHINESE} "程序"

LangString ExampleString ${LANG_ENGLISH} "Examples"
LangString ExampleString ${LANG_SIMPCHINESE} "开发示例"

LangString DocumentString ${LANG_ENGLISH} "Documents"
LangString DocumentString ${LANG_SIMPCHINESE} "文档资料"

LangString SEC00_Descriptions ${LANG_ENGLISH} "Necessary components of ThinkIT Speech Environment, support mandarin speech recognition at present."
LangString SEC00_Descriptions ${LANG_SIMPCHINESE} "安装中科信利语音交互环境必须的系统组件,仅拥有普通话识别的功能。"

LangString SEC01_Descriptions ${LANG_ENGLISH}  "Install ThinkIT remote system management components."
LangString SEC01_Descriptions ${LANG_SIMPCHINESE} "安装中科信利远程系统管理组件。"

LangString SEC02_Descriptions ${LANG_ENGLISH} "Install the handbook of remote system management etc."
LangString SEC02_Descriptions ${LANG_SIMPCHINESE} "安装远程系统管理使用手册等。"

LangString SEC03_Descriptions ${LANG_ENGLISH} "Install ThinkIT Cantonese recognition components"
LangString SEC03_Descriptions ${LANG_SIMPCHINESE} "安装中科信利粤语识别组件。"

LangString SEC04_Descriptions ${LANG_ENGLISH} "Install examples of speech recognition client, demonstrate the basic flow of client development."
LangString SEC04_Descriptions ${LANG_SIMPCHINESE} "安装语音识别客户端例子程序,演示了客户端程序开发的基本流程。"

LangString SEC05_Descriptions ${LANG_ENGLISH} "Install the documents of speech recognition development, including installment of server and how to use API."
LangString SEC05_Descriptions ${LANG_SIMPCHINESE} "安装语音识别开发所需的文档,包括服务器的安装,API 的使用等。。"

LangString SEC06_Descriptions ${LANG_ENGLISH} "Install speech recognition adaptation package which makes recognizer adapt the speaking style."
LangString SEC06_Descriptions ${LANG_SIMPCHINESE} "安装语音识别自适应包,让识别器能够适应当地说话习惯。"

LangString SEC07_Descriptions ${LANG_ENGLISH} "Install ThinkIT melody recognition components."
LangString SEC07_Descriptions ${LANG_SIMPCHINESE} "安装中科信利哼唱点歌组件。"

LangString SEC08_Descriptions ${LANG_ENGLISH} "Install example program of melody recognition clients, demonstrate the basic flow of client development."
LangString SEC08_Descriptions ${LANG_SIMPCHINESE} "安装哼唱点歌客户端例子程序,演示了客户端程序开发的基本流程。"

LangString SEC09_Descriptions ${LANG_ENGLISH} "Install the development documents of melody recognition, including installment of server and how to use API"
LangString SEC09_Descriptions ${LANG_SIMPCHINESE} "安装哼唱点歌开发所需的文档,包括服务器的安装,API 的使用等。"

LangString SEC10_Descriptions ${LANG_ENGLISH} "Install ThinkIT audio identification components."
LangString SEC10_Descriptions ${LANG_SIMPCHINESE} "安装中科信利音乐快搜组件。"

LangString SEC11_Descriptions ${LANG_ENGLISH} "Install example program of audio identification client, demonstrate the basic flow of client development."
LangString SEC11_Descriptions ${LANG_SIMPCHINESE} "安装音乐快搜客户端例子程序,演示了客户端程序开发的基本流程。"

LangString SEC12_Descriptions ${LANG_ENGLISH} "Install the development documents of audio identification, including installment of server and how to use API."
LangString SEC12_Descriptions ${LANG_SIMPCHINESE} "安装音乐快搜开发所需的文档,包括服务器的安装,API 的使用等。"

LangString SEC13_Descriptions ${LANG_ENGLISH} "Install ThinkIT lyric recognition component."
LangString SEC13_Descriptions ${LANG_SIMPCHINESE} "安装中科信利歌词识别组件。"

LangString SEC14_Descriptions ${LANG_ENGLISH} "Install example program of lyric recognition client, demonstrate the basic flow of client program development."
LangString SEC14_Descriptions ${LANG_SIMPCHINESE} "安装歌词识别客户端例子程序,演示了客户端程序开发的基本流程。"

LangString SEC15_Descriptions ${LANG_ENGLISH} "Install the development documents of lyric recognition, including installment of server and how to use API."
LangString SEC15_Descriptions ${LANG_SIMPCHINESE} "安装歌词识别开发所需的文档,包括服务器的安装,API 的使用等。"

LangString SEC16_Descriptions ${LANG_ENGLISH} "Install ThinkIT melody score components."
LangString SEC16_Descriptions ${LANG_SIMPCHINESE} "安装中科信利唱歌打分组件。"

LangString SEC17_Descriptions ${LANG_ENGLISH} "Install example programs of melody score client, demonstrate the basic flow of client development."
LangString SEC17_Descriptions ${LANG_SIMPCHINESE} "安装唱歌打分客户端例子程序,演示了客户端程序开发的基本流程。"

LangString SEC18_Descriptions ${LANG_ENGLISH} "Install the development documents of melody score component, including installment of server and how to use API."
LangString SEC18_Descriptions ${LANG_SIMPCHINESE} "安装唱歌打分开发所需的文档,包括服务器的安装,API 的使用等。"

LangString GRP00_Descriptions ${LANG_ENGLISH} "Install network management component, supplying Telnet, HTTP, SNMP to  manage the system."
LangString GRP00_Descriptions ${LANG_SIMPCHINESE} "安装网络管理组件:提供 Telnet、HTTP、SNMP 等方式对系统进行远程管理。"

LangString GRP01_Descriptions ${LANG_ENGLISH} "Install speech recognition components, supplying functions such as high-powered mandarine and Cantonese recognition."
LangString GRP01_Descriptions ${LANG_SIMPCHINESE} "安装语音识别组件:提供高性能国语、粤语等的识别功能。"

LangString GRP02_Descriptions ${LANG_ENGLISH} "Install melody recognition component: If forgetting the name of the song? I can tell you if you sing a segment."
LangString GRP02_Descriptions ${LANG_SIMPCHINESE} "安装哼唱点歌组件:忘记了歌名?只要哼唱一段,我就可以告诉你。"

LangString GRP03_Descriptions ${LANG_ENGLISH} "Install audio identification components: professional audio identification engine, music database which can be enlarged to millions."
LangString GRP03_Descriptions ${LANG_SIMPCHINESE} "安装音乐快搜组件:专业的音乐搜索引擎、可扩充至万首的音乐库。"

LangString GRP04_Descriptions ${LANG_ENGLISH} "Install lyric recognition component, maybe you forget the song, singer or even can't remember how to sing, but just one or two lyric, this is enough to make me exhibit you the whole lyric(including name of the song and singer)."
LangString GRP04_Descriptions ${LANG_SIMPCHINESE} "安装歌词识别组件:或许您忘记了歌名、歌手,甚至想不起怎么唱,只记得其中一两句歌词,这足以让我将整首歌词(包括歌名、歌手等信息)展现在您面前。"

LangString GRP05_Descriptions ${LANG_ENGLISH} "Install melody score component, do you want to know the level of your singing?"
LangString GRP05_Descriptions ${LANG_SIMPCHINESE} "安装唱歌打分组件:想知道自己唱歌的水平如何吗?"

!ifndef NOINSTTYPES ; only if not defined
  InstType $(CompleteSetupString)
  InstType $(TypicalSetupString)
  InstType $(SimpleSetupString)
  ;InstType /NOCUSTOM
  ;InstType /COMPONENTSONLYONCUSTOM
!endif

!define /date NOW "%Y%b%d"

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "${PRODUCT_NAME}${PRODUCT_VERSION}_Build_${NOW}.exe"
InstallDir "$PROGRAMFILES/ThinkIT/TSRSERVER"
ShowInstDetails show
ShowUnInstDetails show

Section $(SystemComponentString) SEC00
    SectionIn RO ; Read Only Section

    ; 在环境变量Path中添加bin目录
    Push "$INSTDIR/bin"
    Call AddToPath

    ; TSE Release Notes.pdf
    SetOutPath "$INSTDIR"
    File /a "${SOURCE_DIR}/doc/doc3.6.0/pdf/TSE Release Notes.pdf"

 ;bin 目录
 SetOutPath "$INSTDIR/bin"
 File /a "${SOURCE_DIR}/bin/ACE.dll"
    File /a "${SOURCE_DIR}/bin/LibDLLMrcpv2_r.dll"
    File /a "${SOURCE_DIR}/bin/rmsvr.exe"
 File /a "${SOURCE_DIR}/bin/msvcp80.dll"
    File /a "${SOURCE_DIR}/bin/msvcr80.dll"
   
    SetOutPath "$INSTDIR/patch"
    File /a "${SOURCE_DIR}/patch/WindowsInstaller-KB893803-x86.exe"
    Exec '"$INSTDIR/patch/WindowsInstaller-KB893803-x86.exe" /quiet /promptrestart'
    File /a "${SOURCE_DIR}/patch/vcredist_x86_VS2005.exe"
    ExecWait '"$INSTDIR/patch/vcredist_x86_VS2005.exe" /Q'
   File /a "${SOURCE_DIR}/patch/vcredist_x86_VS2008.exe"
   ExecWait '"vcredist_x86_VS2008.exe" /S /D=C:/Program Files/ThinkIT'
;  File /a "${SOURCE_DIR}/patch/vcredist_x86_vs2008.exe"
;  ExecWait '"${SOURCE_DIR}/patch/vcredist_x86_vs2008.exe" /extract:c:/temp /q'
;  ExecWait '"msiexec /i c:/temp/vc_red.msi" /qn'
;  rmdir "c:/temp"
    File /a "${SOURCE_DIR}/patch/dotnetfx.exe"
    ExecWait '"$INSTDIR/patch/dotnetfx.exe" /Q'
;    File /a "${SOURCE_DIR}/patch/dotnetfx35_chs.exe"
;    Exec '"$INSTDIR/patch/dotnetfx35_chs.exe" /q'
  File /a "${SOURCE_DIR}/patch/deletefile.exe"
    ExecWait '"deletefile.exe" /q'
  File /a "${SOURCE_DIR}/patch/deleteserver.bat"

  
  ;bin_Licsvr 目录
  ;SetOutPath "$INSTDIR/bin_Licsvr"
  ;File /a "${SOURCE_DIR}/bin_Licsvr/LicenseSVR.exe"
  ;File /a "${SOURCE_DIR}/bin_Licsvr/ace.dll"
  ;File /a "${SOURCE_DIR}/bin_Licsvr/aced.dll"
  ;File /a "${SOURCE_DIR}/bin_Licsvr/Msvcirt.dll"
    ;File /a "${SOURCE_DIR}/bin_Licsvr/Msvcrt.dll"
    ;File /a "${SOURCE_DIR}/bin_Licsvr/Netapi32.dll"
    ; bin_recsvr 目录
    SetOutPath "$INSTDIR/bin_recsvr"
    File /a "${SOURCE_DIR}/bin_recsvr/buildPDB.exe"
    File /a "${SOURCE_DIR}/bin_recsvr/GenUserDict.exe"
    File /a "${SOURCE_DIR}/bin_recsvr/RecSvr.exe"
   ;File /a "${SOURCE_DIR}/bin_recsvr/CompileSVR.exe"
   ;File /a "${SOURCE_DIR}/bin_recsvr/CompileGrammar.exe"
   ;File /a "${SOURCE_DIR}/bin_recsvr/MRSvr.exe"
   ;File /a "${SOURCE_DIR}/bin_recsvr/RecCli.exe"
    File /a "${SOURCE_DIR}/bin_recsvr/tgc.exe"
    File /a "${SOURCE_DIR}/bin_recsvr/tparse.exe"
    File /a "${SOURCE_DIR}/bin_recsvr/ace.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/DbMysql.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/DbOci.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/DbSqlServer.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/DbSybase.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/psapi.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/TSR_API.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/G2P_API.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/TagParser.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/Xalan-C_1_11.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/XalanMessages_1_11.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/xerces-c_3_0.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/pthread.dll"    
;    File /a "${SOURCE_DIR}/bin_recsvr/RecCliApiDll.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/ippsrpx-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippsr-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippspx-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ipps-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippmpx-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippm-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippcore-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippma6-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippsrt7-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippsrv8-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippst7-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/ippsv8-5.1.dll"
 File /a "${SOURCE_DIR}/bin_recsvr/libguide40.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/msvcp90.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/msvcr90.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/G2P_API.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/VoiceDetector.dll"
;    File /a "${SOURCE_DIR}/bin_recsvr/RecCliApiDll_d.dll"
  File /a "${SOURCE_DIR}/bin_recsvr/LicenseSVR.exe"
  File /a "${SOURCE_DIR}/bin_recsvr/Msvcirt.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/Msvcrt.dll"
    File /a "${SOURCE_DIR}/bin_recsvr/Netapi32.dll"
 
    ; icon 目录
    SetOutPath "$INSTDIR/icon"
    File /a "${SOURCE_DIR}/icon/TIT.ICO"

    ; include 目录
    SetOutPath "$INSTDIR/include"
    File /a "${SOURCE_DIR}/include/tsr_api.h"
    File /a "${SOURCE_DIR}/include/reccli.h"
    File /a "${SOURCE_DIR}/include/RSDef.h"

    ; lib 目录
    SetOutPath "$INSTDIR/lib"
    File /a "${SOURCE_DIR}/lib/ace.lib"
    File /a "${SOURCE_DIR}/lib/aced.lib"
   ;File /a "${SOURCE_DIR}/lib/RecCliApi.lib"
   ;File /a "${SOURCE_DIR}/lib/RecCliApi_d.lib"
   ;File /a "${SOURCE_DIR}/lib/RecCliApiDll.lib"
   ;File /a "${SOURCE_DIR}/lib/RecCliApiDll_d.lib"
   ;File /a "${SOURCE_DIR}/lib/stlport_vc6_static.lib"
   ;File /a "${SOURCE_DIR}/lib/TSR_API.lib"
   ;File /a "${SOURCE_DIR}/lib/TSR_API_d.lib"

    ; source 目录
    SetOutPath "$INSTDIR/source/log"
    File /a "${SOURCE_DIR}/source/log/tprintf.h"

    ; swdog 目录
    SetOutPath "$INSTDIR/swdog"
    File /a "${SOURCE_DIR}/swdog/ThinkitInfo.exe"
    Exec '"$INSTDIR/swdog/ThinkitInfo.exe"'
    File /a "${SOURCE_DIR}/swdog/SoftDogInstdrv.exe"
    File /a "${SOURCE_DIR}/swdog/SoftDogSetup.dll"
    Exec '"$INSTDIR/swdog/SoftDogInstdrv.exe" /i/s'
   

    ; work-zh-cn 目录
    SetOutPath "$INSTDIR/work-zh-cn/rmsvr"
    File /a "${SOURCE_DIR}/work-zh-cn/rmsvr/rmsvr.bat"
 File /a "${SOURCE_DIR}/work-zh-cn/rmsvr/mrcpServer.cfg"
    ;File /a "${SOURCE_DIR}/work-zh-cn/rmsvr/grammar-transformer.xsl"

    SetOutPath "$INSTDIR/work-zh-cn/licsvr"
    File /a "${SOURCE_DIR}/work-zh-cn/licsvr/licsvr.bat"
;    SetOutPath "$INSTDIR/work-zh-cn/cmpsvr"
;    File /a "${SOURCE_DIR}/work-zh-cn/cmpsvr/cmpsvr.bat"

    SetOutPath "$INSTDIR/work-zh-cn/recsvr"   
    File /a "${SOURCE_DIR}/work-zh-cn/recsvr/recsv-CN.bat"   
    ;File /a "${SOURCE_DIR}/work-zh-cn/recsvr/grammar.cn.txt"
    ;File /a "${SOURCE_DIR}/work-zh-cn/recsvr/grammar-transformer.xsl"

  SetOutPath "$INSTDIR/work-zh-cn/recsvr-Small"
  File /a "${SOURCE_DIR}/work-zh-cn/recsvr-Small/recsv-S-CN.bat"
    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-Small/recsv-S-EN.bat"
  File /a "${SOURCE_DIR}/work-zh-cn/recsvr-Small/recsvr-US-en.bat"

    SetOutPath "$INSTDIR/work-zh-cn/recsvr-en"
    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-en/recsv-EN.bat"

;    SetOutPath "$INSTDIR/work-zh-cn/cmpsvr"
;    File /a "${SOURCE_DIR}/work-zh-cn/cmpsvr/cmpsvr.bat"
;    File /a "${SOURCE_DIR}/work-zh-cn/cmpsvr/grammar.cn.txt"
;    File /a "${SOURCE_DIR}/work-zh-cn/cmpsvr/grammar-transformer.xsl"

;    SetOutPath "$INSTDIR/work-zh-cn/CompileGrammar"
;    File /a "${SOURCE_DIR}/work-zh-cn/CompileGrammar/CompileGrammar.cfg"
;    File /a "${SOURCE_DIR}/work-zh-cn/CompileGrammar/CompileTool.bat"
; File /a "${SOURCE_DIR}/work-zh-cn/CompileGrammar/CompileGrammar.Usage.txt"

    SetOutPath "$INSTDIR/work-zh-cn"
    File /a "${SOURCE_DIR}/work-zh-cn/TXLF.grxml"
    File /a "${SOURCE_DIR}/work-zh-cn/gram-txl-v50.gb.txt"
    File /a "${SOURCE_DIR}/work-zh-cn/t10-txl.gb.txt"
;    File /a "${SOURCE_DIR}/work-zh-cn/run-t10-txl.gb-r.bat"
   
 ; data 目录
 SetOutPath "$INSTDIR/work-zh-cn/data/TXLM"
    File /a "${SOURCE_DIR}/work-zh-cn/data/TXLM/*.*"
   
    ; zh-cn 目录
    SetOutPath "$INSTDIR/zh-cn/sysdata"
   ; File /a "${SOURCE_DIR}/zh-cn/sysdata/TIT_system.zh-cn.cfg"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/863.pdb"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/gram-name.net"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/chunk_COLN-S-CN.bin"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/chunk_COLN-S-EN.bin"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/chunk_COLN-B-EN.bin"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/chunk_COLN-B-CN.bin"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/mono.txt"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/mono_untone_confuse.txt"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/grammar.dtd"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/grammar-transformer.xsl"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/gram-name-hanzi-struct.bin"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/tsd_rec.cfg"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/tsd_mr.cfg"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/monomap.txt"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/EngGPPairList.txt"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/GPPair.trigram.bin"
   File /a "${SOURCE_DIR}/zh-cn/sysdata/TIT_system.zh-cn-s-cn.cfg"
   File /a "${SOURCE_DIR}/zh-cn/sysdata/TIT_system.zh-cn-s-en.cfg"
   File /a "${SOURCE_DIR}/zh-cn/sysdata/TIT_system.zh-cn-b-en.cfg"
   File /a "${SOURCE_DIR}/zh-cn/sysdata/TIT_system.zh-cn-b-cn.cfg"
   
    ; zh-en 目录
    SetOutPath "$INSTDIR/zh-en/sysdata"
    File /a "${SOURCE_DIR}/zh-en/sysdata/TIT_system.zh-en.cfg"
    File /a "${SOURCE_DIR}/zh-en/sysdata/863.pdb"
    File /a "${SOURCE_DIR}/zh-en/sysdata/chunk_COLN.bin"
    File /a "${SOURCE_DIR}/zh-en/sysdata/mono.txt"
    File /a "${SOURCE_DIR}/zh-en/sysdata/mono_untone_confuse.txt"
    File /a "${SOURCE_DIR}/zh-en/sysdata/tsd_rec.cfg"
    File /a "${SOURCE_DIR}/zh-en/sysdata/grammar.dtd"
    File /a "${SOURCE_DIR}/zh-en/sysdata/grammar-transformer.xsl"
    File /a "${SOURCE_DIR}/zh-en/sysdata/gram-name-hanzi-struct.bin"
    File /a "${SOURCE_DIR}/zh-en/sysdata/monomap.txt"
    File /a "${SOURCE_DIR}/zh-en/sysdata/EngGPPairList.txt"
    File /a "${SOURCE_DIR}/zh-en/sysdata/GPPair.trigram.bin"
   
    ; zh-tw 目录
;    SetOutPath "$INSTDIR/zh-tw/sysdata"
;    File /a "${SOURCE_DIR}/zh-tw/sysdata/TIT_system.zh-tw.cfg"
;    File /a "${SOURCE_DIR}/zh-tw/sysdata/TIT_dic.zh-tw.pdb"
;    File /a "${SOURCE_DIR}/zh-tw/sysdata/TIT_chunk.zh-tw"
;    File /a "${SOURCE_DIR}/zh-tw/sysdata/mono.txt"
;    File /a "${SOURCE_DIR}/zh-tw/sysdata/mono_untone_confuse.txt"

SectionEnd

;__________________________________________________________________________

SectionGroup $(SystemManagementString) GRP00

Section  $(ProgramString) SEC01
    SectionIn 1 2

    ; oam 目录
    SetOutPath "$INSTDIR/oam"
    File /a "${SOURCE_DIR}/oam/*.*"
    SetOutPath "$INSTDIR/oam/http"
    File /a "${SOURCE_DIR}/oam/http/*.*"
;    SetOutPath "$INSTDIR/oam/snmp/config/etc/snmp"
;    File /a "${SOURCE_DIR}/oam/snmp/config/etc/snmp/*.*"
;    SetOutPath "$INSTDIR/oam/snmp/config/share/snmp/mibs"
;    File /a "${SOURCE_DIR}/oam/snmp/config/share/snmp/mibs/*.*"

SectionEnd

;Section /o $(DocumentString) SEC02
;    SectionIn 1 2

    ; doc 目录
;    SetOutPath "$INSTDIR/doc/pdf"
;    File /nonfatal /a "${SOURCE_DIR}/doc/pdf/TSE OAM Manual.pdf"
;    SetOutPath "$INSTDIR/doc/html"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSE OAM Manual.htm"
;    SetOutPath "$INSTDIR/doc/html/TSE OAM Manual_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSE OAM Manual_files/*.*"

;SectionEnd

SectionGroupEnd

;__________________________________________________________________________

SectionGroup $(TSRComponentString) GRP01

;Section "粤语识别" SEC03
 ;   SectionIn 1 2

    ; work-zh-cn 目录
;    SetOutPath "$INSTDIR/work-zh-cn/cmpsvr-cantonese"
;    File /a "${SOURCE_DIR}/work-zh-cn/cmpsvr-cantonese/cmpsvr-cantonese.bat"
;    SetOutPath "$INSTDIR/work-zh-cn/recsvr-cantonese"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/recsvr-cantonese.bat"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/LogClt.cfg"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/MrcpServer.cfg"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/grammar-transformer.xsl.org"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/grammar.cn.txt"
;    File /a "${SOURCE_DIR}/work-zh-cn/recsvr-cantonese/grammar-transformer.xsl"

    ; zh-ct 目录
;    SetOutPath "$INSTDIR/zh-ct/sysdata"
;    File /a "${SOURCE_DIR}/zh-ct/sysdata/TIT_system.zh-ct.cfg"
;    File /a "${SOURCE_DIR}/zh-ct/sysdata/TIT_dic.zh-ct.pdb"
;    File /a "${SOURCE_DIR}/zh-ct/sysdata/TIT_chunk.zh-ct"
;    File /a "${SOURCE_DIR}/zh-ct/sysdata/mono.txt"
;    File /a "${SOURCE_DIR}/zh-ct/sysdata/mono_untone_confuse.txt"

;SectionEnd

Section $(ExampleString) SEC04
    SectionIn 1 2
   
    ; examples 目录
    SetOutPath "$INSTDIR/examples/AudioFile/song"
    File /a "${SOURCE_DIR}/examples/AudioFile/song/*.pcm"
    SetOutPath "$INSTDIR/examples/AudioFile/123"
    File /a "${SOURCE_DIR}/examples/AudioFile/123/*.pcm"

    SetOutPath "$INSTDIR/examples/grammars"
    File /a "${SOURCE_DIR}/examples/grammars/aa.txt"
    File /a "${SOURCE_DIR}/examples/grammars/addressbook.txt"
    File /a "${SOURCE_DIR}/examples/grammars/namelist.txt"
    File /a "${SOURCE_DIR}/examples/grammars/pinyin.txt"

;    SetOutPath "$INSTDIR/examples/enrollment_Cli"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/testcli.dsw"
;    SetOutPath "$INSTDIR/examples/enrollment_Cli/song"
;    File /a "${SOURCE_DIR}/examples/enrollment_Cli/song/1.pcm"

;    SetOutPath "$INSTDIR/examples/Rec_Cli"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/js.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli/song.txt"

;    SetOutPath "$INSTDIR/examples/Rec_Cli_cantonese"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/123.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese/cantonese.txt"

;    SetOutPath "$INSTDIR/examples/Rec_Cli_cantonese-cmpsvr"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/123.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_cantonese-cmpsvr/cantonese.txt"

;    SetOutPath "$INSTDIR/examples/Rec_Cli_xml_grammar"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/js.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/js-xml.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli_xml_grammar/song.txt"

    SetOutPath "$INSTDIR/examples/Mrcp2Client"
    File /a "${SOURCE_DIR}/examples/Mrcp2Client/runmrcpcli_asr.bat"
;    File /a "${SOURCE_DIR}/examples/Mrcp2Client/runmrcpcli_mr.bat"
;    File /a "${SOURCE_DIR}/examples/Mrcp2Client/tlist-mr.txt"
;    File /a "${SOURCE_DIR}/examples/Mrcp2Client/song.alaw8"
    File /a "${SOURCE_DIR}/examples/Mrcp2Client/ace.dll"
    File /a "${SOURCE_DIR}/examples/Mrcp2Client/ClientDemo.exe"
    File /a "${SOURCE_DIR}/examples/Mrcp2Client/gramconf.cfg"
    ;File /a /r /x .svn "${SOURCE_DIR}/Examples/MrcpClient"

;    SetOutPath "$INSTDIR/examples/Rec_Cli-dll"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/AppInterface.h"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/AppInterface.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/testcli.cpp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/js.txt"
;    File /a "${SOURCE_DIR}/examples/Rec_Cli-dll/song.txt"

;    SetOutPath "$INSTDIR/examples/TestOCXDemo"
;    File /a "${SOURCE_DIR}/examples/TestOCXDemo/testcli.htm"
   
SectionEnd

Section $(DocumentString) SEC05
    SectionIn 1 2
   
    ; doc 目录
    SetOutPath "$INSTDIR/doc"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/index.htm"

    SetOutPath "$INSTDIR/doc/pdf"
    ;File /nonfatal /a "${SOURCE_DIR}/doc/pdf/TSR*.pdf"
    ;File /nonfatal /a "${SOURCE_DIR}/doc/pdf/TSE*.pdf"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/pdf/TSE*.pdf"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/pdf/TSR*.pdf"

;    SetOutPath "$INSTDIR/doc/html"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSR*.htm"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSE*.htm"
;    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/html/TSE*.htm"

;    SetOutPath "$INSTDIR/doc/html/TSE FAQ.files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE FAQ.files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Glossary_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Glossary_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Grammar Development Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Grammar Development Guide_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Installation and Configuration Manual_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Installation and Configuration Manual_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Integration Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Integration Guide_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Quick Start_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Quick Start_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Reference Manual_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Reference Manual_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSE Utilities Reference Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSE Utilities Reference Guide_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSR AdaptationServer Developer Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSR AdaptationServer Developer Guide_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSR Development Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc3.6.0/html/TSR Development Guide_files/*.*"
;    SetOutPath "$INSTDIR/doc/html/TSR Voice Enrollment Development Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TSR Voice Enrollment Development Guide_files/*.*"

SectionEnd

;Section "自适应包" SEC06
 ;   SectionIn 1 2

    ; AdaptationPackage 目录
;    SetOutPath "$INSTDIR/AdaptationPackage/append"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/append/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/forcealign"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/forcealign/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/forcealign/align"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/forcealign/align/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/forcealign/data"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/forcealign/data/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/forcealign/net"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/forcealign/net/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/forcealign/Refs.tel"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/forcealign/Refs.tel/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/refs"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/refs/*.*"
;    SetOutPath "$INSTDIR/AdaptationPackage/scripts"
;    File /nonfatal /a "${SOURCE_DIR}/AdaptationPackage/scripts/*.*"

;SectionEnd

SectionGroupEnd

;__________________________________________________________________________

SectionGroup $(TMRComponentString) GRP02

Section $(ProgramString) SEC07
    SectionIn 1

    SetOutPath "$INSTDIR/mrdata"
    ;File /a "${SOURCE_DIR}/mrdata/notebin.dat"
    File /a "${SOURCE_DIR}/mrdata/vbook.dat"
    File /a "${SOURCE_DIR}/mrdata/songbin.list"
    File /a "${SOURCE_DIR}/mrdata/TMR_config.txt"
    File /a "${SOURCE_DIR}/mrdata/song5000.bin"
    File /a "${SOURCE_DIR}/mrdata/song5000.info"
    File /a "${SOURCE_DIR}/mrdata/cluster5000.file"
    File /a "${SOURCE_DIR}/mrdata/song4000.bin"
    File /a "${SOURCE_DIR}/mrdata/song4000.cluster"
    File /a "${SOURCE_DIR}/mrdata/song4000.list"
    File /a "${SOURCE_DIR}/mrdata/song2300.bin"
    File /a "${SOURCE_DIR}/mrdata/cluster2300.file"
    File /a "${SOURCE_DIR}/mrdata/song2300.info"

    SetOutPath "$INSTDIR/bin_recsvr"
;    File /a "${SOURCE_DIR}/bin_recsvr/MRSvr.exe"

    SetOutPath "$INSTDIR/work-zh-cn/mrsvr"
    File /a "${SOURCE_DIR}/work-zh-cn/mrsvr/mrsvr.bat"

    SetOutPath "$INSTDIR/zh-cn/sysdata"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/TMR_system.zh-cn.cfg"
    File /a "${SOURCE_DIR}/zh-cn/sysdata/tsd_mr.cfg"
SectionEnd

Section $(ExampleString) SEC08
    SectionIn 1

;    SetOutPath "$INSTDIR/examples/MR/MR_Cli1"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/*.h"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/*.cpp"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/test.alaw8"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/test.pcm16"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli1/example-gram.gb.txt"

;    SetOutPath "$INSTDIR/examples/MR/MR_Cli2"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/*.h"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/*.cpp"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/test.alaw8"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/test.pcm16"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/MR/MR_Cli2/example-gram.gb.txt"

SectionEnd

Section $(DocumentString) SEC09
    SectionIn 1

    ; doc 目录
    SetOutPath "$INSTDIR/doc/pdf"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/pdf/TMR Development Guide.pdf"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/pdf/TMR Development Guide-E.pdf"
    SetOutPath "$INSTDIR/doc/doc3.6.0/html"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/html/TMR Development Guide-E.htm"
    SetOutPath "$INSTDIR/doc/doc3.6.0/html/TMR Development Guide-E.files"
    File /nonfatal /a "${SOURCE_DIR}/doc/doc3.6.0/html/TMR Development Guide-E.files/*.*"

SectionEnd

SectionGroupEnd

;__________________________________________________________________________

;SectionGroup 音乐快搜(TAI) GRP03

;Section "核心组件" SEC10
;    SectionIn 1
    ; aidata 目录
;    SetOutPath "$INSTDIR/aidata"
;    File /a "${SOURCE_DIR}/aidata/filter.dat"
;    File /a "${SOURCE_DIR}/aidata/audioList.txt"
;    File /a "${SOURCE_DIR}/aidata/TAI_config.txt"

;    SetOutPath "$INSTDIR/aidata/Audios"
;    File /a "${SOURCE_DIR}/aidata/Audios/*.auf"

;    SetOutPath "$INSTDIR/bin"
;    File /a "${SOURCE_DIR}/bin/AISvr.exe"

;    SetOutPath "$INSTDIR/work-zh-cn/aisvr"
;    File /a "${SOURCE_DIR}/work-zh-cn/aisvr/aisvr.bat"

;    SetOutPath "$INSTDIR/zh-cn/sysdata"
;    File /a "${SOURCE_DIR}/zh-cn/sysdata/TAI_system.zh-cn.cfg"
   
;SectionEnd

;Section "开发示例" SEC11
;    SectionIn 1

;    SetOutPath "$INSTDIR/examples/AI/AI_Cli1"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/*.h"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/*.cpp"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/test.alaw8"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/test.pcm16"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli1/example-gram.gb.txt"

;    SetOutPath "$INSTDIR/examples/AI/AI_Cli2"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/*.h"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/*.cpp"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/test.alaw8"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/test.pcm16"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/testcli.exe"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/testcli.bat"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/testcli.dsp"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/testcli.dsw"
;    File /a "${SOURCE_DIR}/examples/AI/AI_Cli2/example-gram.gb.txt"
   
;SectionEnd

;Section "文档资料" SEC12
;    SectionIn 1

    ; doc 目录
;    SetOutPath "$INSTDIR/doc/pdf"
;    File /nonfatal /a "${SOURCE_DIR}/doc/pdf/TAI Development Guide.pdf"
;    SetOutPath "$INSTDIR/doc/html"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TAI Development Guide.htm"
;    SetOutPath "$INSTDIR/doc/html/TAI Development Guide_files"
;    File /nonfatal /a "${SOURCE_DIR}/doc/html/TAI Development Guide_files/*.*"

;SectionEnd
;SectionGroupEnd

;__________________________________________________________________________

; 创建快捷方式
Section "-AdditionalIcons"
    SetOutPath $INSTDIR
    CreateDirectory "$SMPROGRAMS/ThinkIT/TSE"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/Uninstall.lnk" "$INSTDIR/TSE_Uninstall.exe"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/TSE Release Notes.lnk" "$INSTDIR/TSE Release Notes.pdf"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/Homepage.lnk" "${PRODUCT_WEB_SITE}"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/Documents.lnk" "$INSTDIR/doc/index.htm"
    CreateDirectory "$SMPROGRAMS/ThinkIT/TSE/WorkDirectory"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/WorkDirectory/licsvr.lnk" "$INSTDIR/work-zh-cn/licsvr"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/WorkDirectory/rmsvr.lnk" "$INSTDIR/work-zh-cn/rmsvr"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/WorkDirectory/recsvr.lnk" "$INSTDIR/work-zh-cn/recsvr"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/WorkDirectory/recsvr-en.lnk" "$INSTDIR/work-zh-cn/recsvr-en"
    CreateShortCut "$SMPROGRAMS/ThinkIT/TSE/OamDirectory.lnk" "$INSTDIR/oam"
   
SectionEnd

Section "-Post"
    ;注册控件
    Exec '"$SYSDIR/regsvr32 /u $INSTDIR/bin/TSE_RECCLI_API_OCX.ocx"' 
    Exec '"$SYSDIR/regsvr32 $INSTDIR/bin/TSE_RECCLI_API_OCX.ocx"'
     
    WriteRegStr HKLM "${PRODUCT_TIT_REGKEY}" "root" "$INSTDIR"
    WriteRegStr HKLM "${PRODUCT_TIT_REGKEY}" "language" "zh-cn"
   
    WriteUninstaller "$INSTDIR/TSE_Uninstall.exe"
    WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR/TSE_Uninstall.exe"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR/icon/TIT.ICO"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
    WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd

Function .onInit

  !insertmacro MUI_LANGDLL_DISPLAY
 
FunctionEnd
 
; Section descriptions
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN

  !insertmacro MUI_DESCRIPTION_TEXT ${SEC00} $(SEC00_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} $(SEC01_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} $(SEC02_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} $(SEC03_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} $(SEC04_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} $(SEC05_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} $(SEC06_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} $(SEC07_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} $(SEC08_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC09} $(SEC09_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC10} $(SEC10_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC11} $(SEC11_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC12} $(SEC12_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC13} $(SEC13_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC14} $(SEC14_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC15} $(SEC15_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${SEC16} $(SEC16_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC17} $(SEC17_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${SEC18} $(SEC18_Descriptions)

    !insertmacro MUI_DESCRIPTION_TEXT ${GRP00} $(GRP00_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${GRP01} $(GRP01_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${GRP02} $(GRP02_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${GRP03} $(GRP03_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${GRP04} $(GRP04_Descriptions)
    !insertmacro MUI_DESCRIPTION_TEXT ${GRP05} $(GRP05_Descriptions)

!insertmacro MUI_FUNCTION_DESCRIPTION_END

Section "Uninstall"
  
   
    ; 从环境变量Path中删去bin目录
    Push "$INSTDIR/bin"
    Call un.RemoveFromPath

    SetOutPath $WINDIR
   
    RMDir /r "$INSTDIR"
    RMDir /r "$SMPROGRAMS/ThinkIT"

    DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
    DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
    DeleteRegKey HKLM "${PRODUCT_TIT_REGKEY}"
   
SectionEnd

Function un.onInit

 MessageBox MB_YESNO "您真的要卸载此程序吗?" IDYES NoAbort
      Abort ; 使得卸载程序退出。
    NoAbort:
  ExecWait "$INSTDIR/patch/deleteserver.bat"
  !insertmacro MUI_UNGETLANGUAGE
   
FunctionEnd

抱歉!评论已关闭.