杉宫竹苑工作室

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

迅雷5.9.1.922

[复制链接]
发表于 2016-9-2 20:01:42 | 显示全部楼层 |阅读模式

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

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

x
  1. !define PRODUCT_NAME "迅雷"
  2. !define THIS_NAME_LITE "迅雷5"
  3. !define VER_MAJOR "5.9"
  4. !define VER_MINOR "1.922"
  5. !define PRODUCT_VERSION "5.9.1.922"
  6. ;!define PRODUCT_PUBLISHER "xuexi"
  7. !define InstroFile "Readme.txt"
  8. !define PRODUCT_PUBLISHER "迅雷网络技术有限公司"
  9. !define PRODUCT_WEB_SITE "http://www.xunlei.com"
  10. !define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\Thunder.exe"
  11. !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
  12. !define PRODUCT_UNINST_ROOT_KEY "HKLM"
  13. !define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
  14. SetCompressor lzma
  15. InstType "完全安装"
  16. InstType "推荐安装"
  17. !AddPluginDir "."
  18. !AddIncludeDir "."
  19. ReserveFile          "${NSISDIR}\Plugins\System.dll"
  20. ReserveFile          "AnimGif.dll"
  21. ReserveFile          "Left.bmp"
  22. ReserveFile          "1.gif"
  23. ReserveFile          "Header.bmp"
  24. ReserveFile          "3.gif"
  25. ReserveFile          "ButtonEvent.dll"
  26. ReserveFile          "ButtonLinker.dll"
  27. ReserveFile          "linker.dll"
  28. !include "MUI.nsh"
  29. !include "ButtonLinkerLib.nsh"
  30. !define MUI_CUSTOMFUNCTION_GUIINIT MyGUIInit
  31. !define MUI_HEADERIMAGE
  32. !define MUI_HEADERIMAGE_RIGHT
  33. !define MUI_HEADERIMAGE_BITMAP "Header.bmp"
  34. !define MUI_WELCOMEFINISHPAGE_BITMAP "emptyw.bmp"
  35. !define MUI_UNWELCOMEFINISHPAGE_BITMAP "Left.bmp"
  36. !define MUI_WELCOMEPAGE_TITLE "欢迎安装和使用 迅雷V5.9.1 特别版"
  37. !define MUI_ICON "Thunder.ico"
  38. !define MUI_UNICON "unThunder.ico"
  39. !define MUI_PAGE_CUSTOMFUNCTION_PRE pre
  40. !define MUI_PAGE_CUSTOMFUNCTION_SHOW show
  41. !insertmacro MUI_PAGE_WELCOME
  42. !define MUI_LICENSEPAGE_CHECKBOX
  43. LicenseBkColor "D2FBB5"
  44. LicenseText "软件许可协议" "我接受"
  45. !insertmacro MUI_PAGE_LICENSE "License.txt"
  46. !insertmacro MUI_PAGE_COMPONENTS
  47. !insertmacro MUI_PAGE_DIRECTORY
  48. !insertmacro MUI_PAGE_INSTFILES
  49. !define MUI_PAGE_CUSTOMFUNCTION_PRE pre
  50. !define MUI_PAGE_CUSTOMFUNCTION_SHOW show
  51. !define MUI_FINISHPAGE_RUN "$INSTDIR\Program\Thunder.exe"
  52. !define MUI_FINISHPAGE_SHOWREADME_TEXT "查看更新历史"
  53. !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Program\Whatsnew.txt"
  54. !insertmacro MUI_PAGE_FINISH
  55. !insertmacro MUI_UNPAGE_WELCOME
  56. !insertmacro MUI_UNPAGE_INSTFILES
  57. !insertmacro MUI_UNPAGE_FINISH
  58. !insertmacro MUI_LANGUAGE "SimpChinese"
  59. !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
  60. VIProductVersion "5.9.1.922"
  61. VIAddVersionKey /LANG=2052 "FileVersion" "5"
  62. VIAddVersionKey /LANG=2052 "ProductVersion" "5.9.1.922"
  63. VIAddVersionKey /LANG=2052 "ProductName" "迅雷5特别版"
  64. VIAddVersionKey /LANG=2052 "Comments" "Thunder v5.9.1$\r$\n(http://www.xunlei.com/)"
  65. VIAddVersionKey /LANG=2052 "LegalCopyright" "Copyleft (C) 梦想吧xuexi"
  66. VIAddVersionKey /LANG=2052 "FileDescription" "xunlei Setup Program"
  67. VIAddVersionKey /LANG=2052 "SpecialBuild" "Thunder_v5.9.1 Setup, built on 2009 06 10"
  68. !ifndef IDC_BUTTON
  69. !define IDC_BUTTON    1190
  70. !endif
  71. !ifndef IDC_LINKER
  72. !define IDC_LINKER    1200
  73. !endif
  74. !ifndef IDM_ABOUT1
  75. !define IDM_ABOUT1    1300
  76. !endif
  77. !macro MYMACRO un
  78. Function ${un}AboutButton
  79. MessageBox MB_OK|MB_ICONINFORMATION "迅雷V5.9.1 特别版。梦想吧xuexi 特别制作!"
  80. FunctionEnd
  81. Function ${un}AboutMenu1
  82.   MessageBox MB_OK|MB_ICONINFORMATION "    迅雷使用的多资源超线程技术基于网格原理,能够将网络上存在的服务器  $\r$\n和计算机资源进行有效的整合,构成独特的迅雷网络,通过迅雷网络各种数据  $\r$\n文件能够以最快速度进行传递。多资源超线程技术还具有互联网下载负载均衡  $\r$\n功能,在不降低用户体验的前提下,迅雷网络可以对服务器资源进行均衡,有$\r$\n效降低了服务器负载。"
  83. FunctionEnd
  84. Function ${un}MyGUIInit
  85. InitPluginsDir
  86. Pop $0
  87. Pop $1
  88. Pop $2
  89. Pop $3
  90.     ${GetDlgItemRect} $0 $1 $2 $3 $HWNDPARENT ${IDC_CANCEL}
  91. IntOp $2 $3 - $1
  92. ${CreateButton2} "关于(A)" 20 $1 80 $2 $HWNDPARENT ${IDC_BUTTON} ${un}AboutButton
  93.     ${GetDlgItemRect} $0 $1 $2 $3 $HWNDPARENT ${IDC_CANCEL}
  94. IntOp $2 $3 - $1
  95. IntOp $1 $1 + 4
  96. IntOp $2 $2 - 1
  97. ${CreateLinker2} "迅雷软件中心" 120 $1 80 $2 $HWNDPARENT ${IDC_LINKER} "http://dl.xunlei.com/"
  98. ${CreateMenu2} 0 ${MF_SEPARATOR} $HWNDPARENT 0 ${un}MyGUIInit
  99. ${CreateMenu2} "关于迅雷5(A)" ${MF_STRING} $HWNDPARENT ${IDM_ABOUT1} ${un}AboutMenu1
  100. FunctionEnd
  101. !macroend
  102. !insertmacro MYMACRO ""
  103. !insertmacro MYMACRO "un."
  104. !insertmacro MYMACRO "un"
  105. Name "迅雷5.9.1.922"
  106. OutFile "Thunder5.exe"
  107. Caption "安装 迅雷5"
  108. InstallDir "$PROGRAMFILES\Thunder Network\Thunder"
  109. InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
  110. ShowInstDetails nevershow
  111. ShowUnInstDetails hide
  112. BrandingText "Www.xunlei.Com"
  113. !define COLOR_WINDOW 5
  114. !define COLOR_BTNFACE 15
  115. Function pre
  116. !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" ""
  117. Functionend
  118. Function show
  119.   AnimGif::play /NOUNLOAD /HALIGN=LEFT /VALIGN=CENTER /BGCOL=${COLOR_WINDOW} "$PLUGINSDIR\1.gif"
  120. FunctionEnd
  121. Function .onGUIEnd
  122.   AnimGif::stop
  123. FunctionEnd
  124. Section
  125.   SetDetailsPrint textonly
  126.   DetailPrint "正在准备安装文件..."
  127.   SetDetailsPrint listonly
  128.   AnimGif::play /NOUNLOAD "$PLUGINSDIR\3.gif"
  129.   Sleep 1000
  130.   Sleep 1000
  131. SectionEnd
  132. Section "-clean"
  133.   DeleteRegKey   HKCU  "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载"
  134.   DeleteRegKey   HKCU  "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接"
  135. SectionEnd
  136. SectionGroup /e  "迅雷V5.9.1 特别版" secxl
  137. Section "主程序【必选】" sec01
  138.   SetDetailsPrint textonly
  139.   DetailPrint "正在安装程序的基本组件..."
  140.   SetDetailsPrint listonly
  141.   SectionIn 1 2 RO
  142.   SetOverwrite ifnewer
  143.   SetOutPath "$SYSDIR"
  144.   File /r "SYSDIR\*.*"
  145.   RegDLL "$SYSDIR\atl71.dll"
  146.   RegDLL "$SYSDIR\msvcirt.dll"
  147.   RegDLL "$SYSDIR\MFC71u.dll"
  148.   RegDLL "$SYSDIR\msvcp71.dll"
  149.   RegDLL "$SYSDIR\msvcr71.dll"
  150.   Sleep 3000
  151.   SetOverwrite try
  152.   SetOutPath "$INSTDIR"
  153.   File /r "app\*.*"
  154.   RegDLL "$INSTDIR\Program\mp.dll"
  155.   RegDLL "$INSTDIR\Program\stream.dll"
  156.   Sleep 1000
  157.   SetDetailsPrint textonly
  158.   DetailPrint "正在添加注册表信息..."
  159.   SetDetailsPrint none
  160. WriteRegStr HKLM "SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" "Path" "$INSTDIR\Program\Thunder.exe"
  161. WriteRegStr HKLM "SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd" "Version" "5.9.1.922"
  162. WriteRegStr HKCR "thunderim" "" "ThunderIM Protocol"
  163. WriteRegStr HKCR "thunderim" "URL Protocol" ""
  164. WriteRegStr HKCR "thunderim\shell\open\command" "" "$"$INSTDIR\Program\Thunder.exe$" /ThunderIM:$"%1$""
  165.   Sleep 1000
  166. SectionEnd
  167. Sectiongroupend
  168. SectionGroup /e  "创建快捷方式" seckj
  169. Section "桌面快捷方式" SecDesktop
  170.   SectionIn 1 2
  171.   SetDetailsPrint textonly
  172.   DetailPrint "正在创建快捷方式..."
  173.   SetDetailsPrint listonly
  174.   CreateShortCut "$DESKTOP\迅雷5.lnk" "$INSTDIR\Program\Thunder.exe" "" "" "" "" "CTRL|F9" "使用多资源超线程技术的下载工具"
  175. SectionEnd
  176. Section "开始菜单快捷方式" SecStartmenu
  177.   SectionIn 1 2
  178.   SetDetailsPrint textonly
  179.   DetailPrint "正在创建快捷方式..."
  180.   SetDetailsPrint listonly
  181.   CreateDirectory "$SMPROGRAMS\迅雷软件\迅雷5"
  182.   CreateShortCut "$SMPROGRAMS\迅雷软件\迅雷5\启动迅雷5.lnk" "$INSTDIR\Program\Thunder.exe"
  183.   CreateShortCut "$SMPROGRAMS\迅雷软件\迅雷5\更新信息.lnk" "$INSTDIR\Program\Whatsnew.txt"
  184.   CreateShortCut "$SMPROGRAMS\迅雷软件\迅雷5\卸载迅雷5.lnk" "$INSTDIR\uninst.exe"
  185. SectionEnd
  186. Section "快速启动栏快捷方式" SecQuick
  187.   SectionIn 1
  188.   SetDetailsPrint textonly
  189.   DetailPrint "正在创建快捷方式..."
  190.   SetDetailsPrint listonly
  191.   CreateShortCut "$QUICKLAUNCH\启动迅雷5.lnk" "$INSTDIR\Program\Thunder.exe"
  192. SectionEnd
  193. Sectiongroupend

  194. SectionGroup /e  "浏览器支持【推荐】" secllq
  195. Section "IE浏览器支持" sec02
  196.   SectionIn 1 2
  197.   SetOverwrite on
  198.   SetDetailsPrint textonly
  199.   DetailPrint "正在添加IE浏览器支持..."
  200.   SetDetailsPrint listonly
  201.   SetOutPath "$INSTDIR"
  202.   File /r "gnzq\*.*"
  203.   RegDLL "$INSTDIR\ComDlls\ThunderAgent.dll"
  204.   RegDLL "$INSTDIR\ComDlls\XunLeiBHO.dll"
  205.   RegDLL "$INSTDIR\ComDlls\TdAtOnce.dll"
  206.   Sleep 2000
  207. WriteRegStr HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" "" "$INSTDIR\Program\GetUrl.htm"
  208. WriteRegDWORD HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" "Contexts" 0x00000022
  209. WriteRegStr HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" "" "$INSTDIR\Program\GetAllUrl.htm"
  210. WriteRegDWORD HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" "Contexts" 0x000000f3
  211. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "ButtonText" "启动迅雷5"
  212. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "Exec" "$INSTDIR\Program\Thunder.exe"
  213. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "Icon" "$INSTDIR\Program\Thunder.ico"
  214. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "HotIcon" "$INSTDIR\Program\Thunder.ico"
  215. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "MenuStatusBar" "启动迅雷5"
  216. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "MenuText" "启动迅雷5"
  217. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "CLSID" "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
  218. WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}" "Default Visible" "Yes"
  219. SectionEnd
  220. Section "BT文件关联" sec03
  221.   SectionIn 1 2
  222.   
  223.   WriteRegStr HKCR ".torrent" "" "bittorrent"
  224. WriteRegStr HKCR "bittorrent" "" ""
  225. WriteRegStr HKCR "bittorrent\DefaultIcon" "" "$"$INSTDIR\Program\Thunder5.exe$",16"
  226. WriteRegStr HKCR "bittorrent\shell\open\command" "" "$"$INSTDIR\Program\Thunder.exe$" /openfile $"%1$""
  227. SectionEnd
  228. Section "Firefox支持" sec04
  229.   SectionIn 1 2
  230.   SetDetailsPrint textonly
  231.   DetailPrint "正在添加Firefox支持..."
  232.   SetDetailsPrint listonly
  233.   ReadRegStr $R0 HKLM "SOFTWARE\Mozilla\Mozilla Firefox\3.0.8 (zh-CN)\Main" "Install Directory"
  234.   IfFileExists "$R0\firefox.exe" 0 next
  235.   SetOutPath "$TEMP"
  236.   File ".\Thunder.xpi"
  237.   Exec '"$R0\firefox.exe" $TEMP\Thunder.xpi'
  238.   next:
  239. SectionEnd
  240. Section "Opera9.4中国版支持" sec05
  241.   SectionIn 1 2
  242.   SetDetailsPrint textonly
  243.   DetailPrint "正在添加Opera9.4中国版支持..."
  244.   SetDetailsPrint listonly
  245.   ReadRegStr $R0 HKCU "Software\Opera Software" "Last Directory3"
  246.   IfFileExists "$R0\opera.exe" 0 send
  247.   Rename "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "$APPDATA\Opera\Opera\profile\menu\menu_thunder.bak"
  248.   Delete "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  249.   SetOutPath "$INSTDIR\Components\ExplorerHelper"
  250.   File "opera\XLNonIESvr.exe"
  251.   SetOutPath "$R0"
  252.   File /r "opera\JS\*.*"
  253.   SetOutPath "$APPDATA\Opera\Opera\profile\menu"
  254.   SetOverwrite on
  255. ;  DeleteINISec $APPDATA\Opera\Opera\profile\menu\menu_thunder.ini "Link Popup Menu"
  256. ;  DeleteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Link Popup Menu" 'Item,"使用迅雷下载"'
  257.   File "opera\menu\menu_thunder.ini"
  258. StrCpy $0 "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  259. StrCpy $1 "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  260. StrCpy $2 AUTO
  261. unicode::FileUnicode2Ansi "$0" "$1" $2
  262. Pop $3
  263.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Info" "NAME" "迅雷下载"
  264.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Link Popup Menu" 'Item,"使用迅雷下载"' 'Execute Program, "$INSTDIR\Components\ExplorerHelper\XLNonIESvr.exe", "@%l %u"'
  265.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Document Popup Menu" "Item, MI_IDM_FULLSCREENTOGGLE" "Enter fullscreen | Leave fullscreen"
  266.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Document Popup Menu" 'Item,"使用迅雷下载全部链接"' 'Execute Program, "$INSTDIR\Components\ExplorerHelper\XLNonIESvr.exe", "#%s %u"'
  267.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Image Link Popup Menu" "Item, MI_IDM_SHOW_FIGURE_PROPERTIES" "Show image properties"
  268.   WriteINIStr "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" "Image Link Popup Menu" 'Item,"使用迅雷下载"' 'Copy image address Execute Program, "$INSTDIR\Components\ExplorerHelper\XLNonIESvr.exe", "@%c %u"'
  269. StrCpy $0 "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  270. StrCpy $1 "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  271. StrCpy $2 UTF-8
  272. unicode::FileAnsi2Unicode "$0" "$1" $2
  273. Pop $3
  274. StrCpy $0 "$APPDATA\Opera\Opera\profile\opera6.ini"
  275. StrCpy $1 "$APPDATA\Opera\Opera\profile\opera6.ini"
  276. StrCpy $2 AUTO
  277. unicode::FileUnicode2Ansi "$0" "$1" $2
  278. Pop $3
  279.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Error Console Filter" "javascript=4,mail=3"
  280.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "User JavaScript File" "$R0\User JS"
  281.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "User JavaScript" "1"
  282.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Always Load User JavaScript" "1"
  283.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Toolbar Configuration" "$R0\defaults\standard_toolbar.ini"
  284.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Menu Configuration" "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  285.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Source Viewer" '""""'
  286.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Source Viewer Mode" "3"
  287.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Saved Settings" "Open Dir" "$INSTDIR"
  288.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Java" "Enabled" "1"
  289.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "mms" '"1,0,"""'
  290.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "rtsp" '"1,0,"""'
  291.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "mailto" '"2,0,"""'
  292.   WriteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "Thunder" '"0,0,"$INSTDIR\Program\Thunder.exe""'
  293. StrCpy $0 "$APPDATA\Opera\Opera\profile\opera6.ini"
  294. StrCpy $1 "$APPDATA\Opera\Opera\profile\opera6.ini"
  295. StrCpy $2 UTF-8
  296. unicode::FileAnsi2Unicode "$0" "$1" $2
  297. Pop $3
  298. send:
  299. SectionEnd
  300. Sectiongroupend

  301. SectionGroup /e  "可选功能组件" seckx
  302. Section "迅雷会员注册向导" sec06
  303.   SectionIn 1 2
  304.   SetOverwrite try
  305.   SetOutPath "$INSTDIR\Components\BaseCommunity"
  306.   File /r "BaseCommunity\*.*"
  307. SectionEnd
  308. Section "悬浮窗" sec07
  309.   SectionIn 1 2 RO
  310.   SetOverwrite try
  311.   SetOutPath "$INSTDIR\Components\FloatPanel"
  312.   File /r "FloatPanel\*.*"
  313. SectionEnd
  314. Section "每日提示" sec08
  315.   SectionIn 1
  316.   SetOverwrite try
  317.   SetOutPath "$INSTDIR\Components\Tips"
  318.   File /r "Tips\*.*"
  319. SectionEnd
  320. Section "横幅广告" sec09
  321.   SectionIn 1
  322.   SetOverwrite off
  323.   SetOutPath "$INSTDIR\Components\Streamer"
  324.   File /r "Streamer\*.*"
  325. SectionEnd
  326. Section "迷你首页" sec10
  327.   SectionIn 1
  328.   SetOverwrite off
  329.   SetOutPath "$INSTDIR\Components\MiniMedia"
  330.   File /r "MiniMedia\*.*"
  331. SectionEnd
  332. Section "自动更新" sec11
  333.   SectionIn 1
  334.   SetOverwrite try
  335.   SetOutPath "$INSTDIR"
  336.   File /r "zdgx\*.*"
  337. SectionEnd
  338. Sectiongroupend
  339. SectionGroup /e  "功能扩展组件" seczj
  340. Section "迅雷看看【推荐】" sec12
  341.   SectionIn 1 2
  342.   SetOverwrite try
  343.   SetDetailsPrint textonly
  344.   DetailPrint "正在安装迅雷看看..."
  345.   SetDetailsPrint listonly
  346.   SetOutPath "$INSTDIR\Components\Kankan"
  347.   File /r "Kankan\*.*"
  348.   RegDLL "$INSTDIR\Components\Kankan\DapCtrl.dll"
  349.   RegDLL "$INSTDIR\Components\Kankan\StreamCtrl.dll"
  350.   RegDLL "$INSTDIR\Components\Kankan\PPlayer.dll"
  351.   RegDLL "$INSTDIR\Components\Kankan\TSF.dll"
  352.   RegDLL "$INSTDIR\Components\Kankan\Codecs\RealMediaSplitter.ax"
  353.   Sleep 1000
  354.   SetOutPath "$INSTDIR\Program"
  355.   File ".\kankan.ico"
  356.   SetOutPath "$INSTDIR\Components\DownHelper"
  357.   SetOverwrite try
  358.   File /r "DownHelper\*.*"
  359.   
  360.   SetOutPath "$COMMONFILES\Thunder Network\KanKan"
  361.   SetOverwrite try
  362.   Delete "$COMMONFILES\Thunder Network\KanKan\*.history"
  363.   File /r "comkk\*.*"
  364. SectionEnd
  365. Section "迅雷软件助手1.5" sec13
  366.   SectionIn 1
  367.   SetDetailsPrint textonly
  368.   DetailPrint "正在安装迅雷软件助手..."
  369.   SetDetailsPrint listonly
  370.   SetOutPath "$INSTDIR"
  371.   SetOverwrite ifnewer
  372.   File /r "rjzs\*.*"
  373. SectionEnd
  374. Section "迅雷听听 1.2" sec14
  375.   SectionIn 1
  376.   SetOverwrite off
  377.   SetDetailsPrint textonly
  378.   DetailPrint "正在安装迅雷听听..."
  379.   SetDetailsPrint listonly
  380.   SetOutPath "$INSTDIR"
  381.   File /r "xltt\*.*"
  382. SectionEnd
  383. Section "狗狗搜索" sec15
  384.   SectionIn 1 2
  385.   SetOverwrite off
  386.   SetDetailsPrint textonly
  387.   DetailPrint "正在安装狗狗搜索..."
  388.   SetDetailsPrint listonly
  389.   SetOutPath "$INSTDIR\Components\GougouSearch"
  390.   File /r "GougouSearch\*.*"
  391. SectionEnd
  392. Section "监视上传和下载" sec16
  393.   SectionIn 1 2
  394.   SetOverwrite off
  395.   SetOutPath "$INSTDIR\Components\ResWorker"
  396.   File /r "ResWorker\*.*"
  397. SectionEnd
  398. Section "下载安全助手" sec17
  399.   SectionIn 1
  400.   SetOverwrite off
  401.   SetOutPath "$INSTDIR"
  402.   File /r "aqzs\*.*"
  403. SectionEnd
  404. Section "皮肤界面控件" sec18
  405.   SetDetailsPrint textonly
  406.   DetailPrint "正在安装皮肤控件..."
  407.   SetDetailsPrint listonly
  408.   SectionIn 1 2 RO
  409.   SetOverwrite off
  410.   SetOutPath "$INSTDIR\Components\SkinEngine"
  411.   File /r "SkinEngine\*.*"
  412. SectionEnd
  413. Section "其它皮肤" sec19
  414.   SectionIn 1 2 RO
  415.   SetOverwrite off
  416.   SetOutPath "$INSTDIR"
  417.   File /r "rjpf\*.*"
  418. SectionEnd
  419. Sectiongroupend

  420. SectionGroup /e  "程序优化" secyh
  421. Section "会员限制破解" sec20
  422.   SectionIn 1 2
  423.   SetOverwrite on
  424.   SetOutPath "$INSTDIR\Program"
  425.   File "XLUser\XLUser.dll"
  426. SectionEnd
  427. Section "禁止后台上传" sec21
  428.   SectionIn 1
  429.   SetFileAttributes "$SYSDIR\cid_store.dat" 0
  430.   Delete "$SYSDIR\cid_store.dat"
  431.   CreateDirectory "$SYSDIR\cid_store.dat"
  432.   SetFileAttributes "$INSTDIR\Program\cid_store.dat" 0
  433.   Delete "$INSTDIR\Program\cid_store.dat"
  434.   CreateDirectory "$INSTDIR\Program\cid_store.dat"
  435. SectionEnd
  436. Section "屏蔽后台上传端口" sec22
  437.   SectionIn 1
  438.   SetFileAttributes "$SYSDIR\pub_store.dat" 0
  439.   Delete "$SYSDIR\pub_store.dat"
  440.   CreateDirectory "$SYSDIR\pub_store.dat"
  441.   SetFileAttributes "$INSTDIR\Program\pub_store.dat" 0
  442.   Delete "$INSTDIR\Program\pub_store.dat"
  443.   CreateDirectory "$INSTDIR\Program\pub_store.dat"
  444. SectionEnd
  445. Sectiongroupend
  446. Section -Post
  447.   WriteUninstaller "$INSTDIR\uninst.exe"
  448.   WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\Program\Thunder.exe"
  449.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  450.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  451.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\Program\Thunder.exe"
  452.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  453.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  454.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
  455. SectionEnd
  456. Section Uninstall
  457. SetDetailsPrint textonly
  458. DetailPrint "正在卸载$(^Name)..."
  459. SetDetailsPrint none
  460. /*
  461.   ExecWait  '"$INSTDIR\Program\SetupHelper.exe" /exit_thunder5'
  462.   ExecWait  '"$INSTDIR\Program\SetupHelper.exe" /delete_bho'
  463.   ExecWait  '"$INSTDIR\Program\SetupHelper.exe" /close_firewall'
  464.   ExecWait  '"$INSTDIR\Program\LanguageSetter.exe" fromfile|-1'
  465.   Exec '"$INSTDIR\Program\xlfw.exe" r Thunder $INSTDIR\Program\Thunder.exe'
  466.   Exec '"$INSTDIR\Program\xlfw.exe" r Thunder LiveUpdate $INSTDIR\Program\Liveupdate\ThunderLiveUD.exe'
  467. */
  468.   UnRegDLL "$INSTDIR\Program\mp.dll"
  469.   UnRegDLL "$INSTDIR\Program\stream.dll"
  470.   UnRegDLL "$INSTDIR\ComDlls\ThunderAgent.dll"
  471.   UnRegDLL "$INSTDIR\ComDlls\XunLeiBHO.dll"
  472.   UnRegDLL "$INSTDIR\ComDlls\TdAtOnce.dll"
  473.   UnRegDLL "$INSTDIR\Components\Kankan\DapCtrl.dll"
  474.   UnRegDLL "$INSTDIR\Components\Kankan\StreamCtrl.dll"
  475.   UnRegDLL "$INSTDIR\Components\Kankan\PPlayer.dll"
  476.   UnRegDLL "$INSTDIR\Components\Kankan\TSF.dll"
  477.   UnRegDLL "$INSTDIR\Components\Kankan\Codecs\RealMediaSplitter.ax"
  478.   Delete "$INSTDIR\Program\LiveUpdate\LiveUpdate\*.*"
  479.   Delete "$INSTDIR\Program\LiveUpdate\*.*"
  480.   Delete "$INSTDIR\Program\profiles\*.*"
  481.   Delete "$INSTDIR\Program\temp\*.*"
  482.   Delete "$INSTDIR\Program\XLGUIPlatform.dll.log\*.*"
  483.   Delete "$INSTDIR\Program\*.*"
  484.   Delete "$INSTDIR\Plugins\*.*"
  485.   Delete "$INSTDIR\ComDlls\*.*"
  486.   Delete "$INSTDIR\Components\*.*"
  487.   Delete "$INSTDIR\Language\*.*"
  488.   Delete "$INSTDIR\Profiles\*.*"
  489.   Delete "$INSTDIR\Skin\*.*"
  490.   Delete "$INSTDIR\Skin2\*.*"
  491.   Delete "$INSTDIR\Program\Thunder.exe"
  492.   Delete "$INSTDIR\uninst.exe"
  493.   Delete "$INSTDIR\*.*"
  494. ;  Delete /REBOOTOK "$INSTDIR\ComDlls\TDAtOnce_Now.dll"
  495. ;  Delete /REBOOTOK "$INSTDIR\ComDlls\xunleiBHO_Now.dll"
  496.   RMDir "$INSTDIR\Program\LiveUpdate\LiveUpdate"
  497.   RMDir "$INSTDIR\Program\LiveUpdate"
  498.   RMDir /r "$INSTDIR\Program"
  499.   RMDir /r "$INSTDIR\Languages"
  500.   RMDir /r "$INSTDIR\ComDlls"
  501.   RMDir /r "$INSTDIR\Components"
  502.   RMDir /r "$INSTDIR\Skin"
  503.   RMDir /r "$INSTDIR\Skin2"
  504.   RMDir /r "$INSTDIR\Program\temp"
  505.   RMDir /r "$INSTDIR\Plugins"
  506.   RMDir /r "$INSTDIR\Profiles"
  507.   RMDir /r "$INSTDIR\Program\XLGUIPlatform.dll.log"
  508.   RMDir /r "$PROGRAMFILES\Thunder Network\Thunder"
  509.   RMDir /r "$PROGRAMFILES\Thunder Network"
  510.   RMDir "$INSTDIR"
  511.   Delete "$DESKTOP\迅雷5.lnk"
  512.   Delete "$SMPROGRAMS\迅雷软件\迅雷5\启动迅雷5.lnk"
  513.   Delete "$SMPROGRAMS\迅雷软件\迅雷5\更新信息.lnk"
  514.   Delete "$SMPROGRAMS\迅雷软件\迅雷5\卸载迅雷5.lnk"
  515.   Delete "$QUICKLAUNCH\启动迅雷5.lnk"
  516.   RMDir "$SMPROGRAMS\迅雷软件\迅雷5"
  517.   RMDir "$SMPROGRAMS\迅雷软件"
  518.   RMDir ""
  519.   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  520.   DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  521.   ReadRegStr $1 HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" ""
  522.   StrCmp $1 "$INSTDIR\Program\GetUrl.htm" 0 next
  523.   DetailPrint "删除IE支持(注册表)。"
  524. DeleteRegValue HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载" "Contexts"
  525. DeleteRegValue HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接" "Contexts"
  526. DeleteRegKey HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载"
  527. DeleteRegKey HKCU "Software\Microsoft\Internet Explorer\MenuExt\使用迅雷下载全部链接"
  528. DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{09BA8F6D-CB54-424B-839C-C2A6C8E6B436}"
  529.   Goto delbt
  530.   next:
  531.   DetailPrint " "
  532.   delbt:
  533.   ReadRegStr $2 HKCR "bittorrent\shell\open\command" ""
  534.   StrCmp $2 "$"$INSTDIR\Program\Thunder.exe$" /openfile $"%1$"" 0 continue
  535.   DeleteRegKey HKCR "bittorrent\shell\open\command"
  536.   DeleteRegKey HKCR "bittorrent\shell\open"
  537.   DeleteRegKey HKCR "bittorrent\shell"
  538.   DeleteRegKey HKCR "bittorrent\DefaultIcon"
  539.   DeleteRegKey HKCR "bittorrent"
  540.   continue:
  541.   DeleteRegKey HKLM "SOFTWARE\Thunder Network\ThunderOem\thunder_backwnd"
  542.   DeleteRegKey HKLM "SOFTWARE\Thunder Network\ThunderOem"
  543.   DeleteRegKey HKLM "SOFTWARE\Thunder Network"
  544.   DeleteRegValue HKCR "thunderim" ""
  545.   DeleteRegValue HKCR "thunderim" "URL Protocol"
  546.   DeleteRegValue HKCR "thunderim\shell\open\command" ""
  547.   DeleteRegKey HKCR "thunderim\shell\open\command"
  548.   DeleteRegKey HKCR "thunderim\shell\open"
  549.   DeleteRegKey HKCR "thunderim\shell"
  550.   DeleteRegKey HKCR "thunderim"
  551.   
  552.   IfFileExists "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini" 0 oth
  553.   Delete "$APPDATA\Opera\Opera\profile\menu\menu_thunder.ini"
  554.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Error Console Filter"
  555.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "User JavaScript File"
  556.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "User JavaScript"
  557.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Always Load User JavaScript"
  558.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Toolbar Configuration"
  559.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Menu Configuration"
  560.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Source Viewer"
  561.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "User Prefs" "Source Viewer Mode"
  562.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Saved Settings" "Open Dir"
  563.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Java" "Enabled"
  564.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "mms"
  565.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "rtsp"
  566.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "mailto"
  567.   DeleteINIStr "$APPDATA\Opera\Opera\profile\opera6.ini" "Trusted Protocols" "Thunder"
  568.   oth:
  569.   Delete "$COMMONFILES\Thunder Network\*.*"
  570.   rmdir /r "$COMMONFILES\Thunder Network"
  571.   SetFileAttributes "$SYSDIR\cid_store.dat" 0
  572.   Delete "$SYSDIR\cid_store.dat"
  573.   SetFileAttributes "$SYSDIR\pub_store.dat" 0
  574.   Delete "$SYSDIR\pub_store.dat"
  575.   RMDir /r /REBOOTOK "$PROGRAMFILES\Thunder Network\Thunder"
  576.   
  577.   System::Call 'shell32.dll::SHChangeNotify(i, i, i, i) v (0x08000000, 0, 0, 0)'
  578.   HideWindow
  579.   MessageBox MB_ICONINFORMATION|MB_OK "迅雷5 卸载完成。$\r$\r有些内容不能被删除。您可以手工删除它们。"
  580.   SetAutoClose true
  581. ExecShell "open" "http://help.xunlei.com/online/stat_uninst.php?thunderver=5.9.1.922thundertype=4&peerid=00E04CB10906PG44"
  582. SectionEnd

  583. Function .onInit
  584.   !addplugindir "${NSISDIR}\Plugins"
  585.    InitPluginsDir
  586.    File /oname=$PLUGINSDIR\1.gif ".\1.gif"
  587.    File /oname=$PLUGINSDIR\3.gif ".\3.gif"
  588.   System::Call 'kernel32::CreateMutexA(i 0, i 0, t "Thunder5") i .r1 ?e'
  589.   Pop $0
  590.   StrCmp $0 0 +3
  591.     MessageBox MB_OK|MB_ICONEXCLAMATION "本安装程序已经在更早些的时候启动,请退出这一个。"
  592.   Quit
  593.   FindProcDLL::FindProc "Thunder.exe"
  594.    StrCmp $R0 1 +1 +6
  595.      MessageBox MB_ICONINFORMATION|MB_ABORTRETRYIGNORE "检测到 迅雷 正在运行!$\r$\n$\r$\n终止:退出安装程序;$\r$\n忽略:强制结束迅雷进程并继续安装。" /SD IDABORT IDRETRY Retry IDIGNORE Ignore
  596.    Abort
  597.   Retry:
  598.    Goto -4
  599.   Ignore:
  600.    Goto +1
  601.   KillProcDLL::KillProc "Thunder.exe"
  602. FunctionEnd
  603. Function un.onInit
  604.   FindProcDLL::FindProc "Thunder.exe"
  605.     IntCmp $R0 1 0 norun
  606.     MessageBox MB_ICONSTOP " 迅雷5 正在运行,请先关闭程序再进行卸载!"
  607.     Quit
  608.   norun:
  609.     MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "现在将从您的计算机里移除 $(^Name),点击“是”启动卸载程序!" IDYES +2
  610.     Abort
  611. FunctionEnd
复制代码
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 23:11 , Processed in 0.130337 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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