脚本:技术员实用工具合集Update10

优质
小牛编辑
137浏览
2023-12-01
最终作品介绍:
http://bbs.mscode.cc/thread-28283-1-1.html

作品下载地址:
http://soft.ylmf.com/downinfo/264.html

引用脚本的内容:

; 该脚本使用 HM VNISEdit 脚本编辑器向导产生

; 安装程序初始定义常量
!define PRODUCT_NAME "技术员实用工具合集"
!define PRODUCT_VERSION "Update10"
!define PRODUCT_PUBLISHER "Made By Netsurf"
!define PRODUCT_WEB_SITE "http://www.diyfans.cc/bbs"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define MUI_COMPONENTSPAGE_NODESC
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ChageFONT

SetCompressor lzma
insttype "完全安装"
insttype "技术人员工具"
insttype "实用工具合集"
insttype "WINXP_TOOLS"

; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"
!include "UsefulLib.nsh"
; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"

; 欢迎页面
!define MUI_WELCOMEPAGE_TEXT "更新简介:\r\n\r\n1.全部程序(包括xp_tools部分)支持单独安装;\r\r\n2.软件收集整理日期为[06/08/29];\r\r\n3:依然保持/S来实现程序静默安装;\r\r\n4:多种安装类型,方便你安装与使用;\r\r\n5.技术支持论坛:官方网站[[url]www.diyfans.cc/bbs[/url]];\r\r\n6.            (时空论坛)[[url]www.znpc.net/bbs[/url]];\r\r\n7.            (龙帝国论坛)[bbs.mscode.cc];\r\r\n8.有任何问题或者建议,欢迎提示和指正^_^"
!insertmacro MUI_PAGE_WELCOME

; 许可协议页面
!insertmacro MUI_PAGE_LICENSE "licence.txt"
; 组件选择页面
!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
; ------ MUI 现代界面定义结束 ------

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "NS_TOOLS.exe"
InstallDir "$PROGRAMFILES\NS_TOOLS"
ShowInstDetails show
ShowUnInstDetails show
BrandingText /TRIMRIGHT "[技术员实用工具合集@NETSURF#支持论坛@[url]www.diyfans.cc/bbs[/url]]"
SilentInstall normal
;--------------------------------
;技术人员工具组部分
Sectiongroup /e "!技术人员工具" ns1

section "EVEREST Ultimate Edition 2006 V3.01 Build 669" js1
  sectionin 1 2 
  SetOutPath "$INSTDIR\js\Everest"
  SetOverwrite ifnewer
  File /r "js\Everest\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
CreateShortCut "$SMPROGRAMS\附件\技术人员工具\EVEREST Ultimate Edition 2006 V3.01 Build 669.lnk" "$INSTDIR\js\Everest\everest.exe"
sectionend
;---------------------------------------------
section "Windows优化大师V7.31 Build 6.618荒村听雨版" js2
sectionin 1 2
  SetOutPath "$INSTDIR\js\wom"
  SetOverwrite ifnewer
  File /r "js\wom\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
createshortcut "$smprograms\附件\技术人员工具\Windows优化大师V7.31 Build 6.618.lnk" "$instdir\js\wom\wom.EXE"
SectionEnd
;------------------------------------------
section "Total Commander Embellished Edition 6.5" js3
sectionin 1 2
  SetOutPath "$INSTDIR\js\TotalCmd"
  SetOverwrite ifnewer
  File /r "js\TotalCmd\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
CreateShortCut "$SMPROGRAMS\附件\技术人员工具\Total Commander Embellished Edition 6.53.lnk" "$INSTDIR\js\TotalCmd\TotalCmd.exe"

SectionEnd
;------------------------------------------
section "Prassi ONES(深山红叶专用刻录软件)v2.0.330" js4
sectionin 1 2
  SetOutPath "$INSTDIR\js\ONES"
  SetOverwrite ifnewer
  File /r "js\ONES\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
CreateShortCut "$SMPROGRAMS\附件\技术人员工具\Prassi ONES(深山红叶专用刻录软件)v2.0.330.lnk" "$INSTDIR\js\ONES\ONES.exe"

SectionEnd
;-----------------------------------------------------
section "UPIEA(IE插件屏蔽管理专家)2006 Beta8" js5
sectionin 1 2
  SetOutPath "$INSTDIR\js\UPIEA"
  SetOverwrite ifnewer
  File /r "js\upiea\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\UPIEA(IE插件屏蔽管理专家)2006 Beta8.lnk" "$INSTDIR\js\UPIEA\upiea.exe"

SectionEnd
;--------------------------------------------------------
section "恶意软件清理助手(RogueCleaner) V2.11 Build 023 " js6
sectionin 1 2
  SetOutPath "$INSTDIR\js\RogueCleaner"
  SetOverwrite ifnewer
  File /r "js\RogueCleaner\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\>恶意软件清理助手(RogueCleaner) V2.11 Build 023.lnk" "$INSTDIR\js\RogueCleaner\RogueCleaner.exe"

SectionEnd
;-------------------------------------------------------
section "Autoruns(查木马病毒解决系统启动太慢的工具) v8.52" js7
sectionin 1 2
  SetOutPath "$INSTDIR\js\Autoruns"
  SetOverwrite ifnewer
  File /r "js\autoruns\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\Autoruns(系统启动) v8.52.lnk" "$INSTDIR\js\Autoruns\Autoruns.exe"

SectionEnd
;----------------------------------------------
section "Beyond Compare (文件及文件夹比较工具) V2.3.1" js8
sectionin 1 2
  SetOutPath "$INSTDIR\js\Beyond Compare"
  SetOverwrite ifnewer
  File /r "js\Beyond Compare\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\Beyond Compare (文件及文件夹比较工具) V2.3.1.lnk" "$INSTDIR\js\Beyond Compare\BC2.exe"

SectionEnd
;------------------------------------------------
section "Ava Find 1.5.218 汉化专业版" js9
sectionin 1 2
  SetOutPath "$INSTDIR\js\AvaFind"
  SetOverwrite ifnewer
  File /r "js\AvaFind\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\Ava Find 1.5.218 汉化专业版.lnk" "$INSTDIR\js\AvaFind\AvaFind.exe"

SectionEnd
;--------------------------------------------
section "IceSword v1.12(进程监测关闭工具) " js10
sectionin 1 2
  SetOutPath "$INSTDIR\js\IceSword"
  SetOverwrite ifnewer
  File /r "js\IceSword\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\IceSword v1.12(进程检查).lnk" "$INSTDIR\js\IceSword\IceSword.exe"
SectionEnd
;------------------------------------------------
/*section "Ashampoo Burning Studio 6.10(刻录软件)" js11
sectionin 1 2
  SetOutPath "$INSTDIR\js\Ashampoo"
  SetOverwrite ifnewer
  File /r "js\Ashampoo\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\Ashampoo Burning Studio 6.10(刻录软件).lnk" "$instdir\js\Ashampoo\Ashampoo.exe"

SectionEnd
*/
;-----------------------------------------------
section "Registry Workshop 2.5.1(注册表工具)" js12
sectionin 1 2
  SetOutPath "$INSTDIR\js\Registryw"
  SetOverwrite ifnewer
  File /r "js\Registryw\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\Registry Workshop 2.5.1.lnk" "$instdir\js\Registryw\RegWorkshop.exe"

SectionEnd
;-------------------------------------------------
section "regsnap5(注册表比较工具)" js13
sectionin 1 2
  SetOutPath "$INSTDIR\js\RegSnap"
  SetOverwrite ifnewer
  File /r "js\RegSnap\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\regsnap5.lnk" "$instdir\js\RegSnap\RegSnap.exe"

SectionEnd
;---------------------------------------------------
section "WinMD5Sum 汉化版 1.01" js14
sectionin 1 2
  SetOutPath "$INSTDIR\js"
  SetOverwrite ifnewer
  File  "js\WinMD5Sum.exe"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\WinMD5Sum 汉化版 1.01.lnk" "$instdir\js\WinMD5Sum.exe"

SectionEnd
;---------------------------------------------------
section "HDtune v2.52 汉化版(硬盘检测)" js15
sectionin 1 2
  SetOutPath "$INSTDIR\js"
  SetOverwrite ifnewer
  File "js\HDTune.exe"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\HDtune v2.52.lnk" "$instdir\js\HDTune.exe"

SectionEnd
;---------------------------------------------------
section "KillBox 2.0(想删就删 不怕写保护)" js16
sectionin 1 2
  SetOutPath "$INSTDIR\js"
  SetOverwrite ifnewer
  File  "js\killbox.exe"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\KillBox 2.0.lnk" "$instdir\js\killbox.exe"

SectionEnd
;---------------------------------------------------
section "DisplayX-液晶显示器测试工具" js17
sectionin 1 2
  SetOutPath "$INSTDIR\js"
  SetOverwrite ifnewer
  File  "js\DisplayX.exe"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\DisplayX-液晶显示器测试工具.lnk" "$instdir\js\DisplayX.exe"
SectionEnd
;---------------------------------------------------
section "OEM-DIY 品牌自己做 5.0 多国语言版" js18
sectionin 1 2
  SetOutPath "$INSTDIR\js\oemdiy"
  SetOverwrite ifnewer
  File /r "js\oemdiy\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  createshortcut "$smprograms\附件\技术人员工具\OEM-DIY 品牌自己做 5.0.lnk" "$instdir\js\oemdiy\diyoem.exe"

SectionEnd
;---------------------------------------------------
section "驱动备份精灵 V2.5 By 深山红叶" js19
sectionin 1 2
  SetOutPath "$INSTDIR\js\DRVBAK"
  SetOverwrite ifnewer
  File /r "js\DRVBAK\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
  CreateShortCut "$SMPROGRAMS\附件\技术人员工具\驱动备份精灵 V2.5.lnk" "$INSTDIR\js\DRVBAK\DRVBAK.exe"
sectionend
;---------------------------------------------------------
section "FinalRecovery(数据恢复工具) v1.4.0.1" js20
sectionin 1 2
  SetOutPath "$INSTDIR\js\FinalRecovery"
  SetOverwrite ifnewer
  File /r "js\FinalRecovery\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
CreateShortCut "$SMPROGRAMS\附件\技术人员工具\FinalRecovery(数据恢复工具) v1.4.0.1.lnk" "$INSTDIR\js\FinalRecovery\finalrecovery.exe"
;写入注册信息
        WriteRegStr HKLM "SOFTWARE\MeetSoft\FinalRecovery" "UserName" "www.51ct.cn"
        WriteRegStr HKLM "SOFTWARE\MeetSoft\FinalRecovery" "RegCode" "AF547F0FA3149CA0BEA3315D91A0B9AA"
SectionEnd

;---------------------------------------------------
section "注册表备份工具(ERUNT)" js21
sectionin 1 2
  SetOutPath "$INSTDIR\js\Erunt"
  SetOverwrite ifnewer
  File /r "js\Erunt\*.*"
;快捷方式
CreateDirectory "$SMPROGRAMS\附件\技术人员工具"
CreateShortCut "$SMPROGRAMS\附件\技术人员工具\注册表备份工具(ERUNT).lnk" "$INSTDIR\js\Erunt\Erunt.EXE"
SectionEnd
;---------------------------------------------------

sectiongroupend

;实用工具合集部分
Sectiongroup /e "!实用工具合集" ns2
section "C盘个人资料转移器(强烈推荐使用)" sy1
sectionin 1 3
  SetOutPath "$INSTDIR\sy"
  SetOverwrite ifnewer
  File /r "sy\personal.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\C盘个人资料转移器(强烈推荐).lnk" "$INSTDIR\sy\personal.exe"

SectionEnd
;---------------------------------------------------
section "Foxit Reader Pro 2.0 Build 0609" sy2
sectionin 1 3
   SetOutPath "$INSTDIR\sy\Foxit Reader"
  SetOverwrite ifnewer
  File /r "sy\Foxit Reader\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\Foxit Reader Pro 2.0 Build 0609.lnk" "$INSTDIR\sy\Foxit Reader\Foxit Reader.exe"

SectionEnd
;---------------------------------------------------
section "Foxit PDF Editor 1.4 build 1325" sy3
sectionin 1 3
   SetOutPath "$INSTDIR\sy\PDF Editor"
  SetOverwrite ifnewer
  File /r "sy\PDF Editor\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\Foxit PDF Editor 1.4 build 1325.lnk" "$INSTDIR\sy\PDF Editor\PDFEdit.exe"

SectionEnd
;---------------------------------------------------
section "BBS转贴工具时空飞雪专用版" sy4
sectionin 1 3
   SetOutPath "$INSTDIR\sy"
  SetOverwrite ifnewer
  File /r "sy\BBS.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\BBS转贴工具时空飞雪专用版.lnk" "$INSTDIR\sy\BBS.exe"

SectionEnd

;---------------------------------------------------
section "网站全球排名(Alexa)查询工具" sy5
sectionin 1 3
  SetOutPath "$INSTDIR\sy"
  SetOverwrite ifnewer
  File /r "sy\Alexa.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\网站全球排名(Alexa)查询工具.lnk" "$INSTDIR\sy\Alexa.exe"

SectionEnd
;---------------------------------------------------
section "F11键输入序列号" sy6
sectionin 1 3
  SetOutPath "$INSTDIR\sy"
  SetOverwrite ifnewer
  File /r "sy\f11.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\F11键输入序列号.lnk" "$INSTDIR\sy\f11.exe"

SectionEnd
;-----------------------------------------
section "内存精灵2.0(内存整理)" sy7
sectionin 1 3
  SetOutPath "$INSTDIR\sy\TCmem"
  SetOverwrite ifnewer
  File /r "sy\TCmem\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\内存精灵2.0(内存整理).lnk" "$INSTDIR\sy\TCmem\TCmem.exe"

SectionEnd
;-----------------------------------------
section "MemCleaner V0.4(内存整理)" sy8
sectionin 1 3
  SetOutPath "$INSTDIR\sy\MemCleaner"
  SetOverwrite ifnewer
  File /r "sy\MemCleaner\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\MemCleaner V0.4(内存整理).lnk" "$INSTDIR\sy\MemCleaner\MemCleaner.exe"

SectionEnd
;-----------------------------------------
section "RamCleaner 4.0 火鸡汉化版(内存整理)" sy9
sectionin 1 3
  SetOutPath "$INSTDIR\sy\RamCleaner"
  SetOverwrite ifnewer
  File /r "sy\RamCleaner\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\RamCleaner 4.0 火鸡汉化版(内存整理).lnk" "$INSTDIR\sy\RamCleaner\RamCleaner.exe"

SectionEnd
;-----------------------------------------
section "千千静听(TTPlayer)4.6.8 0704 Final" sy10
sectionin 1 3
  SetOutPath "$INSTDIR\sy\TTPlayer"
  SetOverwrite ifnewer
  File /r "sy\TTPlayer\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\千千静听(TTPlayer)4.6.8 0704 Final.lnk" "$INSTDIR\sy\TTPlayer\TTPlayer.exe"

SectionEnd
;---------------------------------------------------
section "傲游(Maxthon) v1.5.6 build 42" sy11
sectionin 1 3
  SetOutPath "$INSTDIR\sy\Maxthon"
  SetOverwrite ifnewer
  File /r "sy\Maxthon\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\傲游(Maxthon) v1.5.6 build 42.lnk" "$INSTDIR\sy\Maxthon\Maxthon.exe"
sectionend
;---------------------------------------------------
section "千宇智能关机 V1.77" sy12
sectionin 1 3
  SetOutPath "$INSTDIR\sy\off"
  SetOverwrite ifnewer
  File /r "sy\off\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\千宇智能关机 V1.77.lnk" "$INSTDIR\sy\off\qyzngj.exe"

SectionEnd
;-------------------------------------------------------------
section "HyperSnap(RealKey) v6.10.02" sy13
sectionin 1 3
  SetOutPath "$INSTDIR\sy\HyperSnap 6"
  SetOverwrite ifnewer
  File /r "sy\HyperSnap 6\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\HyperSnap(RealKey) v6.10.02.lnk" "$INSTDIR\sy\HyperSnap 6\HprSnap6.exe"

SectionEnd

;-------------------------------------------------------------
section "办公文档修复工具BY 深山红叶" sy14
sectionin 1 3
  SetOutPath "$INSTDIR\sy"
  SetOverwrite ifnewer
  File /r "sy\rdoc.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\办公文档修复工具BY 深山红叶.lnk" "$INSTDIR\sy\rdoc.exe"
SectionEnd
;-------------------------------------------------------------
section "输入法设置工具 IME TOOL v2.6.5" sy15
sectionin 1 3
  SetOutPath "$INSTDIR\sy\IME"
  SetOverwrite ifnewer
  File /r "sy\IME\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\输入法设置工具 IME TOOL v2.6.5.lnk" "$INSTDIR\sy\ime\imetool.exe"

SectionEnd

;------------------------------------------------------------------------------------------------------------------
;在ie收藏夹中加入论坛地址

section "OEM信息" sy16
sectionin 1 3 RO
;设置当前用户
SetShellVarContext current
setoutpath "$FAVORITES\推荐论坛"
SetOverwrite ifnewer
file  "sy\oem\*.*"
/*设置全局用户
SetShellVarContext all
setoutpath "$FAVORITES\推荐论坛"
SetOverwrite ifnewer
file  "sy\oem\*.*"
*/

;=====================
;建立卸载程序快捷方式
;=====================
CreateDirectory "$SMPROGRAMS\实用工具合集"
CreateShortCut "$SMPROGRAMS\实用工具合集\技术员实用工具Update10卸载程序.lnk" "$INSTDIR\uninst.exe"
sectionend
;---------------------------------------------------------------------------------------------------
section "diyfans" sy17
sectionin 1 3 RO
  SetOutPath "$INSTDIR"
  SetOverwrite ifnewer
  File /r "sy\diyfans\*.*"
;快捷方式
  CreateDirectory "$SMPROGRAMS\实用工具合集"
  CreateShortCut "$SMPROGRAMS\实用工具合集\欢迎访问DIYFANS企业网管社区.lnk" "$INSTDIR\diyfans.url"
SectionEnd

Sectiongroupend

;====================================
;WINXP_TOOLS部分
;====================================

Sectiongroup /e "!WINXP_TOOLS" ns3
;-------------------------------------
section "WinXP正版增值计划破解补丁" xp1
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\XPpatch.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WinXP正版增值计划破解补丁(火蚂蚁版).lnk" "$INSTDIR\WINXP_TOOLS\XPpatch.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "windows序列号变换工具" xp2
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\Windowschanger1.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\windows序列号变换工具.lnk" "$INSTDIR\WINXP_TOOLS\Windowschanger1.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "WindowsXP序列号查看工具" xp3
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\ProductViewer.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WindowsXP序列号查看工具.lnk" "$INSTDIR\WINXP_TOOLS\ProductViewer.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "Windows XP算号器 7.0 中文最终版" xp4
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\WindowsXP 7.0.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows XP算号器 7.0 中文最终版.lnk" "$INSTDIR\WINXP_TOOLS\WindowsXP 7.0.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "Windows XP 激活工具" xp5
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\Windows XPactive.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows XP 激活工具.lnk" "$INSTDIR\WINXP_TOOLS\Windows XPactive.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "Windows(VOL)序列号修改" xp6
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\Windowschanger2.vbs"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows(VOL)序列号修改.lnk" "$INSTDIR\WINXP_TOOLS\Windowschanger2.vbs"
SectionEnd
;----------------------------------------------------------------------------------------------
section "解决IE无法打开二级链接" xp7
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\twolink.bat"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\解决IE无法打开二级链接.lnk" "$INSTDIR\WINXP_TOOLS\twolink.bat"
SectionEnd
;----------------------------------------------------------------------------------------------
section "微软TCP/IP破解补丁[改TCP/IP并发线程]" xp8
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\BetterSP2.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\微软[TCPIP]破解补丁.lnk" "$INSTDIR\WINXP_TOOLS\BetterSP2.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "Windows系统服务终结者 v3.00 版" xp9
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\Winservices.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows系统服务终结者 v3.00 版.lnk" "$INSTDIR\WINXP_TOOLS\Winservices.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "Windows GAV V1.5.540.0 新版补丁7月版" xp10
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\GAV.rar"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WinXP在线更新补丁(手动).lnk" "$INSTDIR\WINXP_TOOLS\GAV.rar"
SectionEnd
;----------------------------------------------------------------------------------------------
section "TweakUI v2.20.0.5[微软出品的优化系统]" xp11
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\tweaki.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\TweakUI v2.20.lnk" "$INSTDIR\WINXP_TOOLS\tweaki.exe"
SectionEnd
;----------------------------------------------------------------------------------------------
section "XP-AntiSpy(windows XP_SP2的优化好工具) v3.96_2" xp12
sectionin 1 4
  SetOutPath "$INSTDIR\WINXP_TOOLS"
  SetOverwrite ifnewer
  file /r "WINXP_TOOLS\xp-AntiSpy.exe"
;快捷方式
  CreateDirectory "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  CreateShortCut  "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\XP-AntiSpy v3.96_2.lnk" "$INSTDIR\WINXP_TOOLS\xp-AntiSpy.exe"
SectionEnd
;----------------------------------------------------------------------------------------------

sectiongroupend

;==============================================================================
Section -Post
  WriteUninstaller "$INSTDIR\uninst.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}" "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

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

; 区段组件描述
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "技术人员工具在附件菜单创建目录"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "实用工具在程序菜单创建目录"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "WINXP_TOOLS常用工具^_^"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

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

Section Uninstall
  Delete "$INSTDIR\uninst.exe"
;---------------------------------
;删除技术人员工具快捷方式
;---------------------------------
delete "$SMPROGRAMS\附件\技术人员工具\EVEREST Ultimate Edition 2006 V3.01 Build 669.lnk"
delete "$smprograms\附件\技术人员工具\Windows优化大师V7.31 Build 6.618.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\Total Commander Embellished Edition 6.53.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\Prassi ONES(深山红叶专用刻录软件)v2.0.330.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\UPIEA(IE插件屏蔽管理专家)2006 Beta8.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\恶意软件清理助手(RogueCleaner) V2.11 Build 023.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\Autoruns(系统启动) v8.52.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\Beyond Compare (文件及文件夹比较工具) V2.3.1.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\Ava Find 1.5.218 汉化专业版.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\IceSword v1.12(进程检查).lnk"
delete "$smprograms\附件\技术人员工具\Registry Workshop 2.5.1.lnk"
delete "$smprograms\附件\技术人员工具\regsnap5.lnk"
delete "$smprograms\附件\技术人员工具\WinMD5Sum 汉化版 1.01.lnk"
delete "$smprograms\附件\技术人员工具\HDtune v2.52.lnk"
delete "$smprograms\附件\技术人员工具\KillBox 2.0.lnk"
delete "$smprograms\附件\技术人员工具\DisplayX-液晶显示器测试工具.lnk"
delete "$smprograms\附件\技术人员工具\OEM-DIY 品牌自己做 5.0.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\驱动备份精灵 V2.5.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\FinalRecovery(数据恢复工具) v1.4.0.1.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\注册表备份工具(ERUNT).lnk"
;-----------------------------------------------------
;删除实用工具合集部分的快捷方式
;-----------------------------------------------------


delete "$SMPROGRAMS\实用工具合集\C盘个人资料转移器(强烈推荐).lnk"
delete "$SMPROGRAMS\实用工具合集\Foxit Reader Pro 2.0 Build 0609.lnk"
delete "$SMPROGRAMS\实用工具合集\Foxit PDF Editor 1.4 build 1325.lnk"
delete "$SMPROGRAMS\实用工具合集\BBS转贴工具时空飞雪专用版.lnk"
delete "$SMPROGRAMS\实用工具合集\网站全球排名(Alexa)查询工具.lnk"
delete "$SMPROGRAMS\实用工具合集\F11键输入序列号.lnk"
delete "$SMPROGRAMS\实用工具合集\内存精灵2.0(内存整理).lnk"
delete "$SMPROGRAMS\实用工具合集\MemCleaner V0.4(内存整理).lnk"
delete "$SMPROGRAMS\实用工具合集\RamCleaner 4.0 火鸡汉化版(内存整理).lnk"
delete "$SMPROGRAMS\实用工具合集\千千静听(TTPlayer)4.6.8 0704 Final.lnk"
delete "$SMPROGRAMS\实用工具合集\傲游(Maxthon) v1.5.6 build 42.lnk"
delete "$SMPROGRAMS\实用工具合集\千宇智能关机 V1.77.lnk"
delete "$SMPROGRAMS\实用工具合集\技术员实用工具Update10卸载程序.lnk"
delete "$SMPROGRAMS\实用工具合集\HyperSnap(RealKey) v6.10.02.lnk"
delete "$SMPROGRAMS\实用工具合集\办公文档修复工具BY 深山红叶.lnk"
delete "$SMPROGRAMS\实用工具合集\输入法设置工具 IME TOOL v2.6.5.lnk"
delete "$SMPROGRAMS\实用工具合集\欢迎访问DIYFANS企业网管社区.lnk"
;-----------------------
;删除winxp_tools部分
;-----------------------

delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WinXP正版增值计划破解补丁(火蚂蚁版).lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\windows序列号变换工具.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WindowsXP序列号查看工具.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows XP算号器 7.0 中文最终版.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows XP 激活工具.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows(VOL)序列号修改.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\解决IE无法打开二级链接.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\微软[TCPIP]破解补丁.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\Windows系统服务终结者 v3.00 版.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\WinXP在线更新补丁(手动).lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\TweakUI v2.20.lnk"
delete "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS\XP-AntiSpy v3.96_2.lnk"



  RMDIR "$SMPROGRAMS\附件\技术人员工具\WINXP_TOOLS"
  RMDir "$SMPROGRAMS\附件\技术人员工具"
  Rmdir "$SMPROGRAMS\实用工具合集"
;=============================
;移除技术人员工具部分目录
;=============================

  RMDir /r "$INSTDIR\js\autoruns"
  RMDir /r "$INSTDIR\js\AvaFind"
  RMDir /r "$INSTDIR\js\Beyond Compare"
  RMDir /r "$INSTDIR\js\DRVBAK"
  RMDir /r "$INSTDIR\js\Everest"
  rmdir /r "$instdir\js\FinalRecovery"
  RMDir /r "$INSTDIR\js\IceSword"
  RMDir /r "$INSTDIR\js\ipcfg"
  RMDir /r "$INSTDIR\js\oemdiy"
  RMDir /r "$INSTDIR\js\ONES"
  RMDir /r "$INSTDIR\js\Registryw"
  RMDir /r "$INSTDIR\js\RegSnap"
  RMDir /r "$INSTDIR\js\RogueCleaner"
  RMDir /r "$INSTDIR\js\TotalCmd"
  RMDir /r "$INSTDIR\js\upiea"
  RMDir /r "$INSTDIR\js\wom"
  RMDir /r "$INSTDIR\js"
  RMDir /r "$INSTDIR\ERUNT"
;============================
;移除实用工具合集部分目录
;============================
  RMDir /r "$INSTDIR\sy\Foxit Reader"
  RMDir /r "$INSTDIR\sy\Maxthon"
  RMDir /r "$INSTDIR\sy\MemCleaner"
  RMDir /r "$INSTDIR\sy\OEM"
  RMDir /r "$INSTDIR\sy\off"
  RMDir /r "$INSTDIR\sy\PDF Editor"
  RMDir /r "$INSTDIR\sy\RamCleaner"
  RMDir /r "$INSTDIR\sy\TCmem"
  RMDir /r "$INSTDIR\sy\TTPlayer"
  RMDir /r "$INSTDIR\HyperSnap 6"
  RMDir /r "$INSTDIR\ime"
  
  RMDir /r "$INSTDIR\sy"

;=============================
;移除winxp_tools工具部分目录
;============================
RMDir /r "$INSTDIR\WINXP_TOOLS"
RMDir /r "$INSTDIR"
;====================================

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

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

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

Function un.onUninstSuccess
  HideWindow
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从你的计算机移除。"
FunctionEnd

;-----------------------
;注册字体的代码段
;-----------------------
;!define MUI_PAGE_CUSTOMFUNCTION_SHOW ChageFONT
;!insertmacro MUI_PAGE_WELCOME
Function ChageFONT
GetDlgItem $0 $MUI_HWND 1201
createFont $1 "Tahoma" "11" "700"
SendMessage $0 ${WM_SETFONT} $1 0
functionend
;==============================
;Callback

!define IDC_ABOUT        1300
!define IDC_LINK        1301
!define IDM_ABOUT        1

Function .onPageCallback
        ${If} $MSG = ${WM_INITDIALOG}
                Push $0
                Push $1
                Push $2
                Push $3
            ${GetDlgItemRect} $0 $1 $2 $3 $HWNDPARENT ${IDC_CANCEL}
                IntOp $0 $2 - $0
                IntOp $2 $3 - $1
                ${CreateButton} "关于(&A)" 20 $1 $0 $2 $HWNDPARENT ${IDC_ABOUT}
                IntOp $3 $0 + 30
                IntOp $1 $1 + 3
                IntOp $2 $2 - 2
                ${CreateLink} $3 $1 90 $2 $HWNDPARENT ${IDC_LINK}
                ${GetSystemMenu} $0 $HWNDPARENT
                ${AppendMenu} $0 ${MF_SEPARATOR} 0 0
                ${AppendMenu} $0 ${MF_STRING} ${IDM_ABOUT} "关于安装程序(&A)"
                Pop $3
                Pop $2
                Pop $1
                Pop $0
        ${ElseIf} $MSG = ${WM_COMMAND}
                ${If} $WPARAM = ${IDC_ABOUT}
                        ${MessageBox2} `技术员实用工具合集Update10正式发布,欢迎访问diyfans网管社区$\n\
                                                有什么建议或者问题,欢迎访问[[url]www.diyfans.cc/bbs[/url]]跟贴讨论$\n\
                                                \
                                                $\n$\n Made By Netsurf` `关于 $(^NameDA)` ${MB_OK}|${MB_ICONINFORMATION}
                ${ElseIf} $WPARAM = ${IDC_LINK}
                    ExecShell open `[url]http://www.diyfans.cc/bbs/[/url]`
                ${EndIf}
        ${ElseIf} $MSG = ${WM_DRAWITEM}
            ${DrawLink} `DIYFANS.CC` ${IDC_LINK} $LPARAM
        ${ElseIf} $MSG = ${WM_SYSCOMMAND}
                ${If} $WPARAM = ${IDM_ABOUT}
                    ${MessageBox2} `技术人员实用工具合集$\n版权所有 (C) 2006-2008 netsurf, Inc.$\n$\n官方主页:$\nhttp://www.diyfans.cc/bbs` `关于安装程序` ${MB_OK}|${MB_ICONINFORMATION}
            ${EndIf}
        ${EndIf}
FunctionEnd