最新消息:

迅雷5.8.6.600自由定制版脚本

nsis 永恒心锁 1792浏览 0评论

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

; 安装程序初始定义常量
 !define PRODUCT_NAME "迅雷"
 !define PRODUCT_VERSION "5.8.6.600"
 !define PRODUCT_PUBLISHER "永恒心锁"
 !define PRODUCT_WEB_SITE "www.yhxs3344.net"
 !define PRODUCT_DIR_REGKEY "SoftwareMicrosoftWindowsCurrentVersionApp PathsThunder.exe"
 !define PRODUCT_UNINST_KEY "SoftwareMicrosoftWindowsCurrentVersionUninstall${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 "rn    ${PRODUCT_NAME} ${PRODUCT_VERSION} 自由定制版"
 !define MUI_WELCOMEPAGE_TEXT "rn迅雷是最流行的下载工具之一,支持HTTP、FTP、BT、电骡等几乎所有的下载协议。此版本附带了AYU的扩展设置程序和DDR的专用链支持模块,以便用户配置使用。rnrn此安装程序纯属个人研究、学习软件部署技术而制作,原始软件的所有权利属于原始作者所有。rnrn原始程序文件未做任何修改,AYU的扩展设置程序和DDR的专用链支持模块仅为界面美化、方便使用而集成。rnrn使用此安装程序是您的自由选择,作者并不对可能由此给您带来的任何损失负责。rnrn$_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 "$PROGRAMFILESThunder"
 InstallDirRegKey HKLM "${PRODUCT_UNINST_KEY}" "UninstallString"
 ShowInstDetails show
 ShowUnInstDetails show
 BrandingText "永恒心锁www.yhxs3344.net - 编译日期${VER_BUILD}"

Section "!主程序" SECThunder
 SectionIn RO
 SetOutPath "$INSTDIR"
 SetOverwrite ifnewer
 File "ThunderAyuConfig.exe"
 SetOutPath "$INSTDIRComDllsskin"
 File "ThunderComDllsskinDOWNLOAD_NORMAL.bmp"
 File "ThunderComDllsskinDOWNLOAD_PRESS.BMP"
 File "ThunderComDllsskinFB_BG.bmp"
 File "ThunderComDllsskinMENU_NORMAL.bmp"
 File "ThunderComDllsskinMENU_PRESS.bmp"
 SetOutPath "$INSTDIRComDlls"
 File "ThunderComDllsTDAtOnce.dll"
 File "ThunderComDllsTDAtOnce_Now.dll"
 File "ThunderComDllsThunderAgent.dll"
 File "ThunderComDllsThunderAgent_Now.dll"
 File "ThunderComDllsXunLeiBHO.dll"
 File "ThunderComDllsxunleiBHO_Now.dll"
 SetOutPath "$INSTDIRComponentsCommunity"
 File "ThunderComponentsCommunityaudioCtrl.dll"
 File "ThunderComponentsCommunityCommunity.ini"
 SetOutPath "$INSTDIRComponentsCommunityemoticons"
 File "ThunderComponentsCommunityemoticons1.png"
 File "ThunderComponentsCommunityemoticons10.png"
 File "ThunderComponentsCommunityemoticons11.png"
 File "ThunderComponentsCommunityemoticons12.png"
 File "ThunderComponentsCommunityemoticons13.png"
 File "ThunderComponentsCommunityemoticons14.png"
 File "ThunderComponentsCommunityemoticons15.png"
 File "ThunderComponentsCommunityemoticons16.png"
 File "ThunderComponentsCommunityemoticons17.png"
 File "ThunderComponentsCommunityemoticons18.png"
 File "ThunderComponentsCommunityemoticons1854886e649c600fb2151b5a745fe0c8.gif"
 File "ThunderComponentsCommunityemoticons1854886e649c600fb2151b5a745fe0c8t.jpg"
 File "ThunderComponentsCommunityemoticons19.png"
 File "ThunderComponentsCommunityemoticons2.png"
 File "ThunderComponentsCommunityemoticons20.png"
 File "ThunderComponentsCommunityemoticons21.png"
 File "ThunderComponentsCommunityemoticons264bb2cfae0d9fe5aa13b06f09c7d19a.gif"
 File "ThunderComponentsCommunityemoticons264bb2cfae0d9fe5aa13b06f09c7d19at.jpg"
 File "ThunderComponentsCommunityemoticons2f36d7e1f677757883585e474f1d3b39.gif"
 File "ThunderComponentsCommunityemoticons2f36d7e1f677757883585e474f1d3b39t.jpg"
 File "ThunderComponentsCommunityemoticons2f3d41f236a13f53e2018405d76ba8f7.gif"
 File "ThunderComponentsCommunityemoticons2f3d41f236a13f53e2018405d76ba8f7t.jpg"
 File "ThunderComponentsCommunityemoticons3.png"
 File "ThunderComponentsCommunityemoticons3e7c799e1f50efb9fc66f6f517f7a12d.gif"
 File "ThunderComponentsCommunityemoticons3e7c799e1f50efb9fc66f6f517f7a12dt.jpg"
 File "ThunderComponentsCommunityemoticons4.png"
 File "ThunderComponentsCommunityemoticons42e10b2c9de8bf2c49f98529cea3cb70.gif"
 File "ThunderComponentsCommunityemoticons42e10b2c9de8bf2c49f98529cea3cb70t.jpg"
 File "ThunderComponentsCommunityemoticons447670c730a03ee61a5796b507837cd5.gif"
 File "ThunderComponentsCommunityemoticons447670c730a03ee61a5796b507837cd5t.jpg"
 File "ThunderComponentsCommunityemoticons5.png"
 File "ThunderComponentsCommunityemoticons6.png"
 File "ThunderComponentsCommunityemoticons6acbbc1b803d4160790de81f5922c096.gif"
 File "ThunderComponentsCommunityemoticons6acbbc1b803d4160790de81f5922c096t.jpg"
 File "ThunderComponentsCommunityemoticons7.png"
 File "ThunderComponentsCommunityemoticons8.png"
 File "ThunderComponentsCommunityemoticons9.png"
 File "ThunderComponentsCommunityemoticons923281849e5499e0a666ec72993776a5.gif"
 File "ThunderComponentsCommunityemoticons923281849e5499e0a666ec72993776a5t.jpg"
 File "ThunderComponentsCommunityemoticons9a32ca2ab8886f4eeb7cf57fa0e5576d.gif"
 File "ThunderComponentsCommunityemoticons9a32ca2ab8886f4eeb7cf57fa0e5576dt.jpg"
 File "ThunderComponentsCommunityemoticonsa09bd432fd501c6403228e2196361a7f.gif"
 File "ThunderComponentsCommunityemoticonsa09bd432fd501c6403228e2196361a7ft.jpg"
 File "ThunderComponentsCommunityemoticonsa6b062ff3fa3f2af86904fff60b50b3a.gif"
 File "ThunderComponentsCommunityemoticonsa6b062ff3fa3f2af86904fff60b50b3at.jpg"
 File "ThunderComponentsCommunityemoticonsaee5f5f11a1f80fcfd47913c9f51f5ad.gif"
 File "ThunderComponentsCommunityemoticonsaee5f5f11a1f80fcfd47913c9f51f5adt.jpg"
 File "ThunderComponentsCommunityemoticonsaf2de1c716008328a1c788fe17927090.gif"
 File "ThunderComponentsCommunityemoticonsaf2de1c716008328a1c788fe17927090t.jpg"
 File "ThunderComponentsCommunityemoticonsb4670300a01d257c4fda0269b39cbf63.gif"
 File "ThunderComponentsCommunityemoticonsb4670300a01d257c4fda0269b39cbf63t.jpg"
 File "ThunderComponentsCommunityemoticonse84325b171b1a345c48328c21ea2e4ae.gif"
 File "ThunderComponentsCommunityemoticonse84325b171b1a345c48328c21ea2e4aet.jpg"
 File "ThunderComponentsCommunityemoticonse9398b3489d84081724b76af19ace4d3.gif"
 File "ThunderComponentsCommunityemoticonse9398b3489d84081724b76af19ace4d3t.jpg"
 File "ThunderComponentsCommunityemoticonsEmoticon.xml"
 SetOutPath "$INSTDIRComponentsCommunityfaces"
 File "ThunderComponentsCommunityfaces-1.gif"
 File "ThunderComponentsCommunityfaces-2.gif"
 File "ThunderComponentsCommunityfaces.gif"
 File "ThunderComponentsCommunityfaces1.gif"
 File "ThunderComponentsCommunityfaces10.gif"
 File "ThunderComponentsCommunityfaces11.gif"
 File "ThunderComponentsCommunityfaces12.gif"
 File "ThunderComponentsCommunityfaces13.gif"
 File "ThunderComponentsCommunityfaces14.gif"
 File "ThunderComponentsCommunityfaces15.gif"
 File "ThunderComponentsCommunityfaces16.gif"
 File "ThunderComponentsCommunityfaces17.gif"
 File "ThunderComponentsCommunityfaces18.gif"
 File "ThunderComponentsCommunityfaces19.gif"
 File "ThunderComponentsCommunityfaces2.gif"
 File "ThunderComponentsCommunityfaces20.gif"
 File "ThunderComponentsCommunityfaces21.gif"
 File "ThunderComponentsCommunityfaces22.gif"
 File "ThunderComponentsCommunityfaces23.gif"
 File "ThunderComponentsCommunityfaces24.gif"
 File "ThunderComponentsCommunityfaces25.gif"
 File "ThunderComponentsCommunityfaces26.gif"
 File "ThunderComponentsCommunityfaces27.gif"
 File "ThunderComponentsCommunityfaces28.gif"
 File "ThunderComponentsCommunityfaces29.gif"
 File "ThunderComponentsCommunityfaces3.gif"
 File "ThunderComponentsCommunityfaces30.gif"
 File "ThunderComponentsCommunityfaces31.gif"
 File "ThunderComponentsCommunityfaces32.gif"
 File "ThunderComponentsCommunityfaces33.gif"
 File "ThunderComponentsCommunityfaces34.gif"
 File "ThunderComponentsCommunityfaces35.gif"
 File "ThunderComponentsCommunityfaces36.gif"
 File "ThunderComponentsCommunityfaces37.gif"
 File "ThunderComponentsCommunityfaces38.gif"
 File "ThunderComponentsCommunityfaces39.gif"
 File "ThunderComponentsCommunityfaces4.gif"
 File "ThunderComponentsCommunityfaces40.gif"
 File "ThunderComponentsCommunityfaces5.gif"
 File "ThunderComponentsCommunityfaces6.gif"
 File "ThunderComponentsCommunityfaces7.gif"
 File "ThunderComponentsCommunityfaces8.gif"
 File "ThunderComponentsCommunityfaces9.gif"
 SetOutPath "$INSTDIRComponentsCommunityfacesoffline"
 File "ThunderComponentsCommunityfacesoffline-1.gif"
 File "ThunderComponentsCommunityfacesoffline-2.gif"
 File "ThunderComponentsCommunityfacesoffline.gif"
 File "ThunderComponentsCommunityfacesoffline1.gif"
 File "ThunderComponentsCommunityfacesoffline10.gif"
 File "ThunderComponentsCommunityfacesoffline11.gif"
 File "ThunderComponentsCommunityfacesoffline12.gif"
 File "ThunderComponentsCommunityfacesoffline13.gif"
 File "ThunderComponentsCommunityfacesoffline14.gif"
 File "ThunderComponentsCommunityfacesoffline15.gif"
 File "ThunderComponentsCommunityfacesoffline16.gif"
 File "ThunderComponentsCommunityfacesoffline17.gif"
 File "ThunderComponentsCommunityfacesoffline18.gif"
 File "ThunderComponentsCommunityfacesoffline19.gif"
 File "ThunderComponentsCommunityfacesoffline2.gif"
 File "ThunderComponentsCommunityfacesoffline20.gif"
 File "ThunderComponentsCommunityfacesoffline21.gif"
 File "ThunderComponentsCommunityfacesoffline22.gif"
 File "ThunderComponentsCommunityfacesoffline23.gif"
 File "ThunderComponentsCommunityfacesoffline24.gif"
 File "ThunderComponentsCommunityfacesoffline25.gif"
 File "ThunderComponentsCommunityfacesoffline26.gif"
 File "ThunderComponentsCommunityfacesoffline27.gif"
 File "ThunderComponentsCommunityfacesoffline28.gif"
 File "ThunderComponentsCommunityfacesoffline29.gif"
 File "ThunderComponentsCommunityfacesoffline3.gif"
 File "ThunderComponentsCommunityfacesoffline30.gif"
 File "ThunderComponentsCommunityfacesoffline31.gif"
 File "ThunderComponentsCommunityfacesoffline32.gif"
 File "ThunderComponentsCommunityfacesoffline33.gif"
 File "ThunderComponentsCommunityfacesoffline34.gif"
 File "ThunderComponentsCommunityfacesoffline35.gif"
 File "ThunderComponentsCommunityfacesoffline36.gif"
 File "ThunderComponentsCommunityfacesoffline37.gif"
 File "ThunderComponentsCommunityfacesoffline38.gif"
 File "ThunderComponentsCommunityfacesoffline39.gif"
 File "ThunderComponentsCommunityfacesoffline4.gif"
 File "ThunderComponentsCommunityfacesoffline40.gif"
 File "ThunderComponentsCommunityfacesoffline5.gif"
 File "ThunderComponentsCommunityfacesoffline6.gif"
 File "ThunderComponentsCommunityfacesoffline7.gif"
 File "ThunderComponentsCommunityfacesoffline8.gif"
 File "ThunderComponentsCommunityfacesoffline9.gif"
 SetOutPath "$INSTDIRComponentsCommunity"
 File "ThunderComponentsCommunityfailimage.jpg"
 SetOutPath "$INSTDIRComponentsCommunitylocal"
 File "ThunderComponentsCommunitylocaldefault.html"
 SetOutPath "$INSTDIRComponentsCommunitylocalimg"
 File "ThunderComponentsCommunitylocalimgdot.gif"
 File "ThunderComponentsCommunitylocalimglbg.gif"
 File "ThunderComponentsCommunitylocalimgrbg.gif"
 SetOutPath "$INSTDIRComponentsCommunityPermanentGroupCache"
 File "ThunderComponentsCommunityPermanentGroupCachecategory_list.utf8.xml"
 SetOutPath "$INSTDIRComponentsCommunity"
 File "ThunderComponentsCommunityRichObject.dll"
 File "ThunderComponentsCommunityring.wav"
 File "ThunderComponentsCommunityScreenSnaper.dll"
 File "ThunderComponentsCommunityserver.ini"
 File "ThunderComponentsCommunityStatistic.ini"
 File "ThunderComponentsCommunitytoolbar.bmp"
 File "ThunderComponentsCommunitytransitionimage.gif"
 File "ThunderComponentsCommunityxlaudio.dll"
 File "ThunderComponentsCommunityXLCommunity.dll"
 SetOutPath "$INSTDIRComponentsDownAndPlay"
 File "ThunderComponentsDownAndPlayDapCtrl.dll"
 File "ThunderComponentsDownAndPlayDownAndPlay.dll"
 File "ThunderComponentsDownAndPlaynp-mswmp.dll"
 File "ThunderComponentsDownAndPlaynpDapCtrlFirefox.dll"
 File "ThunderComponentsDownAndPlaynsIDapCtrlFirefox.xpt"
 File "ThunderComponentsDownAndPlayPlayerHelper.dll"
 File "ThunderComponentsDownAndPlaytsf.dll"
 File "ThunderComponentsDownAndPlayXLNet.dll.new"
 SetOutPath "$INSTDIRComponentsDownloadStat"
 File "ThunderComponentsDownloadStatDownloadStat.dll"
 SetOutPath "$INSTDIRComponentsExplorerHelper"
 File "ThunderComponentsExplorerHelperExplorerHelper.dll"
 File "ThunderComponentsExplorerHelperIThunderComponent.xpt"
 File "ThunderComponentsExplorerHelperIThunderDownload.xpt"
 File "ThunderComponentsExplorerHelperNsThunderLoader.dll"
 File "ThunderComponentsExplorerHelperNsThunderLoaderInstaller.dll"
 File "ThunderComponentsExplorerHelperregxpcom.exe"
 File "ThunderComponentsExplorerHelperthunder.xpi"
 File "ThunderComponentsExplorerHelperThunderComponent.dll"
 File "ThunderComponentsExplorerHelperXLNonIESvr.exe"
 SetOutPath "$INSTDIRComponentsP4PClient"
 File "ThunderComponentsP4PClientp4p.dat"
 File "ThunderComponentsP4PClientP4PClient.dll"
 File "ThunderComponentsP4PClientp4p_local.htm"
 SetOutPath "$INSTDIRComponentsSearch"
 File "ThunderComponentsSearchXLSearch.dll"
 SetOutPath "$INSTDIRComponentsSecurity"
 File "ThunderComponentsSecurityAVNameConfig.ini"
 File "ThunderComponentsSecurityav_promotion.ini"
 File "ThunderComponentsSecurityconfig.ini"
 File "ThunderComponentsSecurityConfigManager.dll"
 File "ThunderComponentsSecurityext_suggestion.ini"
 File "ThunderComponentsSecuritySafeManager.dll"
 File "ThunderComponentsSecuritySafeStatistic.dll"
 SetOutPath "$INSTDIRComponentsSecuritySkinicon"
 File "ThunderComponentsSecuritySkinicondanger.ico"
 File "ThunderComponentsSecuritySkinicondelete.ico"
 File "ThunderComponentsSecuritySkiniconduba24.ico"
 File "ThunderComponentsSecuritySkiniconjiangmin24.ico"
 File "ThunderComponentsSecuritySkiniconkaspersky24.ico"
 File "ThunderComponentsSecuritySkiniconplugin.ico"
 File "ThunderComponentsSecuritySkiniconquery.ico"
 File "ThunderComponentsSecuritySkiniconrising24.ico"
 File "ThunderComponentsSecuritySkiniconsafe.ico"
 File "ThunderComponentsSecuritySkinicontab_cursel.ico"
 File "ThunderComponentsSecuritySkinicontab_danger.ico"
 File "ThunderComponentsSecuritySkinicontab_delete.ico"
 File "ThunderComponentsSecuritySkinicontab_failtoget.ico"
 File "ThunderComponentsSecuritySkinicontab_malevolence.ico"
 File "ThunderComponentsSecuritySkinicontab_popad.ico"
 File "ThunderComponentsSecuritySkinicontab_rmvbsafe.ico"
 File "ThunderComponentsSecuritySkinicontab_safe.ico"
 File "ThunderComponentsSecuritySkinicontab_unknown.ico"
 File "ThunderComponentsSecuritySkiniconunknown.ico"
 File "ThunderComponentsSecuritySkiniconzjbb24.ico"
 SetOutPath "$INSTDIRComponentsSecurity"
 File "ThunderComponentsSecurityThunderSafe.dll"
 SetOutPath "$INSTDIRComponentsTips"
 File "ThunderComponentsTipsMSG.gif"
 File "ThunderComponentsTipsTipsClient.dll"
 File "ThunderComponentsTipsTipsExtend.exe"
 File "ThunderComponentsTipsXLIPC.dll"
 SetOutPath "$INSTDIRPluginsXLSafeHostskinbitmap"
 File "ThunderPluginsXLSafeHostskinbitmapbtn_enable.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapsafeicon16.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapsafeicongray16.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapscr_title.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapstatus_ani.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip_antivirus.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip_rmf.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip_scan.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip_title.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptip_warning.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptoolbar.bmp"
 File "ThunderPluginsXLSafeHostskinbitmaptree_leakscan.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapv.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapwizard.bmp"
 File "ThunderPluginsXLSafeHostskinbitmapx.bmp"
 SetOutPath "$INSTDIRPluginsXLSafeHostskinicon"
 File "ThunderPluginsXLSafeHostskiniconclose_btn.ico"
 File "ThunderPluginsXLSafeHostskiniconmini_danger.ico"
 File "ThunderPluginsXLSafeHostskiniconmini_safe.ico"
 File "ThunderPluginsXLSafeHostskiniconmini_unknown.ico"
 File "ThunderPluginsXLSafeHostskiniconoption.ico"
 File "ThunderPluginsXLSafeHostskiniconrising16.ico"
 File "ThunderPluginsXLSafeHostskiniconrmf_normal.ico"
 SetOutPath "$INSTDIRPluginsXLSafeHost"
 File "ThunderPluginsXLSafeHostXLChecker.dll"
 File "ThunderPluginsXLSafeHostXLSafeHost.dll"
 SetOutPath "$INSTDIRProfiles"
 File "ThunderProfilesAyuConfig.ini"
 File "ThunderProfileshistory6.dat"
 File "ThunderProfileshistory6.dat.rescue"
 File "ThunderProfilesPersonal.ini"
 File "ThunderProfilesUserConfig.ini"
 SetOutPath "$INSTDIRProgram"
 File "ThunderProgram2H34"
 File "ThunderProgramaddins.ini"
 File "ThunderProgramal.cfg"
 File "ThunderProgramal.dll"
 File "ThunderProgramasyn_frame.dll"
 File "ThunderProgrambackend_agent.dll"
 File "ThunderProgrambd.dat"
 File "ThunderProgrambd.dll"
 File "ThunderProgramBHOStub.dll"
 File "ThunderProgrambootstrap.dat"
 File "ThunderProgrambt_download.dll"
 File "ThunderProgramBugReport.dll"
 File "ThunderProgramBugReport.exe"
 File "ThunderProgramdhtnodes.dat"
 File "ThunderProgramdl_peer_id.dll"
 File "ThunderProgramdownload-complete.wav"
 File "ThunderProgramdownload.cfg"
 File "ThunderProgramdownload_interface.dll"
 File "ThunderProgramdown_dispatcher.dll"
 File "ThunderProgramDSConvert.dll"
 File "ThunderProgramemule.dll"
 File "ThunderProgramemule_id.dll"
 File "ThunderProgramerror.dat"
 File "ThunderProgramerror.ini"
 File "ThunderProgramFloatBar.dll"
 File "ThunderProgramfs.dll"
 File "ThunderProgramFtpExplorer.exe"
 File "ThunderProgramgetAllurl.htm"
 File "ThunderProgramgeturl.htm"
 File "ThunderProgramhistoryinfoTransfer.dll"
 File "ThunderProgramhistoryinfo_manage.dll"
 File "ThunderProgramid.dat"
 File "ThunderProgramimdt.dll"
 File "ThunderProgramipfilter.dat"
 File "ThunderProgramiTargetAD.dll"
 File "ThunderProgramLanguageSetter.exe"
 File "ThunderProgrammp.dll"
 File "ThunderProgramnodes.dat"
 File "ThunderProgramp2p.dll"
 File "ThunderProgramp2p_local_res.dll"
 File "ThunderProgramp2p_network_com.dll"
 File "ThunderProgramp2p_upload.dll"
 File "ThunderProgramp2sp.dll"
 File "ThunderProgramptl.dll"
 File "ThunderProgramrecord.bin"
 File "ThunderProgramregister.ini"
 File "ThunderProgramRegisterDll.dll"
 File "ThunderProgramRegLicense.txt"
 File "ThunderProgramRegLicenseE.txt"
 File "ThunderProgramSCID.dat"
 File "ThunderProgramserver.bak"
 File "ThunderProgramserver.met"
 File "ThunderProgramSpecialSite.ini"
 File "ThunderProgramstat.dat"
 File "ThunderProgramstream.dll"
 File "ThunderProgramstreammedia.cfg"
 File "ThunderProgramtakeown.bat"
 File "ThunderProgramTaskManager.dll"
 File "ThunderProgramThunder5.exe"
 File "ThunderProgramThunderEx.dll"
 File "ThunderProgramThunder_cfg.ini"
 File "ThunderProgramUninitAddin.log"
 File "ThunderProgramupnp.exe"
 File "ThunderProgramWhatsnew.txt"
 File "ThunderProgramXLCommunityEx.dll"
 File "ThunderProgramxldc.cfg"
 File "ThunderProgramxldc.dll"
 File "ThunderProgramxldc_stat.dat"
 File "ThunderProgramxlhcc.dat"
 File "ThunderProgramXLNet.dll"
 File "ThunderProgramXLNetU.dll"
 File "ThunderProgramxlpfmc.dll"
 File "ThunderProgramxlvdt.dll"
 File "ThunderProgramxlvdt.ini"
 File "ThunderProgramxl_stat.dll"
 File "ThunderProgramzlib1.dll"
 SetOutPath "$INSTDIR"
 File "ThunderThunder.exe"
 SectionEnd

Section "右健菜单" SECRegistry
 SectionIn 1 2
 WriteRegStr "HKLM" "SOFTWAREThunder NetworkThunderOemthunder_backwnd" "Path" "$INSTDIRThunder.exe"
 WriteRegStr "HKLM" "SOFTWAREThunder NetworkThunderOemthunder_backwnd" "Version" "${PRODUCT_VERSION}"
 WriteRegStr "HKCU" "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载全部链接" "" "$INSTDIRProgramGetAllUrl.htm"
 WriteRegDWORD "HKCU" "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载全部链接" "Contexts" "243"
 WriteRegStr "HKCU" "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载" "" "$INSTDIRProgramGetUrl.htm"
 WriteRegDWORD "HKCU" "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载" "Contexts" "34"
 SectionEnd

Section "专用链模块" SECLinkSimulate
 SectionIn 1 2
 SetOutPath "$INSTDIRComDlls"
 File "ThunderComDllsLinkSimulate.dll"
 RegDLL "$INSTDIRComDllsLinkSimulate.dll"
 SectionEnd

SectionGroup "皮肤组件" SECSkins

Section "银妆素裹" SECWhite
 SectionIn 2
 SetOutPath "$INSTDIRSkinsWhite"
 SetOverwrite ifnewer
 File "ThunderSkinsWhiteCfgBig.bmp"
 File "ThunderSkinsWhiteConnectInfo.bmp"
 File "ThunderSkinsWhiteGlideCtrl.bmp"
 File "ThunderSkinsWhiteGlideHint.bmp"
 File "ThunderSkinsWhiteHeadSort.bmp"
 File "ThunderSkinsWhiteHelpBtn.bmp"
 File "ThunderSkinsWhiteMenudisable.bmp"
 File "ThunderSkinsWhiteMenuHot.bmp"
 File "ThunderSkinsWhiteMenuNormal.bmp"
 File "ThunderSkinsWhiteskin.ini"
 File "ThunderSkinsWhitestatusbar.bmp"
 File "ThunderSkinsWhiteTaskCategory.bmp"
 File "ThunderSkinsWhiteTaskStatus.bmp"
 File "ThunderSkinsWhitetb_community.bmp"
 File "ThunderSkinsWhitetb_popup.bmp"
 File "ThunderSkinsWhitetb_resource.bmp"
 File "ThunderSkinsWhitetb_SAFE.bmp"
 File "ThunderSkinsWhiteToolBtnDisable.bmp"
 File "ThunderSkinsWhiteToolBtnHot.bmp"
 File "ThunderSkinsWhiteToolBtnNormal.bmp"
 SectionEnd

Section "金属时代" SECDark
 SectionIn 2
 SetOutPath "$INSTDIRSkinsDark"
 SetOverwrite ifnewer
 File "ThunderSkinsDarkCfgBig.bmp"
 File "ThunderSkinsDarkConnectInfo.bmp"
 File "ThunderSkinsDarkGlideCtrl.bmp"
 File "ThunderSkinsDarkGlideHint.bmp"
 File "ThunderSkinsDarkHeadSort.bmp"
 File "ThunderSkinsDarkHelpBtn.bmp"
 File "ThunderSkinsDarkMenudisable.bmp"
 File "ThunderSkinsDarkMenuHot.bmp"
 File "ThunderSkinsDarkMenuNormal.bmp"
 File "ThunderSkinsDarkskin.ini"
 File "ThunderSkinsDarkstatusbar.bmp"
 File "ThunderSkinsDarkTaskCategory.bmp"
 File "ThunderSkinsDarkTaskStatus.bmp"
 File "ThunderSkinsDarktb_community.bmp"
 File "ThunderSkinsDarktb_popup.bmp"
 File "ThunderSkinsDarktb_resource.bmp"
 File "ThunderSkinsDarktb_SAFE.bmp"
 File "ThunderSkinsDarkToolBtnDisable.bmp"
 File "ThunderSkinsDarkToolBtnHot.bmp"
 File "ThunderSkinsDarkToolBtnNormal.bmp"
 SectionEnd

SectionGroupEnd

SectionGroup "语言文件" SECLanguages

Section "简体中文" SECzh_cn
 SectionIn RO
 SetOutPath "$INSTDIRLanguageszh_cn"
 SetOverwrite ifnewer
 File "ThunderLanguageszh_cnCommunity.ini"
 File "ThunderLanguageszh_cnCommunity.xml"
 File "ThunderLanguageszh_cnConnection.ini"
 File "ThunderLanguageszh_cndynamichelp.xml"
 File "ThunderLanguageszh_cnFloatBar1.bmp"
 File "ThunderLanguageszh_cnFloatBar2.bmp"
 File "ThunderLanguageszh_cnFloatBar3.bmp"
 File "ThunderLanguageszh_cnFtpGlance.ini"
 File "ThunderLanguageszh_cnGouGouTop.ini"
 File "ThunderLanguageszh_cnInMedia.ini"
 File "ThunderLanguageszh_cnLanguage.ini"
 File "ThunderLanguageszh_cnLiveUpdate.ini"
 File "ThunderLanguageszh_cnP4PClient.ini"
 File "ThunderLanguageszh_cnThunder.ini"
 File "ThunderLanguageszh_cnXLSearch.ini"
 SectionEnd

Section "繁体中文" SECzh_tw
 SectionIn 2
 SetOutPath "$INSTDIRLanguageszh_tw"
 SetOverwrite ifnewer
 File "ThunderLanguageszh_twCommunity.ini"
 File "ThunderLanguageszh_twCommunity.xml"
 File "ThunderLanguageszh_twConnection.ini"
 File "ThunderLanguageszh_twdynamichelp.xml"
 File "ThunderLanguageszh_twFloatBar1.bmp"
 File "ThunderLanguageszh_twFloatBar2.bmp"
 File "ThunderLanguageszh_twFloatBar3.bmp"
 File "ThunderLanguageszh_twFtpGlance.ini"
 File "ThunderLanguageszh_twGouGouTop.ini"
 File "ThunderLanguageszh_twInMedia.ini"
 File "ThunderLanguageszh_twLanguage.INI"
 File "ThunderLanguageszh_twLiveUpdate.ini"
 File "ThunderLanguageszh_twP4PClient.ini"
 File "ThunderLanguageszh_twThunder.ini"
 File "ThunderLanguageszh_twXLSearch.ini"
 SectionEnd

SectionGroupEnd

SectionGroup "快捷方式" SECshortcut

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

Section "开始菜单" SECstart
 SectionIn 1 2
 CreateDirectory "$SMPROGRAMS迅雷"
 CreateShortCut "$SMPROGRAMS迅雷启动迅雷.lnk" "$INSTDIRThunder.exe"
 CreateShortCut "$SMPROGRAMS迅雷扩展设置.lnk" "$INSTDIRAyuConfig.exe"
 CreateShortCut "$SMPROGRAMS迅雷卸载迅雷.lnk" "$INSTDIRuninst.exe"
 SectionEnd

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

SectionGroupEnd

section -Regdll
 RegDLL "$INSTDIRComDllsThunderAgent.dll"
 RegDLL "$INSTDIRComDllsXunLeiBHO.dll"
 RegDLL "$INSTDIRComDllsTDAtOnce.dll"
 RegDLL "$INSTDIRComDllsFaker.dll"
 SectionEnd

Section -Post
 WriteUninstaller "$INSTDIRuninst.exe"
 WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIRThunder.exe"
 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIRuninst.exe"
 WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIRThunder.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 "$INSTDIRComDllsTDAtOnce_Now.dll"
 unRegDLL "$INSTDIRComDllsxunleiBHO_Now.dll"
 unRegDLL "$INSTDIRComDllsThunderAgent.dll"
 unRegDLL "$INSTDIRComDllsXunLeiBHO.dll"
 unRegDLL "$INSTDIRComDllsTDAtOnce.dll"
 unRegDLL "$INSTDIRComDllsFaker.dll"
 unRegDLL "$INSTDIRComDllsLinkSimulate.dll"
 unRegDLL "$INSTDIRComDllsThunderAgent_Now.dll"

Delete "$INSTDIRuninst.exe"
 Delete "$INSTDIRAyuConfig.exe"
 Delete "$INSTDIRThunder.exe"

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

RMDir  "$SMPROGRAMS迅雷"

RMDir /r "$INSTDIRSkins"
 RMDir /r "$INSTDIRProgram"
 MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "是否保留配置文件和历史记录?" /SD IDYES IDNO +2
 Goto +2
 RMDir /r "$INSTDIRProfiles"
 RMDir /r "$INSTDIRPlugins"
 RMDir /r "$INSTDIRLanguages"
 RMDir /r "$INSTDIRComponents"
 RMDir /r "$INSTDIRComDlls"

RMDir "$INSTDIR"

DeleteRegKey HKLM "SOFTWAREThunder Network"
 DeleteRegKey HKCU "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载全部链接"
 DeleteRegKey HKCU "SoftwareMicrosoftInternet ExplorerMenuExt使用迅雷下载"

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

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

Function .onInstSuccess
 Exec "$INSTDIRAyuConfig.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
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » 迅雷5.8.6.600自由定制版脚本

您必须 登录 才能发表评论!