Capture.nsi
资源名称:p2p_vod.rar [点击查看]
上传用户:liguizhu
上传日期:2015-11-01
资源大小:2422k
文件大小:4k
源码类别:
P2P编程
开发平台:
Visual C++
- ;NSIS Modern User Interface
- ;Capture Server Install Script
- ;Written by Danny Deng
- ;--------------------------------
- ;Include Modern UI
- !include "MUI.nsh"
- XPStyle on
- ;--------------------------------
- ;General
- ;Name and file
- Name "myseelite capture setup"
- OutFile "myseelite_capture_setup.exe"
- ;Default installation folder
- InstallDir "$PROGRAMFILESopenmyseecapture"
- ;--------------------------------
- ;Interface Configuration
- ;--------------------------------
- ;Pages
- !define MUI_HEADERIMAGE
- !define MUI_HEADERIMAGE_BITMAP "openmysee.bmp"
- !insertmacro MUI_PAGE_LICENSE "license.txt"
- !insertmacro MUI_PAGE_COMPONENTS
- !insertmacro MUI_PAGE_DIRECTORY
- !insertmacro MUI_PAGE_INSTFILES
- !insertmacro MUI_UNPAGE_CONFIRM
- !insertmacro MUI_UNPAGE_INSTFILES
- ;--------------------------------
- ;Languages
- !insertmacro MUI_LANGUAGE "English"
- ;--------------------------------
- ;Installer Sections
- Section "openmysee capture" SecDummy
- ;Store installation folder
- SetOutPath "$INSTDIR"
- SetOverwrite on
- File GVCapture.exe
- File MMSServer.exe
- File GetZZL.dll
- File GetZZLDisplay.exe
- File CaptureServer.ax
- File FVideoOverlay.ax
- File graphedt.exe
- SetOverwrite off
- File CaptureServer.cfg
- SetOutPath "$SYSDIR"
- SetOverwrite off
- File mfc71.dll
- File msvcp71.dll
- File msvcr71.dll
- RegDLL "$INSTDIRCaptureServer.ax"
- RegDLL "$INSTDIRFVideoOverlay.ax"
- CreateDirectory "$SMPROGRAMSopenmysee"
- CreateDirectory "$SMPROGRAMSopenmyseecapture"
- CreateShortCut "$SMPROGRAMSopenmyseecaptureMMSServer.lnk" "$INSTDIRMMSServer.exe" ; use defaults for parameters, icon, etc.
- CreateShortCut "$SMPROGRAMSopenmyseecaptureGVCapture.lnk" "$INSTDIRGVCapture.exe" ; use defaults for parameters, icon, etc.
- CreateShortCut "$SMPROGRAMSopenmyseecaptureZZLConverter.lnk" "$INSTDIRGetZZLDisplay.exe" ; use defaults for parameters, icon, etc.
- CreateShortCut "$SMPROGRAMSopenmyseecapturegraphedt.lnk" "$INSTDIRgraphedt.exe" ; use defaults for parameters, icon, etc.
- CreateShortCut "$SMPROGRAMSopenmyseecaptureCaptureServer.cfg.lnk" "$INSTDIRCaptureServer.cfg" ; use defaults for parameters, icon, etc.
- CreateShortCut "$SMPROGRAMSopenmyseecaptureUninstall.lnk" "$INSTDIRUninstall.exe" ; use defaults for parameters, icon, etc.
- ;Create uninstaller
- WriteUninstaller "$INSTDIRUninstall.exe"
- SectionEnd
- ;--------------------------------
- ;Descriptions
- ;Language strings
- LangString DESC_SecDummy ${LANG_ENGLISH} "openmysee capture utils can open a TV channel on internet."
- ;Assign language strings to sections
- !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
- !insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
- !insertmacro MUI_FUNCTION_DESCRIPTION_END
- ;--------------------------------
- ;Uninstaller Section
- Section "Uninstall"
- ;ADD YOUR OWN FILES HERE...
- UnRegDLL "$INSTDIRCaptureServer.ax"
- UnRegDLL "$INSTDIRFVideoOverlay.ax"
- ; Remove shortcuts, if any
- Delete "$SMPROGRAMSopenmyseecapture*.*"
- ; Remove directories used
- RMDir "$SMPROGRAMSopenmyseecapture"
- RMDir "$SMPROGRAMSopenmysee"
- ; Remove installed files
- Delete "$INSTDIRGVCapture.exe"
- Delete "$INSTDIRMMSServer.exe"
- Delete "$INSTDIRGetZZL.dll"
- Delete "$INSTDIRGetZZLDisplay.exe"
- Delete "$INSTDIRCaptureServer.ax"
- Delete "$INSTDIRFVideoOverlay.ax"
- Delete "$INSTDIRgraphedt.exe"
- Delete "$INSTDIRCaptureServer.cfg"
- ; Remove temporary files
- Delete "$INSTDIRConfigFilter.dat"
- Delete "$INSTDIRMMSControl.ini"
- Delete "$INSTDIR*.tmp"
- Delete "$INSTDIRUninstall.exe"
- RMDir "$INSTDIR"
- SectionEnd