脚本:番茄花园 Windows 主题资源包

优质
小牛编辑
135浏览
2023-12-01
引用脚本的内容:

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

; 安装程序初始定义常量
!define PRODUCT_NAME "番茄花园 Windows 主题资源包"
!define PRODUCT_VERSION "1.5.0.0"
!define PRODUCT_PUBLISHER "番茄花园"
!define PRODUCT_WEB_SITE "http://www.tomatolei.com"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"

;SetCompressor lzma
SetCompressor /final /SOLID lzma
BrandingText "番茄花园 http://www.tomatolei.com"

; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"
!include "Sections.nsh"
!include "UsefulLib.nsh"
xpstyle on

; MUI 预定义常量
!define MUI_ABORTWARNING
!define MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_ICON "ICO\ICO\TomatoStyleXP.ico"
!define MUI_UNICON "ICO\ICO\UN.ico"
!define MUI_WELCOMEFINISHPAGE_BITMAP "left.bmp"  ;左边
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "top1.bmp"
!define MUI_HEADERIMAGE_UNBITMAP "top1.bmp"
;!define MUI_HEADERIMAGE_LEFT
!define MUI_HEADERIMAGE_RIGHT

; 欢迎页面
!insertmacro MUI_PAGE_WELCOME
; 许可协议页面
!define MUI_LICENSEPAGE_CHECKBOX
;!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "OTHER\eula.txt"
;PageEx license
;   LicenseData "OTHER\Readme.txt"
;   LicenseForceSelection off
; PageExEnd
!define MUI_PAGE_HEADER_TEXT "更新说明"
!define MUI_PAGE_HEADER_SUBTEXT "在安装 $(^NameDA) 之前,请仔细阅读以下说明"
!define MUI_LICENSEPAGE_BUTTON "下一步(N)"
!define MUI_LICENSEPAGE_TEXT_TOP "要阅读说明的其余部分,请按 Page Down 往下翻页。"
!define MUI_LICENSEPAGE_TEXT_BOTTOM "如果你已经仔细阅读了更新说明,点击 [下一步(N)] 继续安装。"
!insertmacro MUI_PAGE_LICENSE "OTHER\readme.txt"
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
; 安装目录选择页面
;!insertmacro MUI_PAGE_DIRECTORY
; 开始菜单设置页面
var ICONS_GROUP

;!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "番茄花园StyleXP主题"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application "$ICONS_GROUP"

; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES

;在“完成”页面显示一个链接
;链接地址
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.tomatolei.com/"
;显示的文本
!define MUI_FINISHPAGE_SHOWREADME "$WINDIR\Resources\Themes\README.txt"
!define MUI_FINISHPAGE_LINK "访问 番茄花园"
; 安装完成页面
!insertmacro MUI_PAGE_FINISH

; 安装卸载过程页面
!insertmacro MUI_UNPAGE_INSTFILES

; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "SimpChinese"


; 安装预释放文件
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; ------ MUI 现代界面定义结束 ------


InstType "完全安装"
InstType "推荐安装"

ReserveFile "${NSISDIR}\Plugins\advsplash.dll"
ReserveFile "on.bmp"
;ReserveFile "..\..\..\..\软件系列\CalSprite\Res\Sounds\Mac.wav"

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "STYLEXP.EXE"
InstallDir "$WINDIR\Resources\Themes"
ShowInstDetails show
ShowUnInstDetails show

;--------------------------------
;安装程序的版本信息
VIProductVersion "${PRODUCT_VERSION}" ;版本号,格式为 X.X.X.X (若使用则本条必须)
VIAddVersionKey FileDescription "${PRODUCT_NAME}" ;文件描述(标准信息)
VIAddVersionKey FileVersion "${PRODUCT_VERSION}" ;文件版本(标准信息)
VIAddVersionKey ProductName "${PRODUCT_NAME} ${PRODUCT_VERSION}"  ;产品名称
;VIAddVersionKey ProductVersion "${Ver}" ;产品版本
;VIAddVersionKey Comments "${Name} ${Ver}" ;备注
;VIAddVersionKey CompanyName "${CmpName}" ;公司名
VIAddVersionKey LegalCopyright "版权所有 (C) ${PRODUCT_PUBLISHER}" ;合法版权
;VIAddVersionKey InternalName "${Name}" ;内部名称
VIAddVersionKey LegalTrademarks "${PRODUCT_PUBLISHER}" ;合法商标 ;
VIAddVersionKey OriginalFilename "TomatoStylexp.exe" ;源文件名
;VIAddVersionKey PrivateBuild "" ;个人内部版本说明
;VIAddVersionKey SpecialBuild "" ;特殊内部本本说明


Section /o "OEM信息" SEC_OEM
  SectionIn 1
  SetOutPath "$SYSDIR"
  SetOverwrite on
  File /r "OEM\*.*"
          WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "CLSID" "{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
        WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "Default Visible" "Yes"
        WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "ButtonText" "番茄花园"
        WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "Exec" "http://www.tomatolei.com"
        WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "HotIcon" "%windir%\system32\oemlinkicon.ico"
        WriteRegStr HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" "Icon" "%windir%\system32\oemlinkicon.ico"
        WriteRegStr HKCU "Software\Microsoft\Internet Explorer\Main" "Start Page" "http://www.tomatolei.com/"
SectionEnd

SectionGroup /e "主题选择"


Section "Deepinpl" SEC_Deepinpl
  SectionIn 1
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "Deepinpl\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\Deepinpl(蓝色透明主题).lnk" "$WINDIR\Resources\Themes\Deepinpl.theme"

SectionEnd

Section "DzVista" SEC_DzVista
  SectionIn 1
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "DzVista\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\DzVista(Windows Vista主题).lnk" "$WINDIR\Resources\Themes\DzVista.theme"

SectionEnd

Section "DZVista YJC" SEC_DzVistaYJC
  SectionIn 1
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "DZVista YJC\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\DzVista YJC(Windows Vista绿色主题).lnk" "$WINDIR\Resources\Themes\DZVista YJC.theme"

SectionEnd

Section "LE5.1" SEC_LE51
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "LE 5.1\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\LE 5.1(最新LE系列主题).lnk" "$WINDIR\Resources\Themes\LE 5.1.Theme"

SectionEnd

Section "MV" SEC_MV
  SectionIn 1
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "MV\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\MV(Windows Vista银色主题).lnk" "$WINDIR\Resources\Themes\MV.theme"

SectionEnd


Section "VistaLE2.0" SEC_VistaLE
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "Vista LE 2.0\*.*"
  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\VistaLE2.0(Windows Vista LE2.0颜色主题).lnk" "$WINDIR\Resources\Themes\Vista LE 2.0.theme"

SectionEnd

SectionGroupEnd

SectionGroup /e "美化资源"

Section "墙纸桌面" SEC_WALLPAPER
  SectionIn 1 2
  delete "$WINDIR\Web\Wallpaper\*.jpg"
  SetOutPath "$WINDIR\Web"
  SetOverwrite on
  File /r "Wallpaper\*.*"
SectionEnd

Section "屏幕保护" SEC_SCREEN
  SectionIn 1 2
  SetOutPath "$SYSDIR"
  SetOverwrite on
  File /r "system32\*.*"
SectionEnd

Section "用户经典头像" SEC_PIC
Strcpy $R2 $WINDIR 2
  SectionIn 1 2
  delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\*.*"
  SetOutPath "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures"
  SetOverwrite on
  File /r "userpic\*.*"
SectionEnd

Section "登陆界面" SEC_LOGIN
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "Login\*.*"
  WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "UIHost" "$WINDIR\Resources\Themes\Login\logonui-3.1.exe"

SectionEnd

SectionGroupEnd

/* 其他组建*/
Section "-reg" SEC_REG
  SectionIn 1 2

        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Apple Black" "%Windir%\Cursors\Apple Black\Cursor.cur,%Windir%\Cursors\Apple Black\Help.cur,%Windir%\Cursors\Apple Black\Working.ani,%Windir%\Cursors\Apple Black\Busy.ani,%Windir%\Cursors\Apple Black\Cross.cur,%Windir%\Cursors\Apple Black\Beam.cur,%Windir%\Cursors\Apple Black\Pen.cur,%Windir%\Cursors\Apple Black\Unavailable.cur,%Windir%\Cursors\Apple Black\Size Horz.cur,%Windir%\Cursors\Apple Black\Size Vert.cur,%Windir%\Cursors\Apple Black\Resize Right.cur,%Windir%\Cursors\Apple Black\Resize Left.cur,%Windir%\Cursors\Apple Black\Resize All.cur,%Windir%\Cursors\Apple Black\Alternate.cur,%Windir%\Cursors\Apple Black\Hand.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Apple Green" "%Windir%\Cursors\Apple Green\Cursor.cur,%Windir%\Cursors\Apple Green\Help.cur,%Windir%\Cursors\Apple Green\Working.ani,%Windir%\Cursors\Apple Green\Busy.ani,%Windir%\Cursors\Apple Green\Cross.cur,%Windir%\Cursors\Apple Green\Beam.cur,%Windir%\Cursors\Apple Green\Pen.cur,%Windir%\Cursors\Apple Green\Unavailable.cur,%Windir%\Cursors\Apple Green\Size Horz.cur,%Windir%\Cursors\Apple Green\Size Vert.cur,%Windir%\Cursors\Apple Green\Resize Right.cur,%Windir%\Cursors\Apple Green\Resize Left.cur,%Windir%\Cursors\Apple Green\Resize All.cur,%Windir%\Cursors\Apple Green\Alternate.cur,%Windir%\Cursors\Apple Green\Hand.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Apple Red" "%Windir%\Cursors\Apple Red\Cursor.cur,%Windir%\Cursors\Apple Red\Help.cur,%Windir%\Cursors\Apple Red\Working.ani,%Windir%\Cursors\Apple Red\Busy.ani,%Windir%\Cursors\Apple Red\Cross.cur,%Windir%\Cursors\Apple Red\Beam.cur,%Windir%\Cursors\Apple Red\Pen.cur,%Windir%\Cursors\Apple Red\Unavailable.cur,%Windir%\Cursors\Apple Red\Size Horz.cur,%Windir%\Cursors\Apple Red\Size Vert.cur,%Windir%\Cursors\Apple Red\Resize Right.cur,%Windir%\Cursors\Apple Red\Resize Left.cur,%Windir%\Cursors\Apple Red\Resize All.cur,%Windir%\Cursors\Apple Red\Alternate.cur,%Windir%\Cursors\Apple Red\Hand.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Apple Sky-blue" "%Windir%\Cursors\Apple Sky-blue\Cursor.cur,%Windir%\Cursors\Apple Sky-blue\Help.cur,%Windir%\Cursors\Apple Sky-blue\Working.ani,%Windir%\Cursors\Apple Sky-blue\Busy.ani,%Windir%\Cursors\Apple Sky-blue\Cross.cur,%Windir%\Cursors\Apple Sky-blue\Beam.cur,%Windir%\Cursors\Apple Sky-blue\Pen.cur,%Windir%\Cursors\Apple Sky-blue\Unavailable.cur,%Windir%\Cursors\Apple Sky-blue\Size Horz.cur,%Windir%\Cursors\Apple Sky-blue\Size Vert.cur,%Windir%\Cursors\Apple Sky-blue\Resize Right.cur,%Windir%\Cursors\Apple Sky-blue\Resize Left.cur,%Windir%\Cursors\Apple Sky-blue\Resize All.cur,%Windir%\Cursors\Apple Sky-blue\Alternate.cur,%Windir%\Cursors\Apple Sky-blue\Hand.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue A" "%Windir%\Cursors\blue A\Arrow.cur,%Windir%\Cursors\blue A\Help.cur,%Windir%\Cursors\blue A\AppStarting.ani,%Windir%\Cursors\blue A\Wait.ani,%Windir%\Cursors\blue A\Cross.cur,%Windir%\Cursors\blue A\IBeam.cur,%Windir%\Cursors\blue A\Handwriting.cur,%Windir%\Cursors\blue A\NO.cur,%Windir%\Cursors\blue A\SizeNS.cur,%Windir%\Cursors\blue A\SizeWE.cur,%Windir%\Cursors\blue A\SizeNWSE.cur,%Windir%\Cursors\blue A\SizeNESW.cur,%Windir%\Cursors\blue A\SizeAll.cur,%Windir%\Cursors\blue A\UpArrow.cur,%Windir%\Cursors\blue A\Hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue B" "%Windir%\Cursors\blue B\01.cur,%Windir%\Cursors\blue B\02.cur,%Windir%\Cursors\blue B\03.ani,%Windir%\Cursors\blue B\04.ani,%Windir%\Cursors\blue B\05.cur,%Windir%\Cursors\blue B\06.cur,%Windir%\Cursors\blue B\07.ani,%Windir%\Cursors\blue B\08.cur,%Windir%\Cursors\blue B\09.cur,%Windir%\Cursors\blue B\10.cur,%Windir%\Cursors\blue B\11.cur,%Windir%\Cursors\blue B\12.cur,%Windir%\Cursors\blue B\13.cur,%Windir%\Cursors\blue B\14.cur,%Windir%\Cursors\blue B\15.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Color Blue" "%WinDir%\Cursors\Color Blue\ccb_01.cur,%WinDir%\Cursors\Color Blue\ccb_02.ani,%WinDir%\Cursors\Color Blue\ccb_03.ani,%WinDir%\Cursors\Color Blue\ccb_04.ani,%WinDir%\Cursors\Color Blue\ccb_05.cur,%WinDir%\Cursors\Color Blue\ccb_06.ani,%WinDir%\Cursors\Color Blue\ccb_07.cur,%WinDir%\Cursors\Color Blue\ccb_08.cur,%WinDir%\Cursors\Color Blue\ccb_09.ani,%WinDir%\Cursors\Color Blue\ccb_10.ani,%WinDir%\Cursors\Color Blue\ccb_11.ani,%WinDir%\Cursors\Color Blue\ccb_12.ani,%WinDir%\Cursors\Color Blue\ccb_13.cur,%WinDir%\Cursors\Color Blue\ccb_14.cur,%WinDir%\Cursors\Color Blue\ccb_15.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Color Green" "%WinDir%\Cursors\Color Green\ccb_01.cur,%WinDir%\Cursors\Color Green\ccb_02.ani,%WinDir%\Cursors\Color Green\ccb_03.ani,%WinDir%\Cursors\Color Green\ccb_04.ani,%WinDir%\Cursors\Color Green\ccb_05.cur,%WinDir%\Cursors\Color Green\ccb_06.ani,%WinDir%\Cursors\Color Green\ccb_07.cur,%WinDir%\Cursors\Color Green\ccb_08.cur,%WinDir%\Cursors\Color Green\ccb_09.ani,%WinDir%\Cursors\Color Green\ccb_10.ani,%WinDir%\Cursors\Color Green\ccb_11.ani,%WinDir%\Cursors\Color Green\ccb_12.ani,%WinDir%\Cursors\Color Green\ccb_13.cur,%WinDir%\Cursors\Color Green\ccb_14.cur,%WinDir%\Cursors\Color Green\ccb_15.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Color Purple" "%WinDir%\Cursors\Color Purple\ccb_01.cur,%WinDir%\Cursors\Color Purple\ccb_02.ani,%WinDir%\Cursors\Color Purple\ccb_03.ani,%WinDir%\Cursors\Color Purple\ccb_04.ani,%WinDir%\Cursors\Color Purple\ccb_05.cur,%WinDir%\Cursors\Color Purple\ccb_06.ani,%WinDir%\Cursors\Color Purple\ccb_07.cur,%WinDir%\Cursors\Color Purple\ccb_08.cur,%WinDir%\Cursors\Color Purple\ccb_09.ani,%WinDir%\Cursors\Color Purple\ccb_10.ani,%WinDir%\Cursors\Color Purple\ccb_11.ani,%WinDir%\Cursors\Color Purple\ccb_12.ani,%WinDir%\Cursors\Color Purple\ccb_13.cur,%WinDir%\Cursors\Color Purple\ccb_14.cur,%WinDir%\Cursors\Color Purple\ccb_15.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Color Yellow" "%WinDir%\Cursors\Color Yellow\ccb_01.cur,%WinDir%\Cursors\Color Yellow\ccb_02.ani,%WinDir%\Cursors\Color Yellow\ccb_03.ani,%WinDir%\Cursors\Color Yellow\ccb_04.ani,%WinDir%\Cursors\Color Yellow\ccb_05.cur,%WinDir%\Cursors\Color Yellow\ccb_06.ani,%WinDir%\Cursors\Color Yellow\ccb_07.cur,%WinDir%\Cursors\Color Yellow\ccb_08.cur,%WinDir%\Cursors\Color Yellow\ccb_09.ani,%WinDir%\Cursors\Color Yellow\ccb_10.ani,%WinDir%\Cursors\Color Yellow\ccb_11.ani,%WinDir%\Cursors\Color Yellow\ccb_12.ani,%WinDir%\Cursors\Color Yellow\ccb_13.cur,%WinDir%\Cursors\Color Yellow\ccb_14.cur,%WinDir%\Cursors\Color Yellow\ccb_15.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Fighter" "%Windir%\Cursors\Fighter\arrow.ani,%Windir%\Cursors\Fighter\help.cur,%Windir%\Cursors\Fighter\appstarting.ani,%Windir%\Cursors\Fighter\wait.ani,%Windir%\Cursors\Fighter\cross.ani,%Windir%\Cursors\Fighter\ibeam.ani,%Windir%\Cursors\Fighter\handwriting.cur,%Windir%\Cursors\Fighter\no.cur,%Windir%\Cursors\Fighter\sizens.ani,%Windir%\Cursors\Fighter\sizewe.ani,%Windir%\Cursors\Fighter\sizenwse.ani,%Windir%\Cursors\Fighter\sizenesw.ani,%Windir%\Cursors\Fighter\sizeall.ani,%Windir%\Cursors\Fighter\uparrow.cur,%Windir%\Cursors\Fighter\hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Fish A" "%Windir%\Cursors\FishA\arrow.ani,%Windir%\Cursors\FishA\help.cur,%Windir%\Cursors\FishA\appstarting.ani,%Windir%\Cursors\FishA\wait.ani,%Windir%\Cursors\FishA\cross.cur,%Windir%\Cursors\FishA\ibeam.ani,%Windir%\Cursors\FishA\handwriting.cur,%Windir%\Cursors\FishA\no.cur,%Windir%\Cursors\FishA\sizens.ani,%Windir%\Cursors\FishA\sizewe.ani,%Windir%\Cursors\FishA\sizenwse.ani,%Windir%\Cursors\FishA\sizenesw.ani,%Windir%\Cursors\FishA\sizeall.cur,%Windir%\Cursors\FishA\uparrow.cur,%Windir%\Cursors\FishA\hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Fish B" "%Windir%\Cursors\FishB\arrow_down.ani,%Windir%\Cursors\FishB\help.cur,%Windir%\Cursors\FishB\appstarting.ani,%Windir%\Cursors\FishB\wait.ani,%Windir%\Cursors\FishB\cross.cur,%Windir%\Cursors\FishB\ibeam.ani,%Windir%\Cursors\FishB\handwriting.cur,%Windir%\Cursors\FishB\no.cur,%Windir%\Cursors\FishB\sizens_down.cur,%Windir%\Cursors\FishB\sizewe_down.cur,%Windir%\Cursors\FishB\sizenwse_down.cur,%Windir%\Cursors\FishB\sizenesw_down.cur,%Windir%\Cursors\FishB\sizeall.cur,%Windir%\Cursors\FishB\uparrow.cur,%Windir%\Cursors\FishB\hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "GreenHiColor" "%Windir%\Cursors\GreenHiColor\Arrow.cur,%Windir%\Cursors\GreenHiColor\Help.cur,%Windir%\Cursors\GreenHiColor\AppStarting.ani,%Windir%\Cursors\GreenHiColor\Wait.cur,%Windir%\Cursors\GreenHiColor\Cross.cur,%Windir%\Cursors\GreenHiColor\IBeam.cur,%Windir%\Cursors\GreenHiColor\Handwriting.cur,%Windir%\Cursors\GreenHiColor\No.cur,%Windir%\Cursors\GreenHiColor\SizeNS.cur,%Windir%\Cursors\GreenHiColor\SizeWE.cur,%Windir%\Cursors\GreenHiColor\SizeNWSE.cur,%Windir%\Cursors\GreenHiColor\SizeNESW.cur,%Windir%\Cursors\GreenHiColor\SizeAll.cur,%Windir%\Cursors\GreenHiColor\UpArrow.cur,%Windir%\Cursors\GreenHiColor\Hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Blue" "%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 2nd Blue.ani,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Work Blue.ani,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Blue\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Green" "%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Arrow.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Help.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 2nd Green.ani,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Work Green.ani,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Cross.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Beam.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Pen.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Unavail.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 NS.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 EW.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 NWSE.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 NESW.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Move.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Up.cur,%WinDir%\Cursors\HighSpins V2 Green\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Orange" "%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 2nd Orange.ani,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Work Orange.ani,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Orange\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Original" "%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 2nd.ani,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Work.ani,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Original\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Pink" "%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 2nd Pink.ani,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Work Pink.ani,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Pink\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Purple" "%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 2nd Purple.ani,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Work Purple.ani,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Purple\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Red" "%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Arrow.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Help.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 2nd Red.ani,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Work Red.ani,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Cross.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Beam.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Pen.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Unavail.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 NS.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 EW.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 NWSE.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 NESW.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Move.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Up.cur,%Windir%\Cursors\HighSpins V2 Red\HighSpin2 Link.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "MacOSX" "%Windir%\Cursors\MacOSX\Cursor.cur,%Windir%\Cursors\MacOSX\Help.cur,%Windir%\Cursors\MacOSX\Working.ani,%Windir%\Cursors\MacOSX\Busy.ani,%Windir%\Cursors\MacOSX\Cross.cur,%Windir%\Cursors\MacOSX\Beam.cur,%Windir%\Cursors\MacOSX\Pen.cur,%Windir%\Cursors\MacOSX\Unavailable.cur,%Windir%\Cursors\MacOSX\Size Horz.cur,%Windir%\Cursors\MacOSX\Size Vert.cur,%Windir%\Cursors\MacOSX\Resize Right.cur,%Windir%\Cursors\MacOSX\Resize Left.cur,%Windir%\Cursors\MacOSX\Resize All.cur,%Windir%\Cursors\MacOSX\Alternate.cur,%Windir%\Cursors\MacOSX\Hand.cur"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "SilverTheme" "%WinDir%\Cursors\SilverTheme\Arrow.cur,%WinDir%\Cursors\SilverTheme\Help.ani,%WinDir%\Cursors\SilverTheme\AppStarting.ani,%WinDir%\Cursors\SilverTheme\Wait.ani,%WinDir%\Cursors\SilverTheme\Cross.cur,%WinDir%\Cursors\SilverTheme\IBeam.cur,%WinDir%\Cursors\SilverTheme\Handwriting.cur,%WinDir%\Cursors\SilverTheme\NO.cur,%WinDir%\Cursors\SilverTheme\SizeNS.cur,%WinDir%\Cursors\SilverTheme\SizeWE.cur,%WinDir%\Cursors\SilverTheme\SizeNWSE.cur,%WinDir%\Cursors\SilverTheme\SizeNESW.cur,%WinDir%\Cursors\SilverTheme\SizeAll.cur,%WinDir%\Cursors\SilverTheme\UpArrow.cur,%WinDir%\Cursors\SilverTheme\Hand.ani"
        WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Vista 5456" "%Windir%\Cursors\Vista 5456\aero_arrow.cur,%Windir%\Cursors\Vista 5456\aero_helpsel.cur,%Windir%\Cursors\Vista 5456\aero_working.ani,%Windir%\Cursors\Vista 5456\aero_busy.ani,%Windir%\Cursors\Vista 5456\aero_cross.cur,%Windir%\Cursors\Vista 5456\aero_beam.cur,%Windir%\Cursors\Vista 5456\aero_pen.cur,%Windir%\Cursors\Vista 5456\aero_unavail.cur,%Windir%\Cursors\Vista 5456\aero_ns.cur,%Windir%\Cursors\Vista 5456\aero_ew.cur,%Windir%\Cursors\Vista 5456\aero_nwse.cur,%Windir%\Cursors\Vista 5456\aero_nesw.cur,%Windir%\Cursors\Vista 5456\aero_move.cur,%Windir%\Cursors\Vista 5456\aero_up.cur,%Windir%\Cursors\Vista 5456\aero_link.cur"


SectionEnd

Section "-Cursors" SEC_CUR
  SectionIn 1 2
  SetOutPath "$WINDIR"
  SetOverwrite on
  File /r "Cursors\*.*"
SectionEnd

Section "-Sounds" SEC_SOUND
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "Sounds\*.*"
SectionEnd


Section "-OTHER" SEC_OTHER
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "OTHER\*.*"
SectionEnd

Section "-ICO" SEC_ICO
  SectionIn 1 2
  SetOutPath "$WINDIR\Resources\Themes"
  SetOverwrite on
  File /r "ICO\*.*"
SectionEnd

/* 其他组建*/

SectionGroup  "番茄增强工具"

Section "番茄吧" SEC_TomatoBar
  SectionIn 1 2
  SetOutPath "$SYSDIR"
  SetOverwrite on
  File /r "Tomato\*.*"
  execwait "$SYSDIR\TomatoBar.exe /S"
  delete /rebootok "$SYSDIR\TomatoBar.exe"
SectionEnd

;Section "番茄藤" SEC_TomatoTeng
;  SectionIn 1 2
;  SetOutPath "$SYSDIR"
;  SetOverwrite on
;  File /r "Tomato\*.*"
;  execwait "$SYSDIR\TomatoTeng.exe /S"
;  delete /rebootok "$SYSDIR\TomatoTeng.exe"
;SectionEnd


SectionGroupEnd


Section -AdditionalIcons
  SetOutPath "$WINDIR\Resources\Themes"
  WriteIniStr "$WINDIR\Resources\Themes\番茄花园.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"

  CreateDirectory "$SMPROGRAMS\番茄花园StyleXP主题"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\番茄花园.lnk" "$WINDIR\Resources\Themes\番茄花园.url"
  CreateShortCut "$SMPROGRAMS\番茄花园StyleXP主题\卸载番茄花园主题包.lnk" "$WINDIR\Resources\Themes\uninst.exe"
SectionEnd

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}" "DisplayIcon" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
SectionEnd

#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
/*区段组件描述*/
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_OEM} "番茄花园 OEM 技术信息!"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_Deepinpl} "Deepinpl(蓝色透明主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_DzVista} "DzVista(Windows Vista主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_DzVistaYJC} "DzVista YJC(Windows Vista绿色主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LE51} "LE 5.1(最新LE系列主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MV} "MV(Windows Vista银色主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_VistaLE} "VistaLE2.0(Windows Vista LE2.0颜色主题)"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_WALLPAPER} "为你添加精美的桌面和墙纸"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_SCREEN} "为你添加几款屏幕保护程序"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_PIC} "N个经典的用户帐户可选头像"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_LOGIN} "好看的Windows登陆界面"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_TomatoBar} "轻松实现功能定制,为您免费提供病毒查杀、IE保护等服务,消除上网时的安全隐患;同时您还可以通过番茄吧方便的搜索网页、mp3、图片和新闻。"
;  !insertmacro MUI_DESCRIPTION_TEXT ${SEC_TomatoTeng} "番茄藤是番茄花园开发的番茄花园更新辅助程序,方便以后番茄系统遇到漏洞问题,可以及时采取更新提示,并且可以提供番茄主题资源,番茄软件更新等等之类的更新!"
!insertmacro MUI_FUNCTION_DESCRIPTION_END

Function .onInit

;  IfFileExists $SYSDIR\Tversion.ini 0 +2
  ;MessageBox MB_OK "是番茄"
;  goto +3
;  MessageBox MB_OK "所用的系统不是番茄花园系统,所以不能安装!"
;  Abort "不能安装"

  InitPluginsDir
  File "/oname=$PLUGINSDIR\Splash_on.bmp" "on.bmp"
  ;File "/oname=$PLUGINSDIR\Splash_Tsoft.wav" "..\..\..\..\软件系列\CalSprite\Res\Sounds\Mac.wav"
  ; 使用闪屏插件显示闪屏
  advsplash::show 3000 800 800 -1 "$PLUGINSDIR\Splash_on"
  Pop $0 ; $0 返回 '1' 表示用户提前关闭闪屏, 返回 '0' 表示闪屏正常结束, 返回 '-1' 表示闪屏显示出错
FunctionEnd

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

Section Uninstall

  WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" "UIHost" '"logonui.exe"'

  Delete "$WINDIR\Resources\Themes\${PRODUCT_NAME}.url"
  Delete "$WINDIR\Resources\Themes\uninst.exe"

  Delete "$SMPROGRAMS\番茄花园StyleXP主题\卸载番茄花园主题包.lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\番茄花园.lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\DzVista(Windows Vista主题).lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\DzVista YJC(Windows Vista绿色主题).lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\LE 5.1(最新LE系列主题).lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\MV(Windows Vista银色主题).lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\VistaLE2.0(Windows Vista LE2.0颜色主题).lnk"
  Delete "$SMPROGRAMS\番茄花园StyleXP主题\Deepinpl(蓝色透明主题).lnk"

  RMDir /r "$SMPROGRAMS\番茄花园StyleXP主题"
  
  Strcpy $R2 $WINDIR 2
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\01.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\02.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\03.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\04.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\05.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\06.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\07.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\08.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\09.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\10.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\11.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\12.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\13.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\14.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\15.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\16.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\17.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\18.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\19.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\20.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\21.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\22.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\23.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\24.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\25.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\26.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\27.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\28.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\17.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\18.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\19.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\20.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\21.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\22.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\23.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\24.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\25.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\26.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\27.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\28.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\29.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\30.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\31.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\32.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\33.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\34.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\35.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\36.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\37.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\38.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\39.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\40.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\41.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\42.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\43.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\44.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\45.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\46.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\47.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\48.png"
  Delete "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\49.png"

/*桌面*/

  Delete "$WINDIR\web\Wallpaper\01.jpg"
  Delete "$WINDIR\web\Wallpaper\02.jpg"
  Delete "$WINDIR\web\Wallpaper\03.jpg"
  Delete "$WINDIR\web\Wallpaper\04.jpg"
  Delete "$WINDIR\web\Wallpaper\05.jpg"
  Delete "$WINDIR\web\Wallpaper\06.jpg"
  Delete "$WINDIR\web\Wallpaper\07.jpg"
  Delete "$WINDIR\web\Wallpaper\08.jpg"
  Delete "$WINDIR\web\Wallpaper\09.jpg"
  Delete "$WINDIR\web\Wallpaper\10.jpg"
  Delete "$WINDIR\web\Wallpaper\11.jpg"
  Delete "$WINDIR\web\Wallpaper\12.jpg"
  Delete "$WINDIR\web\Wallpaper\13.jpg"
  Delete "$WINDIR\web\Wallpaper\14.jpg"
  Delete "$WINDIR\web\Wallpaper\15.jpg"
  Delete "$WINDIR\web\Wallpaper\16.jpg"
  Delete "$WINDIR\web\Wallpaper\17.jpg"
  Delete "$WINDIR\web\Wallpaper\18.jpg"
  Delete "$WINDIR\web\Wallpaper\19.jpg"
  Delete "$WINDIR\web\Wallpaper\20.jpg"
  Delete "$WINDIR\web\Wallpaper\21.jpg"
  Delete "$WINDIR\web\Wallpaper\22.jpg"
  Delete "$WINDIR\web\Wallpaper\23.jpg"
  Delete "$WINDIR\web\Wallpaper\24.jpg"
  Delete "$WINDIR\web\Wallpaper\25.jpg"
  Delete "$WINDIR\web\Wallpaper\26.jpg"
  Delete "$WINDIR\web\Wallpaper\27.jpg"
  Delete "$WINDIR\web\Wallpaper\28.jpg"
  Delete "$WINDIR\web\Wallpaper\29.jpg"
  Delete "$WINDIR\web\Wallpaper\30.jpg"
  Delete "$WINDIR\web\Wallpaper\31.jpg"
  Delete "$WINDIR\web\Wallpaper\32.jpg"
  Delete "$WINDIR\web\Wallpaper\33.jpg"
  Delete "$WINDIR\web\Wallpaper\34.jpg"
  Delete "$WINDIR\web\Wallpaper\35.jpg"
  Delete "$WINDIR\web\Wallpaper\36.jpg"
  Delete "$WINDIR\web\Wallpaper\37.jpg"
  Delete "$WINDIR\web\Wallpaper\38.jpg"
  Delete "$WINDIR\web\Wallpaper\39.jpg"
  Delete "$WINDIR\web\Wallpaper\40.jpg"

  RMDir /r "$WINDIR\Resources\Themes\Deepinpl"
  RMDir /r "$WINDIR\Resources\Themes\DzVista"
  RMDir /r "$WINDIR\Resources\Themes\DZVista YJC"
  RMDir /r "$WINDIR\Resources\Themes\LE 5.1"
  RMDir /r "$WINDIR\Resources\Themes\MV"
  RMDir /r "$WINDIR\Resources\Themes\Vista LE 2.0"
  RMDir /r "$WINDIR\Resources\Themes\Sounds"
  RMDir /r "$WINDIR\Resources\Themes\ICO"
  RMDir /r "$WINDIR\Resources\Themes\Login"
  RMDir /r "$WINDIR\Cursors\Apple Black"
  RMDir /r "$WINDIR\Cursors\Apple Green"
  RMDir /r "$WINDIR\Cursors\Apple Red"
  RMDir /r "$WINDIR\Cursors\Apple Sky-blue"
  RMDir /r "$WINDIR\Cursors\blue A"
  RMDir /r "$WINDIR\Cursors\blue B"
  RMDir /r "$WINDIR\Cursors\Color Blue"
  RMDir /r "$WINDIR\Cursors\Color Green"
  RMDir /r "$WINDIR\Cursors\Color Purple"
  RMDir /r "$WINDIR\Cursors\Color Yellow"
  RMDir /r "$WINDIR\Cursors\Fighter"
  RMDir /r "$WINDIR\Cursors\FishA"
  RMDir /r "$WINDIR\Cursors\FishB"
  RMDir /r "$WINDIR\Cursors\GreenHiColor"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Blue"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Green"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Orange"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Original"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Pink"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Purple"
  RMDir /r "$WINDIR\Cursors\HighSpins V2 Red"
  RMDir /r "$WINDIR\Cursors\MacOSX"
  RMDir /r "$WINDIR\Cursors\SilverTheme"
  RMDir /r "$WINDIR\Cursors\Vista"
  RMDir /r "$WINDIR\Cursors\Vista 5456"
  
  Delete "$WINDIR\Resources\Themes\Deepinpl.theme"
  Delete "$WINDIR\Resources\Themes\DzVista.theme"
  Delete "$WINDIR\Resources\Themes\DZVista YJC.theme"
  Delete "$WINDIR\Resources\Themes\LE 5.1.Theme"
  Delete "$WINDIR\Resources\Themes\MV.theme"
  Delete "$WINDIR\Resources\Themes\Vista LE 2.0.theme"


  Delete "$SYSDIR\aurora.scr"
  Delete "$SYSDIR\Flurry.scr"
  Delete "$SYSDIR\Kaleido.scr"
  Delete "$SYSDIR\Time.scr"

  
  Delete "$WINDIR\Resources\Themes\Readme.txt"
  Delete "$WINDIR\Resources\Themes\eula.txt"
  Delete "$WINDIR\Resources\Themes\番茄花园.url"

  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  
    DeleteRegKey HKLM "SOFTWARE\Microsoft\Internet Explorer\Extensions\{6096E38F-5AC1-4391-8EC4-75DFA92FB32F}" 
        WriteRegStr HKCU "Software\Microsoft\Internet Explorer\Main" "Start Page" "about:blank"

        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Apple Black"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Apple Green"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Apple Red"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Apple Sky-blue"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "blue A"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "blue B"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Color Blue"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Color Green"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Color Purple"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Color Yellow"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Fighter"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Fish A"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Fish B"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "GreenHiColor"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Blue"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Green"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Orange"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Original"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Pink"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Purple"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "HighSpins V2 Red"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "MacOSX"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "MacOSX"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "SilverTheme"
        DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Vista 5456"
        
        
        
  SetAutoClose true
  
SectionEnd

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

Function un.onInit
  MessageBox MB_OK "在删除之前,先请换回XP经典主题!"
  ExecShell "open" "$WINDIR\Resources\Themes\Luna.theme"
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你确实要完全移除 $(^Name) ,及其所有的组件?" IDYES +2
  Abort
FunctionEnd

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