杉宫竹苑工作室

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2691|回复: 0

迅雷5.8.4.572 去广告 Full_组件选装版

[复制链接]
发表于 2017-2-26 15:06:57 | 显示全部楼层 |阅读模式

正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. !define SSXF    ;盛世雄风标志及其它格式模式
  2. !define _MAX_SEL_
  3. !define FULL
  4. ;!define SVCPACK

  5. ;
  6. ;  转载请保留:
  7. ;  原创:muniao, bbs.ssxf.org
  8. ;  2008-08-21
  9. ;
  10. ;  开源的意思是:
  11. ;  我核对了17个迅雷组件的,免得大家做重复工作。
  12. ;
  13. !define SNAME `Thunder`
  14. !define PRODUCT_VERSION `5.8.4.572`
  15. !ifdef FULL
  16.     !define PRODUCT_NAME `迅雷Ayu去广告版`
  17.     !define EXEFN `迅雷_${PRODUCT_VERSION}_Full.exe`
  18. !else
  19.     !define PRODUCT_NAME `迅雷Ayu去广告精简版`
  20.     !define EXEFN `迅雷_${PRODUCT_VERSION}_Lite.exe`
  21. !endif
  22. ;
  23. SetCompressor /SOLID lzma
  24. SetCompressorDictSize 16
  25. ;
  26. !include `MUI2.nsh`
  27. !include `xtlib.nsh`
  28. !packhdr temp.dat 'upx -9 -q temp.dat'
  29. ;===========================================================================================
  30. !define MUI_HEADERIMAGE
  31. !define MUI_HEADERIMAGE_BITMAP `_OTH\setup11.bmp`
  32. !undef  MUI_WELCOMEFINISHPAGE_BITMAP
  33. !define MUI_WELCOMEFINISHPAGE_BITMAP `_OTH\logor11.bmp`
  34. !define MUI_FINISHPAGE_RUN `$INSTDIR\${SNAME}.exe`
  35. ;===========================================================================================
  36. !macro INST_PLUGIN _DIR1 _DIR2
  37.     !ifdef FULL
  38.         SetOutPath `$INSTDIR\${_DIR1}`
  39.         File /r `${PRODUCT_VERSION}\${_DIR1}\${_DIR2}`
  40.     !else
  41.         SectionIn RO
  42.     !endif
  43. !macroend
  44. ;===========================================================================================
  45. !macro INST_FUNC_FILE _DIR _FN
  46.     !ifdef FULL
  47.         SetOutPath `$INSTDIR\${_DIR}`
  48.         File `${PRODUCT_VERSION}\${_DIR}\${_FN}`
  49.     !else
  50.         SectionIn RO
  51.     !endif
  52. !macroend
  53. ComponentText `在精简版中部分组件为不可选状态。要安装这些组件,请到 ${COMPNAME} 下载完整版。`
  54. ;===========================================================================================
  55. !undef  MUI_ICON
  56. !define MUI_ICON `_Oth\thunder.ico`
  57. !undef  MUI_UNWELCOMEFINISHPAGE_BITMAP
  58. !define MUI_UNWELCOMEFINISHPAGE_BITMAP `_Oth\WizardImage.bmp`
  59. ;===========================================================================================
  60. !define MUI_UNINSTALLER
  61. !ifndef SVCPACK
  62.     !insertmacro MUI_PAGE_WELCOME
  63.     !insertmacro MUI_PAGE_COMPONENTS
  64.     !insertmacro MUI_PAGE_DIRECTORY
  65. !else
  66.     !undef EXEFN
  67.     !define EXEFN `THUNDER5.EXE`
  68. !endif
  69. !insertmacro MUI_PAGE_INSTFILES
  70. !ifndef SVCPACK
  71.     !insertmacro MUI_PAGE_FINISH
  72. !endif
  73.     !insertmacro MUI_UNPAGE_CONFIRM
  74.     !insertmacro MUI_UNPAGE_INSTFILES
  75. ;
  76. !insertmacro MUI_LANGUAGE `SimpChinese`
  77. SetFont /LANG=`${LANG_SimpChinese}` `宋体` 11
  78. !insertmacro FORE_EXEINFO
  79. ;
  80. InstallDir `$PROGRAMFILES\Thunder Network\${SNAME}`
  81. InstallDirRegKey HKLM `Software\Microsoft\Windows\CurrentVersion\Uninstall\${SNAME}` `InstallLocation`
  82. SetOverwrite try
  83. ;===========================================================================================
  84. Section `${PRODUCT_NAME}`
  85.     SectionIn RO
  86.     SetOutPath `$INSTDIR`
  87.     SetOverwrite try
  88.         File /r `${PRODUCT_VERSION}\Languages`
  89.         File /r `${PRODUCT_VERSION}\Profiles`
  90.         File /r /x LiveUpdate.dll `${PRODUCT_VERSION}\Program`
  91.         File `${PRODUCT_VERSION}\Thunder.exe`
  92.     SetOutPath `$INSTDIR\Profiles`
  93.         File `/oname=UserConfig.ini` `${PRODUCT_VERSION}\Profiles\AyuConfig.ini`
  94.         CreateDirectory `$INSTDIR\Components`
  95.         CreateDirectory `$INSTDIR\Plugins`
  96.         CreateDirectory `$INSTDIR\ComDlls`
  97.     SetOutPath `$INSTDIR`
  98.     CreateShortCut `$SMPROGRAMS\迅雷.lnk` `$INSTDIR\Thunder.exe`
  99. SectionEnd
  100. ;===========================================================================================
  101. SectionGroup `浏览器右键支持 / BHO 插件`
  102.     Section `支持右键下载`
  103.         SetOutPath `$INSTDIR\ComDlls`
  104.         File `${PRODUCT_VERSION}\ComDlls\ThunderAgent.dll`
  105.         RegDLL ThunderAgent.dll
  106. WriteRegStr   HKLM `SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd` `Cache` `$APPDATA\vod_cache_data\`
  107. WriteRegStr   HKLM `SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd` `Path` `$INSTDIR\Thunder.exe`
  108. WriteRegStr   HKLM `SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd` `Version` `${PRODUCT_VERSION}`
  109. WriteRegStr   HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载` `` `$INSTDIR\Program\geturl.htm`
  110. WriteRegDWORD HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载` `Contexts` 0x00000022
  111. ;WriteRegStr   HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接` `` `$INSTDIR\Program\getallurl.htm`
  112. ;WriteRegDWORD HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接` `Contexts` 0x000000f3
  113.     SectionEnd
  114.     Section /o `浏览器工具栏 / BHO 插件`
  115.         !insertmacro INST_PLUGIN `` `ComDlls`
  116.         SetOutPath `$INSTDIR\ComDlls`
  117.         RegDLL ThunderAgent.dll
  118. /*
  119. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `ButtonText` `迅雷5`
  120. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `Exec` `$INSTDIR\Thunder.exe`
  121. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `Icon` `$INSTDIR\Program\Thunder.ico`
  122. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `HotIcon` `$INSTDIR\Program\Thunder.ico`
  123. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `MenuStatusBar` `迅雷5`
  124. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `MenuText` `迅雷5`
  125. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `CLSID` `{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}`
  126. WriteRegStr   HKLM `SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}` `Default Visible` `Yes`
  127. */
  128.     SectionEnd
  129. SectionGroupEnd
  130. ;===========================================================================================
  131. Section /o `自动更新`
  132.     !insertmacro INST_FUNC_FILE `Program` `LiveUpdate.dll`
  133. SectionEnd
  134. Section /o `可选皮肤`
  135.     !insertmacro INST_PLUGIN `` `Skins`
  136. SectionEnd
  137. Section /o `VC 运行库`
  138.     SetOverwrite try
  139.     !ifdef FULL
  140.         SetOutPath `$SYSDIR`
  141.         File `_Oth\msvcp60.dll`
  142.         File `_Oth\msvcp71.dll`
  143.         File `_Oth\msvcr71.dll`
  144.     !else
  145.         SectionIn RO
  146.     !endif
  147. SectionEnd
  148. ;===========================================================================================
  149. SectionGroup `可选组件和插件`
  150.     Section /o `聊天功能`
  151.         !insertmacro INST_PLUGIN `Components` `Community`
  152.     SectionEnd
  153.     Section /o `视频信息预览/边下边看`
  154.         !insertmacro INST_PLUGIN `Components` `DownAndPlay`
  155.         SetOutPath `$INSTDIR\Components\DownAndPlay`
  156.         RegDLL `$INSTDIR\Components\DownAndPlay\DapPlayer.dll`
  157.         RegDLL `$INSTDIR\Components\DownAndPlay\xlsf.dll`
  158.         RegDLL `$INSTDIR\Components\DownAndPlay\DapCtrl.dll`
  159.     SectionEnd
  160.     Section /o `下载纠错插件`
  161.         !insertmacro INST_PLUGIN `Components` `DownloadStat`
  162.     SectionEnd
  163.     Section /o `多浏览器支持插件`
  164.         !insertmacro INST_PLUGIN `Components` `ExplorerHelper`
  165.     SectionEnd
  166.     Section /o `迅雷看看`
  167.         !insertmacro INST_PLUGIN `Components` `KanKan`
  168.         !insertmacro INST_PLUGIN `Plugins` `KanKanTop`
  169.         SetOutPath `$INSTDIR\Components\KanKan`
  170.             RegDLL `$INSTDIR\Components\KanKan\XAFilter.ax`
  171.             RegDLL `$INSTDIR\Components\KanKan\PPlayer.dll`
  172.             RegDLL `$INSTDIR\Components\KanKan\Xdrm.dll`
  173.             RegDLL `$INSTDIR\Components\KanKan\XmvSource.dll`
  174.             RegDLL `$INSTDIR\Components\KanKan\XPlayer.dll`
  175.             ExecWait `"$INSTDIR\Program\Thunder5.exe" /Installaddin:{EBDF4650-539A-4CC5-B6F2-B7C5E5D59735}|迅雷看看|..\Plugins\KanKanTop\KanKanTop.dll`
  176.     SectionEnd
  177.     Section /o `迅雷 P4P`
  178.         !insertmacro INST_PLUGIN `Components` `P4PClient`
  179.     SectionEnd
  180.     Section /o `迅雷热门资源搜索/推荐`
  181.         !insertmacro INST_PLUGIN `Components` `Search`
  182.     SectionEnd
  183.     Section /o `安全下载`
  184.         !insertmacro INST_PLUGIN `Components` `Security`
  185.         SetOutPath `$INSTDIR\Program`
  186.         Exec `"$INSTDIR\Program\Thunder5.exe" /installaddin:{76F61D18-C813-432E-BC7A-A41A45D04113}|迅雷安全下载组件|..\Components\security\ThunderSafe.dll`
  187.          
  188.     SectionEnd
  189.     Section /o `迅雷资讯`
  190.         !insertmacro INST_PLUGIN `Components` `Tips`
  191.     SectionEnd
  192.     Section /o `装机必备软件`
  193.         !insertmacro INST_PLUGIN `Components` `XLSoftBase`
  194.     SectionEnd
  195.     Section /o `狗狗搜索排行`
  196.         !insertmacro INST_PLUGIN `Plugins` `GouGouTop`
  197.         ExecWait `"$INSTDIR\Program\Thunder5.exe" /Installaddin:{1FC7CAC6-2DA8-4cb0-B440-C069956CC0CA}|狗狗搜索排行|..\Plugins\GouGouTop\GouGouTop.dll`
  198.     SectionEnd
  199.     Section /o `迅雷安全中心`
  200.         !insertmacro INST_PLUGIN `Plugins` `XLSafeHost`
  201.     SectionEnd
  202.     Section /o `InMedia 超清晰视频广告`
  203.         !insertmacro INST_PLUGIN `Components` `InMedia`
  204.     SectionEnd
  205.     Section /o `未知模块:ResWorker`
  206.         !insertmacro INST_PLUGIN `Components` `ResWorker`
  207.     SectionEnd
  208.     Section /o `未知模块:VPShell`
  209.         !insertmacro INST_PLUGIN `Components` `VPShell`
  210.     SectionEnd
  211.     Section /o `未知模块:UserExperience`
  212.         !insertmacro INST_PLUGIN `Components` `UserExperience`
  213.     SectionEnd
  214. SectionGroupEnd
  215. ;=====================================================================================
  216. SectionGroup `优化设置`
  217.     Section `启用专用链支持`
  218.         SetOutPath `$INSTDIR\ComDlls`
  219.         File `${PRODUCT_VERSION}\ComDlls\LinkSimulate.dll`
  220.         RegDLL `LinkSimulate.dll`
  221.     SectionEnd
  222.     Section `禁止偷偷上传`
  223.         SetDetailsPrint ${DISPSUM}
  224.         SetFileAttributes `$SYSDIR\cid_store.dat` 0
  225.         Delete `$SYSDIR\cid_store.dat\noupload`
  226.         CreateDirectory `$SYSDIR\cid_store.dat\noupload`
  227.         SetFileAttributes `$INSTDIR\Program\cid_store.dat` 0
  228.         Delete `$INSTDIR\Program\cid_store.dat\noupload`
  229.         CreateDirectory `$INSTDIR\Program\cid_store.dat\noupload`
  230.         SetDetailsPrint both
  231.     SectionEnd
  232.     Section /o `运行 Ayu设置工具手工设置`
  233.         !insertmacro INST_FUNC_FILE `` `AyuConfig.exe`
  234.     SectionEnd
  235. SectionGroupEnd
  236. ;===========================================================================================
  237. Section `创建卸载程序`
  238.     !insertmacro SSXF_UNINSTALL `${SNAME}` `${PRODUCT_NAME}`
  239. SectionEnd
  240. ;===========================================================================================
  241. Section `Uninstall`
  242.     SetDetailsPrint both
  243.     SetDetailsView show
  244.     DeleteRegKey HKLM `Software\Microsoft\Windows\CurrentVersion\Uninstall\${SNAME}`
  245.     !insertmacro _DELMENU_LNK_ `迅雷`
  246.     ExecWait  '`$INSTDIR\Program\SetupHelper.exe` /exit_thunder5'
  247.     ExecWait  '`$INSTDIR\Program\SetupHelper.exe` /delete_bho'
  248.     ExecWait  '`$INSTDIR\Program\SetupHelper.exe` /close_firewall'
  249.     ExecWait  '`$INSTDIR\Program\LanguageSetter.exe` fromfile|-1'
  250.     UnRegDLL `$INSTDIR\Components\KanKan\XAFilter.ax`
  251.     UnRegDLL `$INSTDIR\Components\KanKan\PPlayer.dll`
  252.     UnRegDLL `$INSTDIR\Components\KanKan\Xdrm.dll`
  253.     UnRegDLL `$INSTDIR\Components\KanKan\XmvSource.dll`
  254.     UnRegDLL `$INSTDIR\Components\KanKan\XPlayer.dll`
  255.     UnRegDLL `$INSTDIR\Components\DownAndPlay\DapPlayer.dll`
  256.     UnRegDLL `$INSTDIR\Components\DownAndPlay\xlsf.dll`
  257.     UnRegDLL `$INSTDIR\Components\DownAndPlay\DapCtrl.dll`
  258.     UnRegDLL `$INSTDIR\ComDlls\TDAtOnce.dll`
  259.     UnRegDLL `$INSTDIR\ComDlls\ThunderAgent.dll`
  260.     UnRegDLL `$INSTDIR\ComDlls\XunLeiBHO.dll`
  261.     Delete `$INSTDIR\Thunder.exe`
  262.     Delete `$DESKTOP\迅雷5.lnk`
  263.     Delete `$SMPROGRAMS\迅雷\迅雷5 卸载.lnk`
  264.     Delete `$SMPROGRAMS\迅雷\迅雷5.lnk`
  265.     RMDir /r  `$SMPROGRAMS\迅雷`
  266.     RMDir /r  `$INSTDIR\Skins`
  267.     RMDir /r  `$INSTDIR\Languages`
  268.     RMDir /r /REBOOTOK `$INSTDIR\TDTmp`
  269.     RMDir /r /REBOOTOK `$INSTDIR\Program`
  270.     RMDir /r /REBOOTOK `$INSTDIR\Components`
  271.     RMDir /r /REBOOTOK `$INSTDIR\ComDlls`
  272.     RMDir /r /REBOOTOK `$INSTDIR\Plugins`
  273.     RMDir /r /REBOOTOK `$INSTDIR\Profiles`
  274.     DeleteRegKey HKLM `Software\Microsoft\Windows\CurrentVersion\App Paths\Thunder.exe`
  275.     DeleteRegKey HKCR `bittorrent\shell\open\command`
  276.     DeleteRegKey HKCR `bittorrent\shell\open`
  277.     DeleteRegKey HKCR `bittorrent\shell`
  278.     DeleteRegKey HKCR `bittorrent\DefaultIcon`
  279.     DeleteRegKey HKCR `bittorrent`
  280.     DeleteRegKey HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接`
  281.     DeleteRegKey HKCU `Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载`
  282.     DeleteRegKey HKLM `SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd`
  283.     DeleteRegKey HKLM `SOFTWARE\Thunder Network\ThunderOem`
  284.     DeleteRegKey HKLM `SOFTWARE\Thunder Network`
  285.     System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
  286.     Delete `$INSTDIR\卸载 ${PRODUCT_NAME}.exe`
  287.     RMDir /REBOOTOK `$INSTDIR`
  288.     HideWindow
  289.     MessageBox MB_ICONINFORMATION|MB_OK `${PRODUCT_NAME} 卸载完成。$\r$\r有些内容不能被删除。您可以手工删除它们。`
  290.     SetAutoClose true
  291. SectionEnd
  292. ;===========================================================================================
  293. Section -Post
  294. SetAutoClose true
  295. SectionEnd
  296. ;===========================================================================================
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SgzyStudio

GMT+8, 2024-5-17 12:52 , Processed in 0.113428 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表