NSIS:迅雷5.8.6.600自由定制版脚本及下载

原文 NSIS:迅雷5.8.6.600自由定制版脚本及下载

虽然现在迅雷已升级到7.2版本,但作为一款下载工具,我们可能只是需要它的下载功能,所以,体积小资源占用也小的迅雷5便成了我们更好的选择。今天下午闲来无事,写了个迅雷5.8.6.600自由定制版,此版本只保留了下载功能,其它的一概去除,默认关闭了任务栏,安全中心,社区互动,迅雷提示等。而且在原版的基础上增加了AYU的扩展设置程序和DDR的专用链支持模块,以便用户配置使用。

 

下载一    下载二    下载三

 

20110704更新:

修改在WIN7系统(IE9)下右键菜单出错的问题(与迅雷程序文件有关,与安装程序无关。)

 

安装脚本没有什么技术含量,附之如下:

; 安装程序初始定义常量
!define PRODUCT_NAME "迅雷"
!define PRODUCT_VERSION "5.8.6.600"
!define PRODUCT_PUBLISHER "轻狂志"
!define PRODUCT_WEB_SITE "www.flighty.cn"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Thunder.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define /date VER_BUILD "%Y.%m.%d"

SetCompressor lzma
InstType "推荐安装"
InstType "完全安装"
RequestExecutionLevel admin

!include "MUI.nsh"

; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_ICON "Thunder.ico"
!define MUI_UNICON "un.ico"
!define MUI_HEADERIMAGE_BITMAP "modern-header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "modern-wizard.bmp"
!define MUI_WELCOMEPAGE_TITLE "\r\n    ${PRODUCT_NAME} ${PRODUCT_VERSION} 自由定制版"
!define MUI_WELCOMEPAGE_TEXT "\r\n迅雷是最流行的下载工具之一,支持HTTP、FTP、BT、电骡等几乎所有的下载协议。此版本附带了AYU的扩展设置程序和DDR的专用链支持模块,以便用户配置使用。\r\n\r\n此安装程序纯属个人研究、学习软件部署技术而制作,原始软件的所有权利属于原始作者所有。\r\n\r\n原始程序文件未做任何修改,AYU的扩展设置程序和DDR的专用链支持模块仅为界面美化、方便使用而集成。\r\n\r\n使用此安装程序是您的自由选择,作者并不对可能由此给您带来的任何损失负责。\r\n\r\n$_CLICK"

; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
; 安装目录选择页面
!insertmacro MUI_PAGE_DIRECTORY
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
!insertmacro MUI_PAGE_FINISH
; 安装卸载过程页面
!insertmacro MUI_UNPAGE_INSTFILES
; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "SimpChinese"
; 安装预释放文件
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Thunder_${PRODUCT_VERSION}_DIY.exe"
InstallDir "$PROGRAMFILES\Thunder"
InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
ShowInstDetails show
ShowUnInstDetails show
BrandingText "轻狂志www.flighty.cn - 编译日期${VER_BUILD}"

Section "!主程序" SECThunder
  SectionIn RO
  SetOutPath "$INSTDIR"
  SetOverwrite ifnewer
  File "Thunder\AyuConfig.exe"
  SetOutPath "$INSTDIR\ComDlls\skin"
  File "Thunder\ComDlls\skin\DOWNLOAD_NORMAL.bmp"
  File "Thunder\ComDlls\skin\DOWNLOAD_PRESS.BMP"
  File "Thunder\ComDlls\skin\FB_BG.bmp"
  File "Thunder\ComDlls\skin\MENU_NORMAL.bmp"
  File "Thunder\ComDlls\skin\MENU_PRESS.bmp"
  SetOutPath "$INSTDIR\ComDlls"
  File "Thunder\ComDlls\TDAtOnce.dll"
  File "Thunder\ComDlls\TDAtOnce_Now.dll"
  File "Thunder\ComDlls\ThunderAgent.dll"
  File "Thunder\ComDlls\ThunderAgent_Now.dll"
  File "Thunder\ComDlls\XunLeiBHO.dll"
  File "Thunder\ComDlls\xunleiBHO_Now.dll"
  SetOutPath "$INSTDIR\Components\Community"
  File "Thunder\Components\Community\audioCtrl.dll"
  File "Thunder\Components\Community\Community.ini"
  SetOutPath "$INSTDIR\Components\Community\emoticons"
  File "Thunder\Components\Community\emoticons\1.png"
  File "Thunder\Components\Community\emoticons\10.png"
  File "Thunder\Components\Community\emoticons\11.png"
  File "Thunder\Components\Community\emoticons\12.png"
  File "Thunder\Components\Community\emoticons\13.png"
  File "Thunder\Components\Community\emoticons\14.png"
  File "Thunder\Components\Community\emoticons\15.png"
  File "Thunder\Components\Community\emoticons\16.png"
  File "Thunder\Components\Community\emoticons\17.png"
  File "Thunder\Components\Community\emoticons\18.png"
  File "Thunder\Components\Community\emoticons\1854886e649c600fb2151b5a745fe0c8.gif"
  File "Thunder\Components\Community\emoticons\1854886e649c600fb2151b5a745fe0c8t.jpg"
  File "Thunder\Components\Community\emoticons\19.png"
  File "Thunder\Components\Community\emoticons\2.png"
  File "Thunder\Components\Community\emoticons\20.png"
  File "Thunder\Components\Community\emoticons\21.png"
  File "Thunder\Components\Community\emoticons\264bb2cfae0d9fe5aa13b06f09c7d19a.gif"
  File "Thunder\Components\Community\emoticons\264bb2cfae0d9fe5aa13b06f09c7d19at.jpg"
  File "Thunder\Components\Community\emoticons\2f36d7e1f677757883585e474f1d3b39.gif"
  File "Thunder\Components\Community\emoticons\2f36d7e1f677757883585e474f1d3b39t.jpg"
  File "Thunder\Components\Community\emoticons\2f3d41f236a13f53e2018405d76ba8f7.gif"
  File "Thunder\Components\Community\emoticons\2f3d41f236a13f53e2018405d76ba8f7t.jpg"
  File "Thunder\Components\Community\emoticons\3.png"
  File "Thunder\Components\Community\emoticons\3e7c799e1f50efb9fc66f6f517f7a12d.gif"
  File "Thunder\Components\Community\emoticons\3e7c799e1f50efb9fc66f6f517f7a12dt.jpg"
  File "Thunder\Components\Community\emoticons\4.png"
  File "Thunder\Components\Community\emoticons\42e10b2c9de8bf2c49f98529cea3cb70.gif"
  File "Thunder\Components\Community\emoticons\42e10b2c9de8bf2c49f98529cea3cb70t.jpg"
  File "Thunder\Components\Community\emoticons\447670c730a03ee61a5796b507837cd5.gif"
  File "Thunder\Components\Community\emoticons\447670c730a03ee61a5796b507837cd5t.jpg"
  File "Thunder\Components\Community\emoticons\5.png"
  File "Thunder\Components\Community\emoticons\6.png"
  File "Thunder\Components\Community\emoticons\6acbbc1b803d4160790de81f5922c096.gif"
  File "Thunder\Components\Community\emoticons\6acbbc1b803d4160790de81f5922c096t.jpg"
  File "Thunder\Components\Community\emoticons\7.png"
  File "Thunder\Components\Community\emoticons\8.png"
  File "Thunder\Components\Community\emoticons\9.png"
  File "Thunder\Components\Community\emoticons\923281849e5499e0a666ec72993776a5.gif"
  File "Thunder\Components\Community\emoticons\923281849e5499e0a666ec72993776a5t.jpg"
  File "Thunder\Components\Community\emoticons\9a32ca2ab8886f4eeb7cf57fa0e5576d.gif"
  File "Thunder\Components\Community\emoticons\9a32ca2ab8886f4eeb7cf57fa0e5576dt.jpg"
  File "Thunder\Components\Community\emoticons\a09bd432fd501c6403228e2196361a7f.gif"
  File "Thunder\Components\Community\emoticons\a09bd432fd501c6403228e2196361a7ft.jpg"
  File "Thunder\Components\Community\emoticons\a6b062ff3fa3f2af86904fff60b50b3a.gif"
  File "Thunder\Components\Community\emoticons\a6b062ff3fa3f2af86904fff60b50b3at.jpg"
  File "Thunder\Components\Community\emoticons\aee5f5f11a1f80fcfd47913c9f51f5ad.gif"
  File "Thunder\Components\Community\emoticons\aee5f5f11a1f80fcfd47913c9f51f5adt.jpg"
  File "Thunder\Components\Community\emoticons\af2de1c716008328a1c788fe17927090.gif"
  File "Thunder\Components\Community\emoticons\af2de1c716008328a1c788fe17927090t.jpg"
  File "Thunder\Components\Community\emoticons\b4670300a01d257c4fda0269b39cbf63.gif"
  File "Thunder\Components\Community\emoticons\b4670300a01d257c4fda0269b39cbf63t.jpg"
  File "Thunder\Components\Community\emoticons\e84325b171b1a345c48328c21ea2e4ae.gif"
  File "Thunder\Components\Community\emoticons\e84325b171b1a345c48328c21ea2e4aet.jpg"
  File "Thunder\Components\Community\emoticons\e9398b3489d84081724b76af19ace4d3.gif"
  File "Thunder\Components\Community\emoticons\e9398b3489d84081724b76af19ace4d3t.jpg"
  File "Thunder\Components\Community\emoticons\Emoticon.xml"
  SetOutPath "$INSTDIR\Components\Community\faces"
  File "Thunder\Components\Community\faces\-1.gif"
  File "Thunder\Components\Community\faces\-2.gif"
  File "Thunder\Components\Community\faces\0.gif"
  File "Thunder\Components\Community\faces\1.gif"
  File "Thunder\Components\Community\faces\10.gif"
  File "Thunder\Components\Community\faces\11.gif"
  File "Thunder\Components\Community\faces\12.gif"
  File "Thunder\Components\Community\faces\13.gif"
  File "Thunder\Components\Community\faces\14.gif"
  File "Thunder\Components\Community\faces\15.gif"
  File "Thunder\Components\Community\faces\16.gif"
  File "Thunder\Components\Community\faces\17.gif"
  File "Thunder\Components\Community\faces\18.gif"
  File "Thunder\Components\Community\faces\19.gif"
  File "Thunder\Components\Community\faces\2.gif"
  File "Thunder\Components\Community\faces\20.gif"
  File "Thunder\Components\Community\faces\21.gif"
  File "Thunder\Components\Community\faces\22.gif"
  File "Thunder\Components\Community\faces\23.gif"
  File "Thunder\Components\Community\faces\24.gif"
  File "Thunder\Components\Community\faces\25.gif"
  File "Thunder\Components\Community\faces\26.gif"
  File "Thunder\Components\Community\faces\27.gif"
  File "Thunder\Components\Community\faces\28.gif"
  File "Thunder\Components\Community\faces\29.gif"
  File "Thunder\Components\Community\faces\3.gif"
  File "Thunder\Components\Community\faces\30.gif"
  File "Thunder\Components\Community\faces\31.gif"
  File "Thunder\Components\Community\faces\32.gif"
  File "Thunder\Components\Community\faces\33.gif"
  File "Thunder\Components\Community\faces\34.gif"
  File "Thunder\Components\Community\faces\35.gif"
  File "Thunder\Components\Community\faces\36.gif"
  File "Thunder\Components\Community\faces\37.gif"
  File "Thunder\Components\Community\faces\38.gif"
  File "Thunder\Components\Community\faces\39.gif"
  File "Thunder\Components\Community\faces\4.gif"
  File "Thunder\Components\Community\faces\40.gif"
  File "Thunder\Components\Community\faces\5.gif"
  File "Thunder\Components\Community\faces\6.gif"
  File "Thunder\Components\Community\faces\7.gif"
  File "Thunder\Components\Community\faces\8.gif"
  File "Thunder\Components\Community\faces\9.gif"
  SetOutPath "$INSTDIR\Components\Community\faces\offline"
  File "Thunder\Components\Community\faces\offline\-1.gif"
  File "Thunder\Components\Community\faces\offline\-2.gif"
  File "Thunder\Components\Community\faces\offline\0.gif"
  File "Thunder\Components\Community\faces\offline\1.gif"
  File "Thunder\Components\Community\faces\offline\10.gif"
  File "Thunder\Components\Community\faces\offline\11.gif"
  File "Thunder\Components\Community\faces\offline\12.gif"
  File "Thunder\Components\Community\faces\offline\13.gif"
  File "Thunder\Components\Community\faces\offline\14.gif"
  File "Thunder\Components\Community\faces\offline\15.gif"
  File "Thunder\Components\Community\faces\offline\16.gif"
  File "Thunder\Components\Community\faces\offline\17.gif"
  File "Thunder\Components\Community\faces\offline\18.gif"
  File "Thunder\Components\Community\faces\offline\19.gif"
  File "Thunder\Components\Community\faces\offline\2.gif"
  File "Thunder\Components\Community\faces\offline\20.gif"
  File "Thunder\Components\Community\faces\offline\21.gif"
  File "Thunder\Components\Community\faces\offline\22.gif"
  File "Thunder\Components\Community\faces\offline\23.gif"
  File "Thunder\Components\Community\faces\offline\24.gif"
  File "Thunder\Components\Community\faces\offline\25.gif"
  File "Thunder\Components\Community\faces\offline\26.gif"
  File "Thunder\Components\Community\faces\offline\27.gif"
  File "Thunder\Components\Community\faces\offline\28.gif"
  File "Thunder\Components\Community\faces\offline\29.gif"
  File "Thunder\Components\Community\faces\offline\3.gif"
  File "Thunder\Components\Community\faces\offline\30.gif"
  File "Thunder\Components\Community\faces\offline\31.gif"
  File "Thunder\Components\Community\faces\offline\32.gif"
  File "Thunder\Components\Community\faces\offline\33.gif"
  File "Thunder\Components\Community\faces\offline\34.gif"
  File "Thunder\Components\Community\faces\offline\35.gif"
  File "Thunder\Components\Community\faces\offline\36.gif"
  File "Thunder\Components\Community\faces\offline\37.gif"
  File "Thunder\Components\Community\faces\offline\38.gif"
  File "Thunder\Components\Community\faces\offline\39.gif"
  File "Thunder\Components\Community\faces\offline\4.gif"
  File "Thunder\Components\Community\faces\offline\40.gif"
  File "Thunder\Components\Community\faces\offline\5.gif"
  File "Thunder\Components\Community\faces\offline\6.gif"
  File "Thunder\Components\Community\faces\offline\7.gif"
  File "Thunder\Components\Community\faces\offline\8.gif"
  File "Thunder\Components\Community\faces\offline\9.gif"
  SetOutPath "$INSTDIR\Components\Community"
  File "Thunder\Components\Community\failimage.jpg"
  SetOutPath "$INSTDIR\Components\Community\local"
  File "Thunder\Components\Community\local\default.html"
  SetOutPath "$INSTDIR\Components\Community\local\img"
  File "Thunder\Components\Community\local\img\dot.gif"
  File "Thunder\Components\Community\local\img\lbg.gif"
  File "Thunder\Components\Community\local\img\rbg.gif"
  SetOutPath "$INSTDIR\Components\Community\PermanentGroupCache"
  File "Thunder\Components\Community\PermanentGroupCache\category_list.utf8.xml"
  SetOutPath "$INSTDIR\Components\Community"
  File "Thunder\Components\Community\RichObject.dll"
  File "Thunder\Components\Community\ring.wav"
  File "Thunder\Components\Community\ScreenSnaper.dll"
  File "Thunder\Components\Community\server.ini"
  File "Thunder\Components\Community\Statistic.ini"
  File "Thunder\Components\Community\toolbar.bmp"
  File "Thunder\Components\Community\transitionimage.gif"
  File "Thunder\Components\Community\xlaudio.dll"
  File "Thunder\Components\Community\XLCommunity.dll"
  SetOutPath "$INSTDIR\Components\DownAndPlay"
  File "Thunder\Components\DownAndPlay\DapCtrl.dll"
  File "Thunder\Components\DownAndPlay\DownAndPlay.dll"
  File "Thunder\Components\DownAndPlay\np-mswmp.dll"
  File "Thunder\Components\DownAndPlay\npDapCtrlFirefox.dll"
  File "Thunder\Components\DownAndPlay\nsIDapCtrlFirefox.xpt"
  File "Thunder\Components\DownAndPlay\PlayerHelper.dll"
  File "Thunder\Components\DownAndPlay\tsf.dll"
  File "Thunder\Components\DownAndPlay\XLNet.dll.new"
  SetOutPath "$INSTDIR\Components\DownloadStat"
  File "Thunder\Components\DownloadStat\DownloadStat.dll"
  SetOutPath "$INSTDIR\Components\ExplorerHelper"
  File "Thunder\Components\ExplorerHelper\ExplorerHelper.dll"
  File "Thunder\Components\ExplorerHelper\IThunderComponent.xpt"
  File "Thunder\Components\ExplorerHelper\IThunderDownload.xpt"
  File "Thunder\Components\ExplorerHelper\NsThunderLoader.dll"
  File "Thunder\Components\ExplorerHelper\NsThunderLoaderInstaller.dll"
  File "Thunder\Components\ExplorerHelper\regxpcom.exe"
  File "Thunder\Components\ExplorerHelper\thunder.xpi"
  File "Thunder\Components\ExplorerHelper\ThunderComponent.dll"
  File "Thunder\Components\ExplorerHelper\XLNonIESvr.exe"
  SetOutPath "$INSTDIR\Components\P4PClient"
  File "Thunder\Components\P4PClient\p4p.dat"
  File "Thunder\Components\P4PClient\P4PClient.dll"
  File "Thunder\Components\P4PClient\p4p_local.htm"
  SetOutPath "$INSTDIR\Components\Search"
  File "Thunder\Components\Search\XLSearch.dll"
  SetOutPath "$INSTDIR\Components\Security"
  File "Thunder\Components\Security\AVNameConfig.ini"
  File "Thunder\Components\Security\av_promotion.ini"
  File "Thunder\Components\Security\config.ini"
  File "Thunder\Components\Security\ConfigManager.dll"
  File "Thunder\Components\Security\ext_suggestion.ini"
  File "Thunder\Components\Security\SafeManager.dll"
  File "Thunder\Components\Security\SafeStatistic.dll"
  SetOutPath "$INSTDIR\Components\Security\Skin\icon"
  File "Thunder\Components\Security\Skin\icon\danger.ico"
  File "Thunder\Components\Security\Skin\icon\delete.ico"
  File "Thunder\Components\Security\Skin\icon\duba24.ico"
  File "Thunder\Components\Security\Skin\icon\jiangmin24.ico"
  File "Thunder\Components\Security\Skin\icon\kaspersky24.ico"
  File "Thunder\Components\Security\Skin\icon\plugin.ico"
  File "Thunder\Components\Security\Skin\icon\query.ico"
  File "Thunder\Components\Security\Skin\icon\rising24.ico"
  File "Thunder\Components\Security\Skin\icon\safe.ico"
  File "Thunder\Components\Security\Skin\icon\tab_cursel.ico"
  File "Thunder\Components\Security\Skin\icon\tab_danger.ico"
  File "Thunder\Components\Security\Skin\icon\tab_delete.ico"
  File "Thunder\Components\Security\Skin\icon\tab_failtoget.ico"
  File "Thunder\Components\Security\Skin\icon\tab_malevolence.ico"
  File "Thunder\Components\Security\Skin\icon\tab_popad.ico"
  File "Thunder\Components\Security\Skin\icon\tab_rmvbsafe.ico"
  File "Thunder\Components\Security\Skin\icon\tab_safe.ico"
  File "Thunder\Components\Security\Skin\icon\tab_unknown.ico"
  File "Thunder\Components\Security\Skin\icon\unknown.ico"
  File "Thunder\Components\Security\Skin\icon\zjbb24.ico"
  SetOutPath "$INSTDIR\Components\Security"
  File "Thunder\Components\Security\ThunderSafe.dll"
  SetOutPath "$INSTDIR\Components\Tips"
  File "Thunder\Components\Tips\MSG.gif"
  File "Thunder\Components\Tips\TipsClient.dll"
  File "Thunder\Components\Tips\TipsExtend.exe"
  File "Thunder\Components\Tips\XLIPC.dll"
  SetOutPath "$INSTDIR\Plugins\XLSafeHost\skin\bitmap"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\btn_enable.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\safeicon16.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\safeicongray16.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\scr_title.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\status_ani.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip_antivirus.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip_rmf.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip_scan.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip_title.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tip_warning.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\toolbar.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\tree_leakscan.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\v.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\wizard.bmp"
  File "Thunder\Plugins\XLSafeHost\skin\bitmap\x.bmp"
  SetOutPath "$INSTDIR\Plugins\XLSafeHost\skin\icon"
  File "Thunder\Plugins\XLSafeHost\skin\icon\close_btn.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\mini_danger.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\mini_safe.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\mini_unknown.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\option.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\rising16.ico"
  File "Thunder\Plugins\XLSafeHost\skin\icon\rmf_normal.ico"
  SetOutPath "$INSTDIR\Plugins\XLSafeHost"
  File "Thunder\Plugins\XLSafeHost\XLChecker.dll"
  File "Thunder\Plugins\XLSafeHost\XLSafeHost.dll"
  SetOutPath "$INSTDIR\Profiles"
  File "Thunder\Profiles\AyuConfig.ini"
  File "Thunder\Profiles\history6.dat"
  File "Thunder\Profiles\history6.dat.rescue"
  File "Thunder\Profiles\Personal.ini"
  File "Thunder\Profiles\UserConfig.ini"
  SetOutPath "$INSTDIR\Program"
  File "Thunder\Program\2H34"
  File "Thunder\Program\addins.ini"
  File "Thunder\Program\al.cfg"
  File "Thunder\Program\al.dll"
  File "Thunder\Program\asyn_frame.dll"
  File "Thunder\Program\backend_agent.dll"
  File "Thunder\Program\bd.dat"
  File "Thunder\Program\bd.dll"
  File "Thunder\Program\BHOStub.dll"
  File "Thunder\Program\bootstrap.dat"
  File "Thunder\Program\bt_download.dll"
  File "Thunder\Program\BugReport.dll"
  File "Thunder\Program\BugReport.exe"
  File "Thunder\Program\dhtnodes.dat"
  File "Thunder\Program\dl_peer_id.dll"
  File "Thunder\Program\download-complete.wav"
  File "Thunder\Program\download.cfg"
  File "Thunder\Program\download_interface.dll"
  File "Thunder\Program\down_dispatcher.dll"
  File "Thunder\Program\DSConvert.dll"
  File "Thunder\Program\emule.dll"
  File "Thunder\Program\emule_id.dll"
  File "Thunder\Program\error.dat"
  File "Thunder\Program\error.ini"
  File "Thunder\Program\FloatBar.dll"
  File "Thunder\Program\fs.dll"
  File "Thunder\Program\FtpExplorer.exe"
  File "Thunder\Program\getAllurl.htm"
  File "Thunder\Program\geturl.htm"
  File "Thunder\Program\historyinfoTransfer.dll"
  File "Thunder\Program\historyinfo_manage.dll"
  File "Thunder\Program\id.dat"
  File "Thunder\Program\imdt.dll"
  File "Thunder\Program\ipfilter.dat"
  File "Thunder\Program\iTargetAD.dll"
  File "Thunder\Program\LanguageSetter.exe"
  File "Thunder\Program\mp.dll"
  File "Thunder\Program\nodes.dat"
  File "Thunder\Program\p2p.dll"
  File "Thunder\Program\p2p_local_res.dll"
  File "Thunder\Program\p2p_network_com.dll"
  File "Thunder\Program\p2p_upload.dll"
  File "Thunder\Program\p2sp.dll"
  File "Thunder\Program\ptl.dll"
  File "Thunder\Program\record.bin"
  File "Thunder\Program\register.ini"
  File "Thunder\Program\RegisterDll.dll"
  File "Thunder\Program\RegLicense.txt"
  File "Thunder\Program\RegLicenseE.txt"
  File "Thunder\Program\SCID.dat"
  File "Thunder\Program\server.bak"
  File "Thunder\Program\server.met"
  File "Thunder\Program\SpecialSite.ini"
  File "Thunder\Program\stat.dat"
  File "Thunder\Program\stream.dll"
  File "Thunder\Program\streammedia.cfg"
  File "Thunder\Program\takeown.bat"
  File "Thunder\Program\TaskManager.dll"
  File "Thunder\Program\Thunder5.exe"
  File "Thunder\Program\ThunderEx.dll"
  File "Thunder\Program\Thunder_cfg.ini"
  File "Thunder\Program\UninitAddin.log"
  File "Thunder\Program\upnp.exe"
  File "Thunder\Program\Whatsnew.txt"
  File "Thunder\Program\XLCommunityEx.dll"
  File "Thunder\Program\xldc.cfg"
  File "Thunder\Program\xldc.dll"
  File "Thunder\Program\xldc_stat.dat"
  File "Thunder\Program\xlhcc.dat"
  File "Thunder\Program\XLNet.dll"
  File "Thunder\Program\XLNetU.dll"
  File "Thunder\Program\xlpfmc.dll"
  File "Thunder\Program\xlvdt.dll"
  File "Thunder\Program\xlvdt.ini"
  File "Thunder\Program\xl_stat.dll"
  File "Thunder\Program\zlib1.dll"
  SetOutPath "$INSTDIR"
  File "Thunder\Thunder.exe"
SectionEnd

Section "右健菜单" SECRegistry
  SectionIn 1 2
  WriteRegStr "HKLM" "SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" "Path" "$INSTDIR\Thunder.exe"
  WriteRegStr "HKLM" "SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" "Version" "${PRODUCT_VERSION}"
  WriteRegStr "HKCU" "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" "" "$INSTDIR\Program\GetAllUrl.htm"
  WriteRegDWORD "HKCU" "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" "Contexts" "243"
  WriteRegStr "HKCU" "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" "" "$INSTDIR\Program\GetUrl.htm"
  WriteRegDWORD "HKCU" "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" "Contexts" "34"
SectionEnd

Section "专用链模块" SECLinkSimulate
  SectionIn 1 2
  SetOutPath "$INSTDIR\ComDlls"
  File "Thunder\ComDlls\LinkSimulate.dll"
  RegDLL "$INSTDIR\ComDlls\LinkSimulate.dll"
SectionEnd

SectionGroup "皮肤组件" SECSkins

  Section "银妆素裹" SECWhite
  SectionIn 2
  SetOutPath "$INSTDIR\Skins\White"
  SetOverwrite ifnewer
  File "Thunder\Skins\White\CfgBig.bmp"
  File "Thunder\Skins\White\ConnectInfo.bmp"
  File "Thunder\Skins\White\GlideCtrl.bmp"
  File "Thunder\Skins\White\GlideHint.bmp"
  File "Thunder\Skins\White\HeadSort.bmp"
  File "Thunder\Skins\White\HelpBtn.bmp"
  File "Thunder\Skins\White\Menudisable.bmp"
  File "Thunder\Skins\White\MenuHot.bmp"
  File "Thunder\Skins\White\MenuNormal.bmp"
  File "Thunder\Skins\White\skin.ini"
  File "Thunder\Skins\White\statusbar.bmp"
  File "Thunder\Skins\White\TaskCategory.bmp"
  File "Thunder\Skins\White\TaskStatus.bmp"
  File "Thunder\Skins\White\tb_community.bmp"
  File "Thunder\Skins\White\tb_popup.bmp"
  File "Thunder\Skins\White\tb_resource.bmp"
  File "Thunder\Skins\White\tb_SAFE.bmp"
  File "Thunder\Skins\White\ToolBtnDisable.bmp"
  File "Thunder\Skins\White\ToolBtnHot.bmp"
  File "Thunder\Skins\White\ToolBtnNormal.bmp"
  SectionEnd

  Section "金属时代" SECDark
  SectionIn 2
  SetOutPath "$INSTDIR\Skins\Dark"
  SetOverwrite ifnewer
  File "Thunder\Skins\Dark\CfgBig.bmp"
  File "Thunder\Skins\Dark\ConnectInfo.bmp"
  File "Thunder\Skins\Dark\GlideCtrl.bmp"
  File "Thunder\Skins\Dark\GlideHint.bmp"
  File "Thunder\Skins\Dark\HeadSort.bmp"
  File "Thunder\Skins\Dark\HelpBtn.bmp"
  File "Thunder\Skins\Dark\Menudisable.bmp"
  File "Thunder\Skins\Dark\MenuHot.bmp"
  File "Thunder\Skins\Dark\MenuNormal.bmp"
  File "Thunder\Skins\Dark\skin.ini"
  File "Thunder\Skins\Dark\statusbar.bmp"
  File "Thunder\Skins\Dark\TaskCategory.bmp"
  File "Thunder\Skins\Dark\TaskStatus.bmp"
  File "Thunder\Skins\Dark\tb_community.bmp"
  File "Thunder\Skins\Dark\tb_popup.bmp"
  File "Thunder\Skins\Dark\tb_resource.bmp"
  File "Thunder\Skins\Dark\tb_SAFE.bmp"
  File "Thunder\Skins\Dark\ToolBtnDisable.bmp"
  File "Thunder\Skins\Dark\ToolBtnHot.bmp"
  File "Thunder\Skins\Dark\ToolBtnNormal.bmp"
  SectionEnd

SectionGroupEnd

SectionGroup "语言文件" SECLanguages

  Section "简体中文" SECzh_cn
  SectionIn RO
  SetOutPath "$INSTDIR\Languages\zh_cn"
  SetOverwrite ifnewer
  File "Thunder\Languages\zh_cn\Community.ini"
  File "Thunder\Languages\zh_cn\Community.xml"
  File "Thunder\Languages\zh_cn\Connection.ini"
  File "Thunder\Languages\zh_cn\dynamichelp.xml"
  File "Thunder\Languages\zh_cn\FloatBar1.bmp"
  File "Thunder\Languages\zh_cn\FloatBar2.bmp"
  File "Thunder\Languages\zh_cn\FloatBar3.bmp"
  File "Thunder\Languages\zh_cn\FtpGlance.ini"
  File "Thunder\Languages\zh_cn\GouGouTop.ini"
  File "Thunder\Languages\zh_cn\InMedia.ini"
  File "Thunder\Languages\zh_cn\Language.ini"
  File "Thunder\Languages\zh_cn\LiveUpdate.ini"
  File "Thunder\Languages\zh_cn\P4PClient.ini"
  File "Thunder\Languages\zh_cn\Thunder.ini"
  File "Thunder\Languages\zh_cn\XLSearch.ini"
  SectionEnd

  Section "繁体中文" SECzh_tw
  SectionIn 2
  SetOutPath "$INSTDIR\Languages\zh_tw"
  SetOverwrite ifnewer
  File "Thunder\Languages\zh_tw\Community.ini"
  File "Thunder\Languages\zh_tw\Community.xml"
  File "Thunder\Languages\zh_tw\Connection.ini"
  File "Thunder\Languages\zh_tw\dynamichelp.xml"
  File "Thunder\Languages\zh_tw\FloatBar1.bmp"
  File "Thunder\Languages\zh_tw\FloatBar2.bmp"
  File "Thunder\Languages\zh_tw\FloatBar3.bmp"
  File "Thunder\Languages\zh_tw\FtpGlance.ini"
  File "Thunder\Languages\zh_tw\GouGouTop.ini"
  File "Thunder\Languages\zh_tw\InMedia.ini"
  File "Thunder\Languages\zh_tw\Language.INI"
  File "Thunder\Languages\zh_tw\LiveUpdate.ini"
  File "Thunder\Languages\zh_tw\P4PClient.ini"
  File "Thunder\Languages\zh_tw\Thunder.ini"
  File "Thunder\Languages\zh_tw\XLSearch.ini"
  SectionEnd

SectionGroupEnd

SectionGroup "快捷方式" SECshortcut

  Section "桌面" SECdesktop
  SectionIn 1 2
  CreateShortCut "$DESKTOP\迅雷.lnk" "$INSTDIR\Thunder.exe"
  SectionEnd

  Section "开始菜单" SECstart
  SectionIn 1 2
  CreateDirectory "$SMPROGRAMS\迅雷"
  CreateShortCut "$SMPROGRAMS\迅雷\启动迅雷.lnk" "$INSTDIR\Thunder.exe"
  CreateShortCut "$SMPROGRAMS\迅雷\扩展设置.lnk" "$INSTDIR\AyuConfig.exe"
  CreateShortCut "$SMPROGRAMS\迅雷\卸载迅雷.lnk" "$INSTDIR\uninst.exe"
  SectionEnd

  Section "快速启动" SECquick
  SectionIn 2
  CreateShortCut "$QUICKLAUNCH\迅雷.lnk" "$INSTDIR\Thunder.exe"
  SectionEnd

SectionGroupEnd

section -Regdll
  RegDLL "$INSTDIR\ComDlls\ThunderAgent.dll"
  RegDLL "$INSTDIR\ComDlls\XunLeiBHO.dll"
  RegDLL "$INSTDIR\ComDlls\TDAtOnce.dll"
  RegDLL "$INSTDIR\ComDlls\Faker.dll"
SectionEnd

Section -Post
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Thunder.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Thunder.exe"
  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

; 区段组件描述
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${SECThunder} "迅雷主程序,必选!"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECRegistry} "迅雷右键菜单,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECLinkSimulate} "专用链支持模块,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECSkins} "附加的两款皮肤,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECWhite} "银妆素裹皮肤,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECDark} "金属时代皮肤,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECLanguages} "语言文件模块。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECzh_cn} "简体中文,必选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECzh_tw} "繁体中文,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECshortcut} "快捷方式,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECdesktop} "桌面快捷方式,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECstart} "开始菜单快捷方式,可选。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECquick} "快速启动快捷方式,可选。"
!insertmacro MUI_FUNCTION_DESCRIPTION_END


/******************************
 *  以下是安装程序的卸载部分  *
 ******************************/

Section Uninstall
  unRegDLL "$INSTDIR\ComDlls\TDAtOnce_Now.dll"
  unRegDLL "$INSTDIR\ComDlls\xunleiBHO_Now.dll"
  unRegDLL "$INSTDIR\ComDlls\ThunderAgent.dll"
  unRegDLL "$INSTDIR\ComDlls\XunLeiBHO.dll"
  unRegDLL "$INSTDIR\ComDlls\TDAtOnce.dll"
  unRegDLL "$INSTDIR\ComDlls\Faker.dll"
  unRegDLL "$INSTDIR\ComDlls\LinkSimulate.dll"
  unRegDLL "$INSTDIR\ComDlls\ThunderAgent_Now.dll"

  Delete "$INSTDIR\uninst.exe"
  Delete "$INSTDIR\AyuConfig.exe"
  Delete "$INSTDIR\Thunder.exe"

  Delete "$SMPROGRAMS\迅雷\卸载迅雷.lnk"
  Delete "$SMPROGRAMS\迅雷\扩展设置.lnk"
  Delete "$SMPROGRAMS\迅雷\启动迅雷.lnk"
  Delete "$QUICKLAUNCH\迅雷.lnk"
  Delete "$DESKTOP\迅雷.lnk"

  RMDir  "$SMPROGRAMS\迅雷"

  RMDir /r "$INSTDIR\Skins"
  RMDir /r "$INSTDIR\Program"
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "是否保留配置文件和历史记录?" /SD IDYES IDNO +2
  Goto +2
  RMDir /r "$INSTDIR\Profiles"
  RMDir /r "$INSTDIR\Plugins"
  RMDir /r "$INSTDIR\Languages"
  RMDir /r "$INSTDIR\Components"
  RMDir /r "$INSTDIR\ComDlls"

  RMDir "$INSTDIR"

  DeleteRegKey HKLM "SOFTWARE\Thunder Network"
  DeleteRegKey HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接"
  DeleteRegKey HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载"

  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  SetAutoClose true
SectionEnd

#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#

Function .onInstSuccess
  Exec "$INSTDIR\AyuConfig.exe"
FunctionEnd

Function .onInit
  FindProcDLL::FindProc "Thunder5.exe"
  Pop $R0
  StrCmp $R0 0 +3
   MessageBox MB_OK|MB_ICONEXCLAMATION "迅雷正在运行,请退出后再进行安装!"
   Abort

  InitPluginsDir
  ;创建互斥防止重复运行
  System::Call 'kernel32::CreateMutexA(i 0, i 0, t "Thunder5_installer") i .r1 ?e'
  Pop $R0
  StrCmp $R0 0 +3
    MessageBox MB_OK|MB_ICONEXCLAMATION "有一个迅雷安装向导已经运行!"
    Abort
FunctionEnd

Function un.onInit
  FindProcDLL::FindProc "Thunder5.exe"
  Pop $R0
  StrCmp $R0 0 +3
   MessageBox MB_OK|MB_ICONEXCLAMATION "迅雷正在运行,请退出后再进行卸载!"
   Abort

  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "您确实要完全移除 $(^Name) ,及其所有的组件?" IDYES +2
  Abort
FunctionEnd

Function un.onUninstSuccess
  HideWindow
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功卸载!"
FunctionEnd

NSIS安装包制作教程 分为三个目录:基础,插件,脚本 NSIS System 插件 NSIS VPatch 3.1插件 NSIS InstallOptions 2 插件 NSIS Modern UI(新式用户界面)插件 NSIS的Modern UI插件 NSIS里特殊符号的表达方法 两组件互斥 NSIS 常用小问题合集 资源替换式的美化包制作方式代码 安装完毕后如何刷新文件关联 教你如何编程调用 NSIS 的插件 NSIS安装程序概要 实现 NSIS 自定义页面中的控件操作代码 如何使用NSIS实现多目录安装设置 如何用NSIS在加入注册表 用NSIS 制作自己的安装程序 bluewind 的 wmp9 nsis安装脚本 NSIS安装脚本简明教程 取得winamp的NSIS脚本的教程 迅雷5.7.3.389 AYU增强的安装脚本 NSIS制作迅雷安装的脚本 迅雷5.7.2.371 DDR1.5去广告源代码说明 NSIS删除安装程序自身 帮助文件中关于静默安装的说明 NSIS实现静默安装的两种方法 nsis的附加任务代码 关于 NSIS 写入注册表的问题 少轻狂制作的Windows优化大师的安装脚本 aipc编写的nsis极点安装脚本 官方 NSIS 插件全集 全方位掌握NSIS的使用 NSIS语言里怎样安装一个.inf文件? 如果要关联某个文件给程序应该怎么做? 如何避免显示解压缩进度框? 关于检测操作系统的问题 在结束页面添加运行程序选项 NSIS的botton二选一如何实现? NSIS灵活应用用逻辑库 NSIS调用inf安装驱动后的卸载问题 NSIS的组件互斥代码 在NSIS中如何禁止一个组件组的父项的点击事件 关于打破 NSIS 的 8192 字节限制的更简单方法 NSIS 自定义页面结合组件选择安装 一个关于组件跟自定义页面的控制问题 如何把安装的卸载程序放到其他目录
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值