杉宫竹苑工作室

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

猪猪番薯主题包1.3

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

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

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

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

  2. !include "LogicLib.nsh"

  3. ; 安装程序初始定义常量
  4. !define PRODUCT_NAME "猪猪番薯主题包"
  5. !define PRODUCT_VERSION "1.3"
  6. !define PRODUCT_PUBLISHER "猪猪番薯论坛"
  7. !define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
  8. !define PRODUCT_UNINST_ROOT_KEY "HKLM"

  9. SetCompressor /final /SOLID lzma
  10. BrandingText "猪猪番薯论坛 http://www.ppfans.net"


  11. ; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
  12. !include "MUI.nsh"

  13. ; MUI 预定义常量
  14. !define MUI_ABORTWARNING
  15. !define MUI_COMPONENTSPAGE_SMALLDESC
  16. !define MUI_ICON "ppfans.ico"
  17. !define MUI_UNICON "un.ico"
  18. !define MUI_WELCOMEFINISHPAGE_BITMAP "1.bmp"  ;左边
  19. !define MUI_HEADERIMAGE
  20. !define MUI_HEADERIMAGE_BITMAP "2.bmp"
  21. !define MUI_HEADERIMAGE_UNBITMAP "2.bmp"
  22. ;!define MUI_HEADERIMAGE_LEFT
  23. !define MUI_HEADERIMAGE_RIGHT

  24. ; 欢迎页面
  25. !insertmacro MUI_PAGE_WELCOME
  26. ; 许可协议页面
  27. !define MUI_LICENSEPAGE_CHECKBOX
  28. !insertmacro MUI_PAGE_LICENSE "License.txt"
  29. ; 组件选择页面
  30. !insertmacro MUI_PAGE_COMPONENTS
  31. ; 安装过程页面
  32. !insertmacro MUI_PAGE_INSTFILES
  33. ; 安装完成页面
  34. !define MUI_FINISHPAGE_SHOWREADME "$WINDIR\Resources\Themes\README.TXT"
  35. !define MUI_FINISHPAGE_LINK_LOCATION "http://www.ppfans.net"
  36. !define MUI_FINISHPAGE_LINK "访问 猪猪番薯论坛"
  37. !insertmacro MUI_PAGE_FINISH

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

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

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

  45. Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
  46. OutFile "style v1.3.exe"
  47. InstallDir "$WINDIR\Resources\Themes"
  48. ShowInstDetails show
  49. ShowUnInstDetails show

  50. ; 激活安装日志记录,该日志文件将会作为卸载文件的依据(注意,本区段必须放置在所有区段之前)

  51. Section "猪猪番薯OEM信息" SEC00
  52.   SetOutPath "$WINDIR\system32"
  53.   SetOverwrite on
  54.   File "OEMINFO.INI"
  55.   File "OEMLOGO.BMP"
  56.   File "ppfans.ico"

  57.           WriteRegStr HKCR "CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}" "" "猪猪番薯"
  58.         WriteRegStr HKCR "CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}" "InfoTip" "系统信息"
  59.         WriteRegStr HKCR "CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\DefaultIcon" "" "ppfans.ico"
  60.         WriteRegStr HKCR "CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag" "Command" "猪猪番薯XP系列"
  61.         WriteRegStr HKCR "CLSID\{2559a1f6-21d7-11d4-bdaf-00c04f60b9f0}\Instance\InitPropertyBag" "Param1" "sysdm.cpl"
  62.         WriteRegDWORD HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartMenu\StartPanel\ShowOEMLink" "NoOEMLinkInstalled" 0x00000000
  63.         WriteRegStr HKCU "Software\Microsoft\Internet Explorer\Main" "Start Page" "http://www.ppfans.net/"
  64. SectionEnd

  65.   Section "LE4_Blue" SEC01
  66.   SetOutPath "$WINDIR\Resources\Themes\LE4"
  67.   SetOverwrite on
  68.   File /r "2003\LE4\*.*"
  69.   SetOutPath "$WINDIR\Cursors\blue_a"
  70.   SetOverwrite on
  71.   File /r "2003\Cursors\blue_a\*.*"
  72.   SetOutPath "$WINDIR\Media\幻想空间"
  73.   SetOverwrite on
  74.   File /r "2003\Media\幻想空间\*.*"
  75.   SetOutPath "$WINDIR\Resources\Themes"
  76.   SetOverwrite on
  77.   File "2003\LE4_Blue.theme"
  78.   SetOutPath "$WINDIR\system32"
  79.   File "2003\Screensaver\Aurora.scr"
  80.   SetOutPath "$WINDIR\web\Wallpaper"
  81.   SetOverwrite on
  82.   File "2003\主题Wallpapers\LE4_Blue.jpg"
  83. SetOutPath "$WINDIR\Resources\Themes\icons\ico1"
  84.     SetOverwrite on
  85.   File "2003\icons\ico1\ico.icl"
  86. WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"

  87. SectionEnd
  88.   Section "LE4_Black" SEC02
  89.   SetOutPath "$WINDIR\Resources\Themes\LE4"
  90.   SetOverwrite on
  91.   File /r "2003\LE4\*.*"
  92.   SetOutPath "$WINDIR\Cursors\blue_a"
  93.   SetOverwrite on
  94.   File /r "2003\Cursors\blue_a\*.*"
  95.   SetOutPath "$WINDIR\Media\幻想空间"
  96.   SetOverwrite on
  97.   File /r "2003\Media\幻想空间\*.*"
  98.   SetOutPath "$WINDIR\Resources\Themes"
  99.   SetOverwrite on
  100.   File "2003\LE4_Black.theme"
  101.   SetOutPath "$WINDIR\system32"
  102.   SetOverwrite on
  103.   File "2003\Screensaver\Aurora.scr"
  104.   SetOutPath "$WINDIR\web\Wallpaper"
  105.   SetOverwrite on
  106.   File "2003\主题Wallpapers\LE4_Black.jpg"
  107.    SetOutPath "$WINDIR\Resources\Themes\icons\ico1"
  108.     SetOverwrite on
  109.   File "2003\icons\ico1\ico.icl"
  110.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"
  111. SectionEnd

  112. Section "Longhorn_Black" SEC03
  113.   SetOutPath "$WINDIR\Resources\Themes\Longhorn"
  114.   SetOverwrite on
  115.   File /r "2003\Longhorn\*.*"
  116.   SetOutPath "$WINDIR\Cursors\blue_a"
  117.   SetOverwrite on
  118.   File /r "2003\Cursors\blue_a\*.*"
  119.   SetOutPath "$WINDIR\Media\幻想空间"
  120.   SetOverwrite on
  121.   File /r "2003\Media\幻想空间\*.*"
  122.   SetOutPath "$WINDIR\Resources\Themes"
  123.   SetOverwrite on
  124.   File "2003\Longhorn_Black.theme"
  125.   SetOutPath "$WINDIR\system32"
  126.   SetOverwrite on
  127.   File "2003\Screensaver\Aurora.scr"
  128.   SetOutPath "$WINDIR\web\Wallpaper"
  129.   SetOverwrite on
  130.   File "2003\主题Wallpapers\Longhorn_Black.jpg"
  131.     SetOutPath "$WINDIR\Resources\Themes\icons\ico2"
  132.     SetOverwrite on
  133.   File /r "2003\icons\ico2\*.*"
  134.   
  135.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"

  136. SectionEnd

  137. Section "Longhorn_Silver" SEC04
  138.   SetOutPath "$WINDIR\Resources\Themes\Longhorn"
  139.   SetOverwrite on
  140.   File /r "2003\Longhorn\*.*"
  141.   SetOutPath "$WINDIR\Cursors\blue_a"
  142.   SetOverwrite on
  143.   File /r "2003\Cursors\blue_a\*.*"
  144.   SetOutPath "$WINDIR\Media\幻想空间"
  145.   SetOverwrite on
  146.   File /r "2003\Media\幻想空间\*.*"
  147.   SetOutPath "$WINDIR\Resources\Themes"
  148.   SetOverwrite on
  149.   File "2003\Longhorn_Silver.theme"
  150.   SetOutPath "$WINDIR\system32"
  151.   SetOverwrite on
  152.   File "2003\Screensaver\Aurora.scr"
  153.   SetOutPath "$WINDIR\web\Wallpaper"
  154.   SetOverwrite on
  155.   File "2003\主题Wallpapers\Longhorn_Silver.jpg"
  156.   SetOutPath "$WINDIR\Resources\Themes\icons\ico2"
  157.   SetOverwrite on
  158.   File /r "2003\icons\ico2\*.*"
  159.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"

  160. SectionEnd


  161. Section "Vista" SEC05
  162.   SetOutPath "$WINDIR\Resources\Themes\Vista"
  163.   SetOverwrite on
  164.   File /r "2003\Vista\*.*"
  165.   SetOutPath "$WINDIR\Cursors\Vista 5456"
  166.   SetOverwrite on
  167.   File /r "2003\Cursors\Vista 5456\*.*"
  168.   SetOutPath "$WINDIR\Media\幻想空间"
  169.   File /r "2003\Media\幻想空间\*.*"
  170.   SetOutPath "$WINDIR\Resources\Themes"
  171.   SetOverwrite on
  172.   File "2003\Vista.theme"
  173.   SetOutPath "$WINDIR\system32"
  174.   SetOverwrite on
  175.   File "2003\Screensaver\Aurora.scr"
  176.   SetOutPath "$WINDIR\web\Wallpaper"
  177.   SetOverwrite on
  178.   File "2003\主题Wallpapers\Vista.jpg"
  179.     SetOutPath "$WINDIR\Resources\Themes\icons\ico4"
  180.     SetOverwrite on
  181.   File /r "2003\icons\ico4\*.*"
  182.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Vista 5456" "%Windir%\Cursors\Vista 5456\Arrow.ani,%Windir%\Cursors\Vista 5456\Help.ani,%Windir%\Cursors\Vista 5456\AppStarting.ani,%Windir%\Cursors\Vista 5456\Wait.ani,%Windir%\Cursors\Vista 5456\Cross.ani,%Windir%\Cursors\Vista 5456\IBeam.ani,%Windir%\Cursors\Vista 5456\Handwriting.ani,%Windir%\Cursors\Vista 5456\NO.ani,%Windir%\Cursors\Vista 5456\SizeNS.ani,%Windir%\Cursors\Vista 5456\SizeWE.ani,%Windir%\Cursors\Vista 5456\SizeNWSE.ani,%Windir%\Cursors\Vista 5456\SizeNESW.ani,%Windir%\Cursors\Vista 5456\SizeAll.ani,%Windir%\Cursors\Vista 5456\UpArrow.ani,%Windir%\Cursors\Vista 5456\Hand.ani"

  183. SectionEnd

  184. Section "VistaXP" SEC06

  185.   SetOutPath "$WINDIR\Resources\Themes\VistaXP1"
  186.   SetOverwrite on
  187.   File /r "2003\VistaXP\*.*"
  188.   SetOutPath "$WINDIR\Cursors\Vista 5456"
  189.   SetOverwrite on
  190.   File /r "2003\Cursors\Vista 5456\*.*"
  191.   SetOutPath "$WINDIR\Media\幻想空间"
  192.   SetOverwrite on
  193.   File /r "2003\Media\幻想空间\*.*"
  194.   SetOutPath "$WINDIR\Resources\Themes"
  195.   SetOverwrite on
  196.   File "2003\VistaXP.theme"
  197.   SetOutPath "$WINDIR\system32"
  198.   SetOverwrite on
  199.   File "2003\Screensaver\Aurora.scr"
  200.   SetOutPath "$WINDIR\web\Wallpaper"
  201.   SetOverwrite on
  202.   File "2003\主题Wallpapers\VistaXP.jpg"
  203.     SetOutPath "$WINDIR\Resources\Themes\icons\ico4"
  204.     SetOverwrite on
  205.   File /r "2003\icons\ico4\*.*"
  206.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Vista 5456" "%Windir%\Cursors\Vista 5456\Arrow.ani,%Windir%\Cursors\Vista 5456\Help.ani,%Windir%\Cursors\Vista 5456\AppStarting.ani,%Windir%\Cursors\Vista 5456\Wait.ani,%Windir%\Cursors\Vista 5456\Cross.ani,%Windir%\Cursors\Vista 5456\IBeam.ani,%Windir%\Cursors\Vista 5456\Handwriting.ani,%Windir%\Cursors\Vista 5456\NO.ani,%Windir%\Cursors\Vista 5456\SizeNS.ani,%Windir%\Cursors\Vista 5456\SizeWE.ani,%Windir%\Cursors\Vista 5456\SizeNWSE.ani,%Windir%\Cursors\Vista 5456\SizeNESW.ani,%Windir%\Cursors\Vista 5456\SizeAll.ani,%Windir%\Cursors\Vista 5456\UpArrow.ani,%Windir%\Cursors\Vista 5456\Hand.ani"

  207. SectionEnd

  208. Section "VistaCG" SEC07
  209.   SetOutPath "$WINDIR\Resources\Themes\VistaCG"
  210.   SetOverwrite on
  211.   File /r "2003\VistaCG\*.*"
  212.   SetOutPath "$WINDIR\Cursors\Vista 5456"
  213.   SetOverwrite on
  214.   File /r "2003\Cursors\Vista 5456\*.*"
  215.   SetOutPath "$WINDIR\Media\幻想空间"
  216.   SetOverwrite on
  217.   File /r "2003\Media\幻想空间\*.*"
  218.   SetOutPath "$WINDIR\Resources\Themes"
  219.   File "2003\VistaCG.theme"
  220.   SetOutPath "$WINDIR\system32"
  221.   SetOverwrite on
  222.   File "2003\Screensaver\Aurora.scr"
  223.   SetOutPath "$WINDIR\web\Wallpaper"
  224.   SetOverwrite on
  225.   File "2003\主题Wallpapers\VistaCG.jpg"
  226.     SetOutPath "$WINDIR\Resources\Themes\icons\ico4"
  227.     SetOverwrite on
  228.   File /r "2003\icons\ico4\*.*"
  229.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Vista 5456" "%Windir%\Cursors\Vista 5456\Arrow.ani,%Windir%\Cursors\Vista 5456\Help.ani,%Windir%\Cursors\Vista 5456\AppStarting.ani,%Windir%\Cursors\Vista 5456\Wait.ani,%Windir%\Cursors\Vista 5456\Cross.ani,%Windir%\Cursors\Vista 5456\IBeam.ani,%Windir%\Cursors\Vista 5456\Handwriting.ani,%Windir%\Cursors\Vista 5456\NO.ani,%Windir%\Cursors\Vista 5456\SizeNS.ani,%Windir%\Cursors\Vista 5456\SizeWE.ani,%Windir%\Cursors\Vista 5456\SizeNWSE.ani,%Windir%\Cursors\Vista 5456\SizeNESW.ani,%Windir%\Cursors\Vista 5456\SizeAll.ani,%Windir%\Cursors\Vista 5456\UpArrow.ani,%Windir%\Cursors\Vista 5456\Hand.ani"

  230. SectionEnd


  231. Section "Inspiat" SEC08
  232.   SetOutPath "$WINDIR\Resources\Themes\Inspiat"
  233.   SetOverwrite on
  234.   File /r "2003\Inspiat\*.*"
  235.   SetOutPath "$WINDIR\Cursors\blue_a"
  236.   SetOverwrite on
  237.   File /r "2003\Cursors\blue_a\*.*"
  238.   SetOutPath "$WINDIR\Media\幻想空间"
  239.   SetOverwrite on
  240.   File /r "2003\Media\幻想空间\*.*"
  241.   SetOutPath "$WINDIR\Resources\Themes"
  242.   SetOverwrite on
  243.   File "2003\Inspiat.theme"
  244.   SetOutPath "$WINDIR\system32"
  245.   SetOverwrite on
  246.   File "2003\Screensaver\Aurora.scr"
  247.   SetOutPath "$WINDIR\web\Wallpaper"
  248.   SetOverwrite on
  249.   File "2003\主题Wallpapers\Inspiat.jpg"
  250.    SetOutPath "$WINDIR\Resources\Themes\icons\ico1"
  251.     SetOverwrite on
  252.   File "2003\icons\ico1\ico.icl"
  253.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"
  254. SectionEnd

  255. Section "MSN" SEC09
  256.   SetOutPath "$WINDIR\Resources\Themes\MSN"
  257.   SetOverwrite on
  258.   File /r "2003\MSN\*.*"
  259.   SetOutPath "$WINDIR\Cursors\blue_a"
  260.   SetOverwrite on
  261.   File /r "2003\Cursors\blue_a\*.*"
  262.   SetOutPath "$WINDIR\Media\幻想空间"
  263.   SetOverwrite on
  264.   File /r "2003\Media\幻想空间\*.*"
  265.   SetOutPath "$WINDIR\Resources\Themes"
  266.   SetOverwrite on
  267.   File "2003\MSN.theme"
  268.   SetOutPath "$WINDIR\system32"
  269.   SetOverwrite on
  270.   File "2003\Screensaver\Aurora.scr"
  271.   SetOutPath "$WINDIR\web\Wallpaper"
  272.   SetOverwrite on
  273.   File "2003\主题Wallpapers\MSN.jpg"
  274.    SetOutPath "$WINDIR\Resources\Themes\icons\ico1"
  275.     SetOverwrite on
  276.   File "2003\icons\ico1\ico.icl"
  277.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"

  278. SectionEnd

  279. Section "PixOS" SEC10
  280.   SetOutPath "$WINDIR\Resources\Themes\PixOS"
  281.   SetOverwrite on
  282.   File /r "2003\PixOS\*.*"
  283.   SetOutPath "$WINDIR\Cursors\PixOS"
  284.   SetOverwrite on
  285.   File /r "2003\Cursors\PixOS\*.*"
  286.   SetOutPath "$WINDIR\Media\幻想空间"
  287.   SetOverwrite on
  288.   File /r "2003\Media\幻想空间\*.*"
  289.   SetOutPath "$WINDIR\Resources\Themes"
  290.   SetOverwrite on
  291.   File "2003\PixOS.theme"
  292.   SetOutPath "$WINDIR\system32"
  293.   SetOverwrite on
  294.   File "2003\Screensaver\Aurora.scr"
  295.   SetOutPath "$WINDIR\web\Wallpaper"
  296.   SetOverwrite on
  297.   File "2003\主题Wallpapers\PixOS.jpg"
  298.   SetOutPath "$WINDIR\Resources\Themes\icons\ico6"
  299.   SetOverwrite on
  300.   File /r "2003\icons\ico6\*.*"
  301.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "PixOS" "%Windir%\Cursors\PixOS\Arrow.ani,%Windir%\Cursors\PixOS\Help.ani,%Windir%\Cursors\PixOS\AppStarting.ani,%Windir%\Cursors\PixOS\Wait.ani,%Windir%\Cursors\PixOS\Cross.ani,%Windir%\Cursors\PixOS\IBeam.ani,%Windir%\Cursors\PixOS\Handwriting.ani,%Windir%\Cursors\PixOS\NO.ani,%Windir%\Cursors\PixOS\SizeNS.ani,%Windir%\Cursors\PixOS\SizeWE.ani,%Windir%\Cursors\PixOS\SizeNWSE.ani,%Windir%\Cursors\PixOS\SizeNESW.ani,%Windir%\Cursors\PixOS\SizeAll.ani,%Windir%\Cursors\PixOS\UpArrow.ani,%Windir%\Cursors\PixOS\Hand.ani"

  302. SectionEnd

  303. Section "Royale" SEC11
  304.   SetOutPath "$WINDIR\Resources\Themes\Royale"
  305.   SetOverwrite on
  306.   File /r "2003\Royale\*.*"
  307.   SetOutPath "$WINDIR\Cursors\blue_a"
  308.   SetOverwrite on
  309.   File /r "2003\Cursors\blue_a\*.*"
  310.   SetOutPath "$WINDIR\Media\幻想空间"
  311.   SetOverwrite on
  312.   File /r "2003\Media\幻想空间\*.*"
  313.   SetOutPath "$WINDIR\Resources\Themes"
  314.   SetOverwrite on
  315.   File "2003\Royale.theme"
  316.   SetOutPath "$WINDIR\system32"
  317.   SetOverwrite on
  318.   File "2003\Screensaver\Aurora.scr"
  319.   SetOutPath "$WINDIR\web\Wallpaper"
  320.   SetOverwrite on
  321.   File "2003\主题Wallpapers\Royale.jpg"

  322.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "blue_a" "%Windir%\Cursors\blue_a\Arrow.ani,%Windir%\Cursors\blue_a\Help.ani,%Windir%\Cursors\blue_a\AppStarting.ani,%Windir%\Cursors\blue_a\Wait.ani,%Windir%\Cursors\blue_a\Cross.ani,%Windir%\Cursors\blue_a\IBeam.ani,%Windir%\Cursors\blue_a\Handwriting.ani,%Windir%\Cursors\blue_a\NO.ani,%Windir%\Cursors\blue_a\SizeNS.ani,%Windir%\Cursors\blue_a\SizeWE.ani,%Windir%\Cursors\blue_a\SizeNWSE.ani,%Windir%\Cursors\blue_a\SizeNESW.ani,%Windir%\Cursors\blue_a\SizeAll.ani,%Windir%\Cursors\blue_a\UpArrow.ani,%Windir%\Cursors\blue_a\Hand.ani"

  323. SectionEnd

  324. Section "Tiger" SEC12
  325.   SetOutPath "$WINDIR\Resources\Themes\Tiger"
  326.   SetOverwrite on
  327.   File /r "2003\Tiger\*.*"
  328.   SetOutPath "$WINDIR\Cursors\Blue apple"
  329.   SetOverwrite on
  330.   File /r "2003\Cursors\Blue apple\*.*"
  331.   SetOutPath "$WINDIR\Media\幻想空间"
  332.   SetOverwrite on
  333.   File /r "2003\Media\幻想空间\*.*"
  334.   SetOutPath "$WINDIR\Resources\Themes"
  335.   SetOverwrite on
  336.   File "2003\Tiger.theme"
  337.   SetOutPath "$WINDIR\system32"
  338.   SetOverwrite on
  339.   File "2003\Screensaver\Aurora.scr"
  340.   SetOutPath "$WINDIR\web\Wallpaper"
  341.   SetOverwrite on
  342.   File "2003\主题Wallpapers\Tiger.jpg"
  343.   SetOutPath "$WINDIR\Resources\Themes\icons\ico3"
  344.   SetOverwrite on
  345.   File /r "2003\icons\ico3\*.*"
  346.   WriteRegStr HKCU "Control Panel\Cursors\Schemes" "Blue apple" "%Windir%\Cursors\Blue apple\Arrow.ani,%Windir%\Cursors\Blue apple\Help.ani,%Windir%\Cursors\Blue apple\AppStarting.ani,%Windir%\Cursors\Blue apple\Wait.ani,%Windir%\Cursors\Blue apple\Cross.ani,%Windir%\Cursors\Blue apple\IBeam.ani,%Windir%\Cursors\Blue apple\Handwriting.ani,%Windir%\Cursors\Blue apple\NO.ani,%Windir%\Cursors\Blue apple\SizeNS.ani,%Windir%\Cursors\Blue apple\SizeWE.ani,%Windir%\Cursors\Blue apple\SizeNWSE.ani,%Windir%\Cursors\Blue apple\SizeNESW.ani,%Windir%\Cursors\Blue apple\SizeAll.ani,%Windir%\Cursors\Blue apple\UpArrow.ani,%Windir%\Cursors\Blue apple\Hand.ani"

  347. SectionEnd

  348. Section "壁纸" SEC13
  349. SectionIn 1 2
  350.   SetOutPath "$WINDIR\web\Wallpaper"
  351.   SetOverwrite on
  352.   File /r "2003\Wallpaper\*.*"
  353.   File /r "2003\主题Wallpapers\*.*"
  354.   
  355.   Delete "$WINDIR\Blue Lace 16.bmp"
  356.   Delete "$WINDIR\Coffee Bean.bmp"
  357.   Delete "$WINDIR\FeatherTexture.bmp"
  358.   Delete "$WINDIR\Gone Fishing.bmp"
  359.   Delete "$WINDIR\Greenstone.bmp"
  360.   Delete "$WINDIR\Prairie Wind.bmp"
  361.   Delete "$WINDIR\Rhododendron.bmp"
  362.   Delete "$WINDIR\River Sumida.bmp"
  363.   Delete "$WINDIR\Santa Fe Stucco.bmp"
  364.   Delete "$WINDIR\Soap Bubbles.bmp"
  365.   Delete "$WINDIR\Zapotec.bmp"
  366.   Delete "$WINDIR\Web\Wallpaper\Ascent.jpg"
  367.   Delete "$WINDIR\Web\Wallpaper\Autumn.jpg"
  368.   Delete "$WINDIR\Web\Wallpaper\Azul.jpg"
  369.   Delete "$WINDIR\Web\Wallpaper\Crystal.jpg"
  370.   Delete "$WINDIR\Web\Wallpaper\Follow.jpg"
  371.   Delete "$WINDIR\Web\Wallpaper\Friend.jpg"
  372.   Delete "$WINDIR\Web\Wallpaper\Home.jpg"
  373.   Delete "$WINDIR\Web\Wallpaper\Moon flower.jpg"
  374.   Delete "$WINDIR\Web\Wallpaper\Peace.jpg"
  375.   Delete "$WINDIR\Web\Wallpaper\Power.jpg"
  376.   Delete "$WINDIR\Web\Wallpaper\Purple flower.jpg"
  377.   Delete "$WINDIR\Web\Wallpaper\Radiance.jpg"
  378.   Delete "$WINDIR\Web\Wallpaper\Red moon desert.jpg"
  379.   Delete "$WINDIR\Web\Wallpaper\Ripple.jpg"
  380.   Delete "$WINDIR\Web\Wallpaper\Stonehenge.jpg"
  381.   Delete "$WINDIR\Web\Wallpaper\Ripple.jpg"
  382.   Delete "$WINDIR\Web\Wallpaper\Tulips.jpg"
  383.   Delete "$WINDIR\Web\Wallpaper\Vortec space.jpg"
  384.   Delete "$WINDIR\Web\Wallpaper\Wind.jpg"
  385.   Delete "$WINDIR\Web\Wallpaper\Windows XP.jpg"
  386. SectionEnd

  387. Section "用户头像" SEC14
  388. Strcpy $R2 $WINDIR 2
  389. SectionIn 1 2
  390.   SetOutPath "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures"
  391.   SetOverwrite on
  392.   File /r "2003\Default Pictures\*.*"
  393. SectionEnd

  394. Section "-屏幕保护" SEC15
  395.   SetOutPath "$WINDIR\system32"
  396.   SetOverwrite on
  397.   File /r "2003\Screensaver\*.*"
  398. SectionEnd

  399. Section "-License and README" SEC16
  400.   SetOutPath "$WINDIR\Resources\Themes"
  401.   SetOverwrite on
  402.   File "2003\License.txt"
  403.   File "2003\README.TXT"
  404. SectionEnd

  405. Section -Post
  406.   WriteUninstaller "$INSTDIR\uninst.exe"
  407.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  408.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  409.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  410.   WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
  411. SectionEnd

  412. #-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
  413. !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  414.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC00} "猪猪番薯OEM信息"
  415.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC01} "LE4_Blue(LE4蓝色桌面主题)"
  416.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC02} "LE4_Black(LE4黑色桌面主题)"
  417.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC03} "Longhorn_Black(Longhorn黑色主题)"
  418.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC04} "Longhorn_Silver(Longhorn银色主题)"
  419.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC05} "Vista(Windows Vista主题)"
  420.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC06} "Vistaxp(仿透明Vista主题)"
  421.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC07} "VistaCG(Vista主题)"
  422.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC08} "Inspiat(Inspiat银色主题)"
  423.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC09} "MSN(MSN桌面主题)"
  424.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC10} "PixOS(PixOS苹果桌面主题)"
  425.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC11} "Royale(Windows Media Center默认主题)"
  426.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC12} "Tiger(FlyakiteOSX主题)"
  427.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC13} "75张精选壁纸"
  428.   !insertmacro MUI_DESCRIPTION_TEXT ${SEC14} "精选头像"
  429. !insertmacro MUI_FUNCTION_DESCRIPTION_END

  430. /******************************
  431. *  以下是安装程序的卸载部分  *
  432. ******************************/

  433. ; 根据安装日志卸载文件的调用宏
  434. !macro DelFileByLog LogFile
  435.   ifFileExists `${LogFile}` 0 +4
  436.     Push `${LogFile}`
  437.     Call un.DelFileByLog
  438.     Delete `${LogFile}`
  439. !macroend

  440. Section Uninstall
  441.   Delete "$INSTDIR\${PRODUCT_NAME}.url"

  442.   ; 调用宏只根据安装日志卸载安装程序自己安装过的文件
  443.   !insertmacro DelFileByLog "$INSTDIR\install.log"

  444.   ; 清除安装程序创建的且在卸载时可能为空的子目录,对于递归添加的文件目录,请由最内层的子目录开始清除(注意,不要带 /r 参数,否则会失去 DelFileByLog 的意义)

  445. Delete /REBOOTOK "$INSTDIR\uninst.exe"
  446.   Delete /REBOOTOK "$INSTDIR\License.txt"
  447.   Delete /REBOOTOK "$INSTDIR\README.TXT"
  448.   
  449.   Delete /REBOOTOK "$INSTDIR\LE4_Black.theme"
  450.   Delete /REBOOTOK "$INSTDIR\LE4_Blue.theme"
  451.   Delete /REBOOTOK "$INSTDIR\Longhorn_Black.theme"
  452.   Delete /REBOOTOK "$INSTDIR\Longhorn_Silver.theme"
  453.   Delete /REBOOTOK "$INSTDIR\Vista.theme"
  454.   Delete /REBOOTOK "$INSTDIR\Vistaxp.theme"
  455.   Delete /REBOOTOK "$INSTDIR\VistaCG.theme"
  456.   Delete /REBOOTOK "$INSTDIR\Inspiat.theme"
  457.   Delete /REBOOTOK "$INSTDIR\MSN.theme"
  458.   Delete /REBOOTOK "$INSTDIR\PixOS.theme"
  459.   Delete /REBOOTOK "$INSTDIR\Royale.theme"
  460.   Delete /REBOOTOK "$INSTDIR\Tiger.theme"

  461.   Delete /REBOOTOK "$SYSDIR\Aurora.scr"

  462.   RMDir /r "$INSTDIR\LE4"
  463.   RMDir /r "$INSTDIR\Longhorn"
  464.   RMDir /r "$INSTDIR\Vista"
  465.   RMDir /r "$INSTDIR\VistaXP1"
  466.   RMDir /r "$INSTDIR\VistaCG"
  467.   RMDir /r "$INSTDIR\Inspiat"
  468.   RMDir /r "$INSTDIR\MSN"
  469.   RMDir /r "$INSTDIR\PixOS"
  470.   RMDir /r "$INSTDIR\Royale"
  471.   RMDir /r "$INSTDIR\Tiger"
  472.   RMDir /r "$INSTDIR\icons"

  473.   RMDir /r "$WINDIR\Cursors\PixOS"
  474.   RMDir /r "$WINDIR\Cursors\Blue apple"
  475.   RMDir /r "$WINDIR\Cursors\Vista 5456"
  476.   RMDir /r "$WINDIR\Cursors\blue_a"
  477.   RMDir /r "$WINDIR\Media\幻想空间"

  478.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Inspiat.JPG"
  479.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\VistaCG.jpg"
  480.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\LE4_Blue.jpg"
  481.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\LE4_Black.jpg"
  482.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Longhorn_Black.jpg"
  483.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Longhorn_Silver.jpg"
  484.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Vista.jpg"
  485.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\VistaXP.jpg"
  486.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\VistaCG.jpg"
  487.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Inspiat.JPG"
  488.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\MSN.JPG"
  489.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\PixOS.jpg"
  490.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Royale.jpg"
  491.    Delete /REBOOTOK "$WINDIR\Web\Wallpaper\Tiger.jpg"
  492.    
  493.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (0).JPG"
  494.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (1).JPG"
  495.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (2).JPG"
  496.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (3).JPG"
  497.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (4).JPG"
  498.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (5).jpg"
  499.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (6).jpg"
  500.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (7).jpg"
  501.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (8).jpg"
  502.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (9).JPG"
  503.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (10).jpg"
  504.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (11).jpg"
  505.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (12).JPG"
  506.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (13).jpg"
  507.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (14).jpg"
  508.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (15).jpg"
  509.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (16).jpg"
  510.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (17).jpg"
  511.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (18).jpg"
  512.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (19).jpg"
  513.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (20).jpg"
  514.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (21).jpg"
  515.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (22).jpg"
  516.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (23).jpg"
  517.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (24).jpg"
  518.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (25).jpg"
  519.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (26).JPG"
  520.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (27).jpg"
  521.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (28).jpg"
  522.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (29).jpg"
  523.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (30).jpg"
  524.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (31).jpg"
  525.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (32).jpg"
  526.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (33).jpg"
  527.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (34).jpg"
  528.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (35).jpg"
  529.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (36).jpg"
  530.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (37).jpg"
  531.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (38).jpg"
  532.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (39).jpg"
  533.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (40).jpg"
  534.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (41).jpg"
  535.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (42).jpg"
  536.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (43).jpg"
  537.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (44).jpg"
  538.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (45).jpg"
  539.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (46).jpg"
  540.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (47).jpg"
  541.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (48).jpg"
  542.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (49).jpg"
  543.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (50).jpg"
  544.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (51).jpg"
  545.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (52).jpg"
  546.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (53).jpg"
  547.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (54).jpg"
  548.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (55).jpg"
  549.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (56).jpg"
  550.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (57).jpg"
  551.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (58).jpg"
  552.   Delete /REBOOTOK "$WINDIR\Web\Wallpaper\wallpapers (59).jpg"

  553.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (1).png"
  554.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (2).png"
  555.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (3).png"
  556.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (4).png"
  557.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (5).png"
  558.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (6).png"
  559.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (7).png"
  560.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (8).png"
  561.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (9).png"
  562.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (10).png"
  563.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (11).png"
  564.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (12).png"
  565.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (13).png"
  566.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (14).png"
  567.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (15).png"
  568.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (16).png"
  569.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (17).png"
  570.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (18).png"
  571.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (19).png"
  572.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (20).png"
  573.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (21).png"
  574.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (22).png"
  575.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (23).png"
  576.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (24).png"
  577.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (25).png"
  578.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (26).png"
  579.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (27).png"
  580.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (28).png"
  581.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (29).png"
  582.   Delete /REBOOTOK "$R2\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\Default Pictures\Default Pictures (30).png"


  583.         DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Blue apple"
  584.         DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "PixOS"
  585.         DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "Vista 5456"
  586.         DeleteRegValue HKCU "Control Panel\Cursors\Schemes" "blue_a"


  587.   RMDir "$INSTDIR"

  588.   DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  589.   SetAutoClose true
  590. SectionEnd

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

  592. Function un.onInit
  593.   MessageBox MB_OK "在删除之前,先请换回XP默认主题!"
  594.   ExecShell "open" "$WINDIR\Resources\Themes\Luna.theme"
  595.   MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你确实要完全移除 猪猪番薯主题包v1.3,及其所有的组件?" IDYES +2
  596.   Abort
  597. FunctionEnd

  598. Function un.onUninstSuccess
  599.   HideWindow
  600.   MessageBox MB_ICONINFORMATION|MB_OK "猪猪番薯主题包v1.3 已成功地从你的计算机移除。"
  601. FunctionEnd

  602. ; 以下是卸载程序通过安装日志卸载文件的专用函数,请不要随意修改
  603. Function un.DelFileByLog
  604.   Exch $R0
  605.   Push $R1
  606.   Push $R2
  607.   Push $R3
  608.   FileOpen $R0 $R0 r
  609.   ${Do}
  610.     FileRead $R0 $R1
  611.     ${IfThen} $R1 == `` ${|} ${ExitDo} ${|}
  612.     StrCpy $R1 $R1 -2
  613.     StrCpy $R2 $R1 11
  614.     StrCpy $R3 $R1 20
  615.     ${If} $R2 == "File: wrote"
  616.     ${OrIf} $R2 == "File: skipp"
  617.     ${OrIf} $R3 == "CreateShortCut: out:"
  618.     ${OrIf} $R3 == "created uninstaller:"
  619.       Push $R1
  620.       Push `"`
  621.       Call un.DelFileByLog.StrLoc
  622.       Pop $R2
  623.       ${If} $R2 != ""
  624.         IntOp $R2 $R2 + 1
  625.         StrCpy $R3 $R1 "" $R2
  626.         Push $R3
  627.         Push `"`
  628.         Call un.DelFileByLog.StrLoc
  629.         Pop $R2
  630.         ${If} $R2 != ""
  631.           StrCpy $R3 $R3 $R2
  632.           Delete /REBOOTOK $R3
  633.         ${EndIf}
  634.       ${EndIf}
  635.     ${EndIf}
  636.     StrCpy $R2 $R1 7
  637.     ${If} $R2 == "Rename:"
  638.       Push $R1
  639.       Push "->"
  640.       Call un.DelFileByLog.StrLoc
  641.       Pop $R2
  642.       ${If} $R2 != ""
  643.         IntOp $R2 $R2 + 2
  644.         StrCpy $R3 $R1 "" $R2
  645.         Delete /REBOOTOK $R3
  646.       ${EndIf}
  647.     ${EndIf}
  648.   ${Loop}
  649.   FileClose $R0
  650.   Pop $R3
  651.   Pop $R2
  652.   Pop $R1
  653.   Pop $R0
  654. FunctionEnd

  655. Function un.DelFileByLog.StrLoc
  656.   Exch $R0
  657.   Exch
  658.   Exch $R1
  659.   Push $R2
  660.   Push $R3
  661.   Push $R4
  662.   Push $R5
  663.   StrLen $R2 $R0
  664.   StrLen $R3 $R1
  665.   StrCpy $R4 0
  666.   ${Do}
  667.     StrCpy $R5 $R1 $R2 $R4
  668.     ${If} $R5 == $R0
  669.     ${OrIf} $R4 = $R3
  670.       ${ExitDo}
  671.     ${EndIf}
  672.     IntOp $R4 $R4 + 1
  673.   ${Loop}
  674.   ${If} $R4 = $R3
  675.     StrCpy $R0 ""
  676.   ${Else}
  677.     StrCpy $R0 $R4
  678.   ${EndIf}
  679.   Pop $R5
  680.   Pop $R4
  681.   Pop $R3
  682.   Pop $R2
  683.   Pop $R1
  684.   Exch $R0
  685. FunctionEnd
复制代码


回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 19:03 , Processed in 0.108823 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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