杉宫竹苑工作室

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

NSIS XP SP2 补丁包脚本

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

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

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

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

  2. ; 安装程序初始定义常量
  3. !define PRODUCT_NAME "霏凡WinXP-sp2至10.9补丁集"
  4. !define PRODUCT_VERSION ""
  5. !define PRODUCT_PUBLISHER "aaplayboy"
  6. !define PRODUCT_WEB_SITE "http://bbs.crsky.com"

  7. SetCompressor lzma



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

  10. ; MUI 预定义常量
  11. !define MUI_ABORTWARNING
  12. ;!define  MUI_COMPONENTSPAGE_SMALLDESC
  13. !define MUI_COMPONENTSPAGE_NODESC

  14. ;注册表判断组件
  15. !define MUI_PAGE_CUSTOMFUNCTION_Pre ComponentsPre


  16. ; 欢迎页面
  17. !insertmacro MUI_PAGE_WELCOME
  18. ; 许可协议页面
  19. !insertmacro MUI_PAGE_LICENSE "D:\xp\xp.txt"
  20. ; 组件选择页面
  21. !insertmacro MUI_PAGE_COMPONENTS
  22. ComponentText "" "说明:列表中阴影未选中的""     则表示该补丁已安装"
  23. ; 安装过程页面
  24. !insertmacro MUI_PAGE_INSTFILES
  25. ; 安装完成页面
  26. !insertmacro MUI_PAGE_FINISH

  27. ; 安装界面包含的语言设置
  28. !insertmacro MUI_LANGUAGE "SimpChinese"
  29.   VIProductVersion "0.7.1.1"
  30.   VIAddVersionKey /LANG=2052 "ProductName" "霏凡WinXP-sp2至10.9补丁集"
  31.   VIAddVersionKey /LANG=2052 "CompanyName" "aaplayboy制作"
  32.   VIAddVersionKey /LANG=2052 "LegalCopyright" "aaplayboy"
  33.   VIAddVersionKey /LANG=2052 "FileDescription" "Winxp-sp2 Update"
  34.   VIAddVersionKey /LANG=2052 "FileVersion" "2007.10"
  35. ; 安装预释放文件
  36. !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
  37. ; ------ MUI 现代界面定义结束 ------

  38. Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
  39. OutFile "Setup.exe"
  40. InstallDir "$TEMP"
  41. ShowInstDetails show
  42. BrandingText "aaplayboy制作"

  43. Section "Windows XP安全更新程序(KB873339)" SEC01
  44.     SetOutPath "$TEMP"
  45.       File "D:\xp\KB873339.exe"
  46.         ExecWait '"$TEMP\KB873339.exe" /passive /quiet /norestart /nobackup'
  47.     SectionEnd

  48. Section "Windows XP安全更新程序(KB885835)" SEC02
  49. SetOutPath "$TEMP"
  50.   File "D:\xp\KB885835.exe"
  51.         ExecWait '"$TEMP\KB885835.exe" /passive /quiet /norestart /nobackup'
  52. SectionEnd

  53. Section "Windows XP安全更新程序(KB885836)" SEC03
  54. SetOutPath "$TEMP"
  55.   File "D:\xp\KB885836.exe"
  56.         ExecWait '"$TEMP\KB885836.exe" /passive /quiet /norestart /nobackup'
  57. SectionEnd

  58. Section "Windows XP安全更新程序(KB886185)" SEC04
  59. SetOutPath "$TEMP"
  60.   File "D:\xp\KB886185.exe"
  61.         ExecWait '"$TEMP\KB886185.exe" /passive /quiet /norestart /nobackup'
  62. SectionEnd

  63. Section "Windows XP安全更新程序(KB886677)" SEC05
  64. SetOutPath "$TEMP"
  65.   File "D:\xp\KB886677.exe"
  66.         ExecWait '"$TEMP\KB886677" /passive /quiet /norestart /nobackup'
  67. SectionEnd

  68. Section "Windows XP安全更新程序(KB888302)" SEC06
  69. SetOutPath "$TEMP"
  70.   File "D:\xp\KB888302.exe"
  71.         ExecWait '"$TEMP\KB888302.exe" /passive /quiet /norestart /nobackup'
  72. SectionEnd

  73. Section "Windows XP安全更新程序(KB890046)" SEC07
  74. SetOutPath "$TEMP"
  75.   File "D:\xp\KB890046.exe"
  76.         ExecWait '"$TEMP\KB890046.exe" /passive /quiet /norestart /nobackup'
  77. SectionEnd
  78. Section "Windows XP安全更新程序(KB890859)" SEC08
  79. SetOutPath "$TEMP"
  80.   File "D:\xp\KB890859.exe"
  81.         ExecWait '"$TEMP\KB890859.exe" /passive /quiet /norestart /nobackup'
  82. SectionEnd
  83. Section "Windows XP安全更新程序(KB891781)" SEC09
  84. SetOutPath "$TEMP"
  85.   File "D:\xp\KB891781.exe"
  86.         ExecWait '"$TEMP\KB891781.exe" /passive /quiet /norestart /nobackup'
  87. SectionEnd
  88. ;Windows 正版增值验证工具
  89. Section "Windows 正版增值验证工具(KB892130)" SEC10
  90. SetOutPath "$TEMP"
  91.   File "D:\xp\KB892130.exe"
  92.         ExecWait '"$TEMP\KB892130.exe" /passive /quiet /norestart /nobackup'
  93. SectionEnd

  94. Section "Windows XP安全更新程序(KB893756)" SEC11
  95. SetOutPath "$TEMP"
  96.   File "D:\xp\KB893756.exe"
  97.         ExecWait '"$TEMP\KB893756.exe" /passive /quiet /norestart /nobackup'
  98. SectionEnd
  99. ;installer 3.1
  100. Section "Microsoft Windows安装程序3.1(KB893803)" SEC12
  101. SetOutPath "$TEMP"
  102.   File "D:\xp\KB893803v2.exe"
  103.         ExecWait '"$TEMP\KB893803v2.exe" /passive /quiet /norestart /nobackup'
  104. SectionEnd
  105. Section "Windows XP安全更新程序(KB894391)" SEC13
  106. SetOutPath "$TEMP"
  107.   File "D:\xp\KB894391.exe"
  108.         ExecWait '"$TEMP\KB894391.exe" /passive /quiet /norestart /nobackup'
  109. SectionEnd
  110. Section "Windows XP安全更新程序(KB896358)" SEC14
  111. SetOutPath "$TEMP"
  112.   File "D:\xp\KB896358.exe"
  113.         ExecWait '"$TEMP\KB896358.exe" /passive /quiet /norestart /nobackup'
  114. SectionEnd
  115. Section "Windows XP安全更新程序(KB896423)" SEC15
  116. SetOutPath "$TEMP"
  117.   File "D:\xp\KB896423.exe"
  118.         ExecWait '"$TEMP\KB896423.exe" /passive /quiet /norestart /nobackup'
  119. SectionEnd
  120. Section "Windows XP安全更新程序(KB896428)" SEC16
  121. SetOutPath "$TEMP"
  122.   File "D:\xp\KB896428.exe"
  123.         ExecWait '"$TEMP\KB896428.exe" /passive /quiet /norestart /nobackup'
  124. SectionEnd
  125. Section "Windows XP安全更新程序(KB898461)" SEC17
  126. SetOutPath "$TEMP"
  127.   File "D:\xp\KB898461.exe"
  128.         ExecWait '"$TEMP\KB898461.exe" /passive /quiet /norestart /nobackup'
  129. SectionEnd
  130. Section "Windows XP安全更新程序(KB899587)" SEC18
  131. SetOutPath "$TEMP"
  132.   File "D:\xp\KB899587.exe"
  133.         ExecWait '"$TEMP\KB899587.exe" /passive /quiet /norestart /nobackup'
  134. SectionEnd
  135. Section "Windows XP安全更新程序(KB899591)" SEC19
  136. SetOutPath "$TEMP"
  137.   File "D:\xp\KB899591.exe"
  138.         ExecWait '"$TEMP\KB899591.exe" /passive /quiet /norestart /nobackup'
  139. SectionEnd
  140. Section "Windows XP安全更新程序(KB900485)" SEC20
  141. SetOutPath "$TEMP"
  142.   File "D:\xp\KB900485.exe"
  143.         ExecWait '"$TEMP\KB900485.exe" /passive /quiet /norestart /nobackup'
  144. SectionEnd
  145. Section "Windows XP安全更新程序(KB900725)" SEC21
  146. SetOutPath "$TEMP"
  147.   File "D:\xp\KB900725.exe"
  148.         ExecWait '"$TEMP\KB900725.exe" /passive /quiet /norestart /nobackup'
  149. SectionEnd
  150. Section "Windows XP安全更新程序(KB901017)" SEC22
  151. SetOutPath "$TEMP"
  152.   File "D:\xp\KB901017.exe"
  153.         ExecWait '"$TEMP\KB901017.exe" /passive /quiet /norestart /nobackup'
  154. SectionEnd
  155. Section "Windows XP安全更新程序(KB901190)" SEC23
  156. SetOutPath "$TEMP"
  157.   File "D:\xp\KB901190.exe"
  158.         ExecWait '"$TEMP\KB901190.exe" /passive /quiet /norestart /nobackup'
  159. SectionEnd
  160. Section "Windows XP安全更新程序(KB901214)" SEC24
  161. SetOutPath "$TEMP"
  162.   File "D:\xp\KB901214.exe"
  163.         ExecWait '"$TEMP\KB901214.exe" /passive /quiet /norestart /nobackup'
  164. SectionEnd
  165. Section "Windows XP安全更新程序(KB902400)" SEC25
  166. SetOutPath "$TEMP"
  167.   File "D:\xp\KB902400.exe"
  168.         ExecWait '"$TEMP\KB902400.exe" /passive /quiet /norestart /nobackup'
  169. SectionEnd
  170. Section "Windows XP安全更新程序(KB904706)" SEC26
  171. SetOutPath "$TEMP"
  172.   File "D:\xp\KB904706.exe"
  173.         ExecWait '"$TEMP\KB904706.exe" /passive /quiet /norestart /nobackup'
  174. SectionEnd
  175. Section "Windows XP安全更新程序(KB905414)" SEC27
  176. SetOutPath "$TEMP"
  177.   File "D:\xp\KB905414.exe"
  178.         ExecWait '"$TEMP\KB905414.exe" /passive /quiet /norestart /nobackup'
  179. SectionEnd
  180. Section "Windows XP安全更新程序(KB905749)" SEC28
  181. SetOutPath "$TEMP"
  182.   File "D:\xp\KB905749.exe"
  183.         ExecWait '"$TEMP\KB905749.exe" /passive /quiet /norestart /nobackup'
  184. SectionEnd
  185. Section "Windows XP安全更新程序(KB908519)" SEC29
  186. SetOutPath "$TEMP"
  187.   File "D:\xp\KB908519.exe"
  188.         ExecWait '"$TEMP\KB908519.exe" /passive /quiet /norestart /nobackup'
  189. SectionEnd
  190. Section "Windows XP安全更新程序(KB908531)" SEC30
  191. SetOutPath "$TEMP"
  192.   File "D:\xp\KB908531.exe"
  193.         ExecWait '"$TEMP\KB908531.exe" /passive /quiet /norestart /nobackup'
  194. SectionEnd
  195. Section "Windows XP安全更新程序(KB910437)" SEC31
  196. SetOutPath "$TEMP"
  197.   File "D:\xp\KB910437.exe"
  198.         ExecWait '"$TEMP\KB910437.exe" /passive /quiet /norestart /nobackup'
  199. SectionEnd
  200. Section "Windows XP安全更新程序(KB911280)" SEC32
  201. SetOutPath "$TEMP"
  202.   File "D:\xp\KB911280.exe"
  203.         ExecWait '"$TEMP\KB911280.exe" /passive /quiet /norestart /nobackup'
  204. SectionEnd
  205. Section "Windows XP安全更新程序(KB911562)" SEC33
  206. SetOutPath "$TEMP"
  207.   File "D:\xp\KB911562.exe"
  208.         ExecWait '"$TEMP\KB911562.exe" /passive /quiet /norestart /nobackup'
  209. SectionEnd
  210. ;wmp
  211. Section "Windows Media Player安全更新(KB911564)" SEC34
  212. SetOutPath "$TEMP"
  213.   File "D:\xp\KB911564-WM.exe"
  214.         ExecWait '"$TEMP\KB911564-WM.exe" /passive /quiet /norestart /nobackup'
  215. SectionEnd
  216. Section "Windows XP安全更新程序(KB911927)" SEC35
  217. SetOutPath "$TEMP"
  218.   File "D:\xp\KB911927.exe"
  219.         ExecWait '"$TEMP\KB911927.exe" /passive /quiet /norestart /nobackup'
  220. SectionEnd
  221. Section "Windows XP安全更新程序(KB913580)" SEC36
  222. SetOutPath "$TEMP"
  223.   File "D:\xp\KB913580.exe"
  224.         ExecWait '"$TEMP\KB913580.exe" /passive /quiet /norestart /nobackup'
  225. SectionEnd
  226. Section "Windows XP安全更新程序(KB914388)" SEC37
  227. SetOutPath "$TEMP"
  228.   File "D:\xp\KB914388.exe"
  229.         ExecWait '"$TEMP\KB914388.exe" /passive /quiet /norestart /nobackup'
  230. SectionEnd
  231. Section "Windows XP安全更新程序(KB914389)" SEC38
  232. SetOutPath "$TEMP"
  233.   File "D:\xp\KB914389.exe"
  234.         ExecWait '"$TEMP\KB914389.exe" /passive /quiet /norestart /nobackup'
  235. SectionEnd
  236. Section "Windows XP安全更新程序(KB916595)" SEC39
  237. SetOutPath "$TEMP"
  238.   File "D:\xp\KB916595.exe"
  239.         ExecWait '"$TEMP\KB916595.exe" /passive /quiet /norestart /nobackup'
  240. SectionEnd
  241. Section "Windows XP安全更新程序(KB917344)" SEC40
  242. SetOutPath "$TEMP"
  243.   File "D:\xp\KB917344.exe"
  244.         ExecWait '"$TEMP\KB917344.exe" /passive /quiet /norestart /nobackup'
  245. SectionEnd
  246. Section "Windows XP安全更新程序(KB917953)" SEC41
  247. SetOutPath "$TEMP"
  248.   File "D:\xp\KB917953.exe"
  249.         ExecWait '"$TEMP\KB917953.exe" /passive /quiet /norestart /nobackup'
  250. SectionEnd
  251. Section "Windows XP安全更新程序(KB918118)" SEC42
  252. SetOutPath "$TEMP"
  253.   File "D:\xp\KB918118.exe"
  254.         ExecWait '"$TEMP\KB918118.exe" /passive /quiet /norestart /nobackup'
  255. SectionEnd
  256. Section "Windows XP安全更新程序(KB918439)" SEC43
  257. SetOutPath "$TEMP"
  258.   File "D:\xp\KB918439.exe"
  259.         ExecWait '"$TEMP\KB918439.exe" /passive /quiet /norestart /nobackup'
  260. SectionEnd
  261. Section "Windows XP安全更新程序(KB919007)" SEC44
  262. SetOutPath "$TEMP"
  263.   File "D:\xp\KB919007.exe"
  264.         ExecWait '"$TEMP\KB919007.exe" /passive /quiet /norestart /nobackup'
  265. SectionEnd
  266. Section "Windows XP安全更新程序(KB920213)" SEC45
  267. SetOutPath "$TEMP"
  268.   File "D:\xp\KB920213.exe"
  269.         ExecWait '"$TEMP\KB920213.exe" /passive /quiet /norestart /nobackup'
  270. SectionEnd
  271. Section "Windows XP安全更新程序(KB920670)" SEC46
  272. SetOutPath "$TEMP"
  273.   File "D:\xp\KB920670.exe"
  274.         ExecWait '"$TEMP\KB920670.exe" /passive /quiet /norestart /nobackup'
  275. SectionEnd
  276. Section "Windows XP安全更新程序(KB920683)" SEC47
  277. SetOutPath "$TEMP"
  278.   File "D:\xp\KB920683.exe"
  279.         ExecWait '"$TEMP\KB920683.exe" /passive /quiet /norestart /nobackup'
  280. SectionEnd
  281. Section "Windows XP安全更新程序(KB920685)" SEC48
  282. SetOutPath "$TEMP"
  283.   File "D:\xp\KB920685.exe"
  284.         ExecWait '"$TEMP\KB920685.exe" /passive /quiet /norestart /nobackup'
  285. SectionEnd
  286. Section "Windows XP安全更新程序(KB920872)" SEC49
  287. SetOutPath "$TEMP"
  288.   File "D:\xp\KB920872.exe"
  289.         ExecWait '"$TEMP\KB920872.exe" /passive /quiet /norestart /nobackup'
  290. SectionEnd
  291. Section "Windows XP安全更新程序(KB921503)" SEC50
  292. SetOutPath "$TEMP"
  293.   File "D:\xp\KB921503.exe"
  294.         ExecWait '"$TEMP\KB921503.exe" /passive /quiet /norestart /nobackup'
  295. SectionEnd
  296. Section "Windows XP安全更新程序(KB922582)" SEC51
  297. SetOutPath "$TEMP"
  298.   File "D:\xp\KB922582.exe"
  299.         ExecWait '"$TEMP\KB922582.exe" /passive /quiet /norestart /nobackup'
  300. SectionEnd
  301. Section "Windows XP安全更新程序(KB922819)" SEC52
  302. SetOutPath "$TEMP"
  303.   File "D:\xp\KB922819.exe"
  304.         ExecWait '"$TEMP\KB922819.exe" /passive /quiet /norestart /nobackup'
  305. SectionEnd
  306. Section "Windows XP安全更新程序(KB923191)" SEC53
  307. SetOutPath "$TEMP"
  308.   File "D:\xp\KB923191.exe"
  309.         ExecWait '"$TEMP\KB923191.exe" /passive /quiet /norestart /nobackup'
  310. SectionEnd
  311. Section "Windows XP安全更新程序(KB923414)" SEC54
  312. SetOutPath "$TEMP"
  313.   File "D:\xp\KB923414.exe"
  314.         ExecWait '"$TEMP\KB923414.exe" /passive /quiet /norestart /nobackup'
  315. SectionEnd
  316. Section "Windows XP安全更新程序(KB923689)" SEC55
  317. SetOutPath "$TEMP"
  318.   File "D:\xp\KB923689.exe"
  319.         ExecWait '"$TEMP\KB923689.exe" /passive /quiet /norestart /nobackup'
  320. SectionEnd
  321. Section "Windows XP安全更新程序(KB923980)" SEC56
  322. SetOutPath "$TEMP"
  323.   File "D:\xp\KB923980.exe"
  324.         ExecWait '"$TEMP\KB923980.exe" /passive /quiet /norestart /nobackup'
  325. SectionEnd
  326. Section "Windows XP安全更新程序(KB924270)" SEC57
  327. SetOutPath "$TEMP"
  328.   File "D:\xp\KB924270.exe"
  329.         ExecWait '"$TEMP\KB924270.exe" /passive /quiet /norestart /nobackup'
  330. SectionEnd
  331. Section "Windows XP安全更新程序(KB924496)" SEC58
  332. SetOutPath "$TEMP"
  333.   File "D:\xp\KB924496.exe"
  334.         ExecWait '"$TEMP\KB924496.exe" /passive /quiet /norestart /nobackup'
  335. SectionEnd
  336. Section "Windows XP安全更新程序(KB924667)" SEC59
  337. SetOutPath "$TEMP"
  338.   File "D:\xp\KB924667.exe"
  339.         ExecWait '"$TEMP\KB924667.exe" /passive /quiet /norestart /nobackup'
  340. SectionEnd
  341. Section "Windows Media Player6.4安全更新(KB925398)" SEC60
  342. SetOutPath "$TEMP"
  343.   File "D:\xp\KB925398.exe"
  344.         ExecWait '"$TEMP\KB925398.exe" /passive /quiet /norestart /nobackup'
  345. SectionEnd
  346. Section "Windows XP安全更新程序(KB925902)" SEC61
  347. SetOutPath "$TEMP"
  348.   File "D:\xp\KB925902.exe"
  349.         ExecWait '"$TEMP\KB925902.exe" /passive /quiet /norestart /nobackup'
  350. SectionEnd
  351. Section "Windows XP安全更新程序(KB926255)" SEC62
  352. SetOutPath "$TEMP"
  353.   File "D:\xp\KB926255.exe"
  354.         ExecWait '"$TEMP\KB926255.exe" /passive /quiet /norestart /nobackup'
  355. SectionEnd
  356. Section "Windows XP安全更新程序(KB926436)" SEC63
  357. SetOutPath "$TEMP"
  358.   File "D:\xp\KB926436.exe"
  359.         ExecWait '"$TEMP\KB926436.exe" /passive /quiet /norestart /nobackup'
  360. SectionEnd
  361. Section "Windows XP安全更新程序(KB927779)" SEC64
  362. SetOutPath "$TEMP"
  363.   File "D:\xp\KB927779.exe"
  364.         ExecWait '"$TEMP\KB927779.exe" /passive /quiet /norestart /nobackup'
  365. SectionEnd
  366. Section "Windows XP安全更新程序(KB927802)" SEC65
  367. SetOutPath "$TEMP"
  368.   File "D:\xp\KB927802.exe"
  369.         ExecWait '"$TEMP\KB927802.exe" /passive /quiet /norestart /nobackup'
  370. SectionEnd
  371. Section "Windows XP安全更新程序(KB927891)" SEC66
  372. SetOutPath "$TEMP"
  373.   File "D:\xp\KB927891.exe"
  374.         ExecWait '"$TEMP\KB927891.exe" /passive /quiet /norestart /nobackup'
  375. SectionEnd
  376. Section "Windows XP安全更新程序(KB928255)" SEC67
  377. SetOutPath "$TEMP"
  378.   File "D:\xp\KB928255.exe"
  379.         ExecWait '"$TEMP\KB928255.exe" /passive /quiet /norestart /nobackup'
  380. SectionEnd
  381. Section "Windows XP安全更新程序(KB928843)" SEC68
  382. SetOutPath "$TEMP"
  383.   File "D:\xp\KB928843.exe"
  384.         ExecWait '"$TEMP\KB928843.exe" /passive /quiet /norestart /nobackup'
  385. SectionEnd

  386. Section "Outlook Express累积安全更新(KB929123)" SEC69
  387. SetOutPath "$TEMP"
  388.   File "D:\xp\KB929123.exe"
  389.         ExecWait '"$TEMP\KB929123.exe" /passive /quiet /norestart /nobackup'
  390. SectionEnd
  391. Section "Windows XP安全更新程序(KB929969)" SEC70
  392. SetOutPath "$TEMP"
  393.   File "D:\xp\KB929969.exe"
  394.         ExecWait '"$TEMP\KB929969.exe" /passive /quiet /norestart /nobackup'
  395. SectionEnd
  396. Section "Windows XP安全更新程序(KB930178)" SEC71
  397. SetOutPath "$TEMP"
  398.   File "D:\xp\KB930178.exe"
  399.         ExecWait '"$TEMP\KB930178.exe" /passive /quiet /norestart /nobackup'
  400. SectionEnd
  401. Section "Windows XP安全更新程序(KB930916)" SEC72
  402. SetOutPath "$TEMP"
  403.   File "D:\xp\KB930916.exe"
  404.         ExecWait '"$TEMP\KB930916.exe" /passive /quiet /norestart /nobackup'
  405. SectionEnd
  406. Section "Windows XP安全更新程序(KB931261)" SEC73
  407. SetOutPath "$TEMP"
  408.   File "D:\xp\KB931261.exe"
  409.         ExecWait '"$TEMP\KB931261.exe" /passive /quiet /norestart /nobackup'
  410. SectionEnd
  411. Section "Windows XP安全更新程序(KB931784)" SEC74
  412. SetOutPath "$TEMP"
  413.   File "D:\xp\KB931784.exe"
  414.         ExecWait '"$TEMP\KB931784.exe" /passive /quiet /norestart /nobackup'
  415. SectionEnd
  416. Section "Windows XP安全更新程序(KB932168)" SEC75
  417. SetOutPath "$TEMP"
  418.   File "D:\xp\KB932168.exe"
  419.         ExecWait '"$TEMP\KB932168.exe" /passive /quiet /norestart /nobackup'
  420. SectionEnd
  421. Section "Windows XP安全更新程序(KB933729)" SEC76
  422. SetOutPath "$TEMP"
  423.   File "D:\xp\KB933729.exe"
  424.         ExecWait '"$TEMP\KB933729.exe" /passive /quiet /norestart /nobackup'
  425. SectionEnd
  426. Section "Windows XP安全更新程序(KB935448)" SEC77
  427. SetOutPath "$TEMP"
  428.   File "D:\xp\KB935448.exe"
  429.         ExecWait '"$TEMP\KB935448.exe" /passive /quiet /norestart /nobackup'
  430. SectionEnd
  431. Section "Windows XP安全更新程序(KB935839)" SEC78
  432. SetOutPath "$TEMP"
  433.   File "D:\xp\KB935839.exe"
  434.         ExecWait '"$TEMP\KB935839.exe" /passive /quiet /norestart /nobackup'
  435. SectionEnd
  436. Section "Windows XP安全更新程序(KB935840)" SEC79
  437. SetOutPath "$TEMP"
  438.   File "D:\xp\KB935840.exe"
  439.         ExecWait '"$TEMP\KB935840.exe" /passive /quiet /norestart /nobackup'
  440. SectionEnd
  441. Section "Windows XP安全更新程序(KB936021)" SEC80
  442. SetOutPath "$TEMP"
  443.   File "D:\xp\KB936021.exe"
  444.         ExecWait '"$TEMP\KB936021.exe" /passive /quiet /norestart /nobackup'
  445. SectionEnd
  446. Section "Windows XP安全更新程序(KB936357)" SEC81
  447. SetOutPath "$TEMP"
  448.   File "D:\xp\KB936357.exe"
  449.         ExecWait '"$TEMP\KB936357.exe" /passive /quiet /norestart /nobackup'
  450. SectionEnd
  451. Section "Windows XP安全更新程序(KB937143)" SEC82
  452. SetOutPath "$TEMP"
  453.   File "D:\xp\KB937143.exe"
  454.         ExecWait '"$TEMP\KB937143.exe" /passive /quiet /norestart /nobackup'
  455. SectionEnd
  456. Section "Windows XP安全更新程序(KB938127)" SEC83
  457. SetOutPath "$TEMP"
  458.   File "D:\xp\KB938127.exe"
  459.         ExecWait '"$TEMP\KB938127.exe" /passive /quiet /norestart /nobackup'
  460. SectionEnd
  461. Section "Windows XP安全更新程序(KB938828)" SEC84
  462. SetOutPath "$TEMP"
  463.   File "D:\xp\KB938828.exe"
  464.         ExecWait '"$TEMP\KB938828.exe" /passive /quiet /norestart /nobackup'
  465. SectionEnd
  466. Section "Windows XP安全更新程序(KB938829)" SEC85
  467. SetOutPath "$TEMP"
  468.   File "D:\xp\KB938829.exe"
  469.         ExecWait '"$TEMP\KB938829.exe" /passive /quiet /norestart /nobackup'
  470. SectionEnd
  471. Section "Internet Explorer累积性安全更新(KB939653)" SEC86
  472. SetOutPath "$TEMP"
  473.   File "D:\xp\KB939653.exe"
  474.         ExecWait '"$TEMP\KB939653.exe" /passive /quiet /norestart /nobackup'
  475. SectionEnd
  476. Section "Outlook Express安全更新(KB941202)" SEC87
  477. SetOutPath "$TEMP"
  478.   File "D:\xp\KB941202.exe"
  479.         ExecWait '"$TEMP\KB941202.exe" /passive /quiet /norestart /nobackup'
  480. SectionEnd






  481. ;删除文件
  482. Function .onInstSuccess

  483. Delete "$WINDIR\KB*.log"
  484. delete "$WINDIR\temp*.log"
  485. rmdir /r "$WINDIR\$hf_mig$"
  486. Delete "$TEMP\KB*.exe"
  487. MessageBox MB_YESNO|MB_ICONQUESTION "系统需要重新启动才能完成WinXP的更新。要立即重启吗?" IDNO +2
  488.   Reboot
  489. FunctionEnd

  490. ;注册表判断组件
  491. Function ComponentsPre
  492. ; 如果注册表 HKEY_CURRENT_USER\Software\Test 下存在 SecA 键,且其值为 0 ,那么组件默认就不勾选。
  493. ; 以下同。 1为选中,8为描黑显示,16为只读,32为未选中,64为必须选中

  494. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB873339" "Description"
  495. IfErrors +2
  496. SectionSetFlags ${Sec01} 16
  497.   StrCmp $0 0 0 +1
  498.    

  499. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB885835" "Description"
  500. IfErrors +2
  501. SectionSetFlags ${Sec02} 16
  502.   StrCmp $0 0 0 +1

  503. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB885836" "Description"
  504. IfErrors +2
  505. SectionSetFlags ${Sec03} 16
  506.   StrCmp $0 0 0 +1

  507. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB886185" "Description"
  508. IfErrors +2
  509. SectionSetFlags ${Sec04} 16
  510.   StrCmp $0 0 0 +1

  511. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB886677" "Description"
  512. IfErrors +2
  513. SectionSetFlags ${Sec05} 16
  514.   StrCmp $0 0 0 +1

  515. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB888302" "Description"
  516. IfErrors +2
  517. SectionSetFlags ${Sec06} 16
  518.   StrCmp $0 0 0 +1

  519. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB890046" "Description"
  520. IfErrors +2
  521. SectionSetFlags ${Sec07} 16
  522.   StrCmp $0 0 0 +1

  523. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB890859" "Description"
  524. IfErrors +2
  525. SectionSetFlags ${Sec08} 16
  526.   StrCmp $0 0 0 +1
  527. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB891781" "Description"
  528. IfErrors +2
  529. SectionSetFlags ${Sec09} 16
  530.   StrCmp $0 0 0 +1
  531.   
  532. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\WGA\SP0\KB892130" "Type"
  533. IfErrors +2
  534. SectionSetFlags ${Sec10} 16
  535.   StrCmp $0 0 0 +1
  536.   
  537. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893756" "Description"
  538. IfErrors +2
  539. SectionSetFlags ${Sec11} 16
  540.   StrCmp $0 0 0 +1
  541. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2" "Description"
  542. IfErrors +2
  543. SectionSetFlags ${Sec12} 16
  544.   StrCmp $0 0 0 +1
  545. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB894391" "Description"
  546. IfErrors +2
  547. SectionSetFlags ${Sec13} 16
  548.   StrCmp $0 0 0 +1
  549. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896358" "Description"
  550. IfErrors +2
  551. SectionSetFlags ${Sec14} 16
  552.   StrCmp $0 0 0 +1
  553. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896423" "Description"
  554. IfErrors +2
  555. SectionSetFlags ${Sec15} 16
  556.   StrCmp $0 0 0 +1
  557. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896428" "Description"
  558. IfErrors +2
  559. SectionSetFlags ${Sec16} 16
  560.   StrCmp $0 0 0 +1
  561. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB898461" "Description"
  562. IfErrors +2
  563. SectionSetFlags ${Sec17} 16
  564.   StrCmp $0 0 0 +1
  565. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899587" "Description"
  566. IfErrors +2
  567. SectionSetFlags ${Sec18} 16
  568.   StrCmp $0 0 0 +1
  569. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899591" "Description"
  570. IfErrors +2
  571. SectionSetFlags ${Sec19} 16
  572.   StrCmp $0 0 0 +1
  573. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900485" "Description"
  574. IfErrors +2
  575. SectionSetFlags ${Sec20} 16
  576.   StrCmp $0 0 0 +1
  577. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900725" "Description"
  578. IfErrors +2
  579. SectionSetFlags ${Sec21} 16
  580.   StrCmp $0 0 0 +1
  581. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901017" "Description"
  582. IfErrors +2
  583. SectionSetFlags ${Sec22} 16
  584.   StrCmp $0 0 0 +1
  585. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901190" "Description"
  586. IfErrors +2
  587. SectionSetFlags ${Sec23} 16
  588.   StrCmp $0 0 0 +1
  589. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901214" "Description"
  590. IfErrors +2
  591. SectionSetFlags ${Sec24} 16
  592.   StrCmp $0 0 0 +1
  593. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB902400" "Description"
  594. IfErrors +2
  595. SectionSetFlags ${Sec25} 16
  596.   StrCmp $0 0 0 +1
  597. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB904706" "Description"
  598. IfErrors +2
  599. SectionSetFlags ${Sec26} 16
  600.   StrCmp $0 0 0 +1
  601. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905414" "Description"
  602. IfErrors +2
  603. SectionSetFlags ${Sec27} 16
  604.   StrCmp $0 0 0 +1
  605. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905749" "Description"
  606. IfErrors +2
  607. SectionSetFlags ${Sec28} 16
  608.   StrCmp $0 0 0 +1
  609. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908519" "Description"
  610. IfErrors +2
  611. SectionSetFlags ${Sec29} 16
  612.   StrCmp $0 0 0 +1
  613. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908531" "Description"
  614. IfErrors +2
  615. SectionSetFlags ${Sec30} 16
  616.   StrCmp $0 0 0 +1
  617. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB910437" "Description"
  618. IfErrors +2
  619. SectionSetFlags ${Sec31} 16
  620.   StrCmp $0 0 0 +1
  621. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911280" "Description"
  622. IfErrors +2
  623. SectionSetFlags ${Sec32} 16
  624.   StrCmp $0 0 0 +1
  625. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911562" "Description"
  626. IfErrors +2
  627. SectionSetFlags ${Sec33} 16
  628.   StrCmp $0 0 0 +1
  629.   ;Windows Media Player
  630. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows Media Player\KB911564" "PackageName"
  631. IfErrors +2
  632. SectionSetFlags ${Sec34} 16
  633.   StrCmp $0 0 0 +1
  634. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911927" "Description"
  635. IfErrors +2
  636. SectionSetFlags ${Sec35} 16
  637.   StrCmp $0 0 0 +1
  638. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB913580" "Description"
  639. IfErrors +2
  640. SectionSetFlags ${Sec36} 16
  641.   StrCmp $0 0 0 +1
  642. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914388" "Description"
  643. IfErrors +2
  644. SectionSetFlags ${Sec37} 16
  645.   StrCmp $0 0 0 +1
  646. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914389" "Description"
  647. IfErrors +2
  648. SectionSetFlags ${Sec38} 16
  649.   StrCmp $0 0 0 +1
  650. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB916595" "Description"
  651. IfErrors +2
  652. SectionSetFlags ${Sec39} 16
  653.   StrCmp $0 0 0 +1
  654. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917344" "Description"
  655. IfErrors +2
  656. SectionSetFlags ${Sec40} 16
  657.   StrCmp $0 0 0 +1
  658. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917953" "Description"
  659. IfErrors +2
  660. SectionSetFlags ${Sec41} 16
  661.   StrCmp $0 0 0 +1
  662. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918118" "Description"
  663. IfErrors +2
  664. SectionSetFlags ${Sec42} 16
  665.   StrCmp $0 0 0 +1
  666. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918439" "Description"
  667. IfErrors +2
  668. SectionSetFlags ${Sec43} 16
  669.   StrCmp $0 0 0 +1
  670. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB919007" "Description"
  671. IfErrors +2
  672. SectionSetFlags ${Sec44} 16
  673.   StrCmp $0 0 0 +1
  674. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920213" "Description"
  675. IfErrors +2
  676. SectionSetFlags ${Sec45} 16
  677.   StrCmp $0 0 0 +1
  678. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920670" "Description"
  679. IfErrors +2
  680. SectionSetFlags ${Sec46} 16
  681.   StrCmp $0 0 0 +1
  682. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920683" "Description"
  683. IfErrors +2
  684. SectionSetFlags ${Sec47} 16
  685.   StrCmp $0 0 0 +1
  686. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920685" "Description"
  687. IfErrors +2
  688. SectionSetFlags ${Sec48} 16
  689.   StrCmp $0 0 0 +1
  690. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920872" "Description"
  691. IfErrors +2
  692. SectionSetFlags ${Sec49} 16
  693.   StrCmp $0 0 0 +1
  694. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB921503" "Description"
  695. IfErrors +2
  696. SectionSetFlags ${Sec50} 16
  697.   StrCmp $0 0 0 +1
  698. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922582" "Description"
  699. IfErrors +2
  700. SectionSetFlags ${Sec51} 16
  701.   StrCmp $0 0 0 +1
  702. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922819" "Description"
  703. IfErrors +2
  704. SectionSetFlags ${Sec52} 16
  705.   StrCmp $0 0 0 +1
  706. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923191" "Description"
  707. IfErrors +2
  708. SectionSetFlags ${Sec53} 16
  709.   StrCmp $0 0 0 +1
  710. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923414" "Description"
  711. IfErrors +2
  712. SectionSetFlags ${Sec54} 16
  713.   StrCmp $0 0 0 +1
  714.   
  715. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\KB923689" "Description"
  716. IfErrors +2
  717. SectionSetFlags ${Sec55} 16
  718.   StrCmp $0 0 0 +1
  719.   
  720. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923980" "Description"
  721. IfErrors +2
  722. SectionSetFlags ${Sec56} 16
  723.   StrCmp $0 0 0 +1
  724. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924270" "Description"
  725. IfErrors +2
  726. SectionSetFlags ${Sec57} 16
  727.   StrCmp $0 0 0 +1
  728. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924496" "Description"
  729. IfErrors +2
  730. SectionSetFlags ${Sec58} 16
  731.   StrCmp $0 0 0 +1
  732. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924667" "Description"
  733. IfErrors +2
  734. SectionSetFlags ${Sec59} 16
  735.   StrCmp $0 0 0 +1

  736. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows Media Player 6.4\KB925398_WMP64" "Description"
  737. IfErrors +2
  738. SectionSetFlags ${Sec60} 16
  739.   StrCmp $0 0 0 +1

  740. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB925902" "Description"
  741. IfErrors +2
  742. SectionSetFlags ${Sec61} 16
  743.   StrCmp $0 0 0 +1
  744. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926255" "Description"
  745. IfErrors +2
  746. SectionSetFlags ${Sec62} 16
  747.   StrCmp $0 0 0 +1
  748. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926436" "Description"
  749. IfErrors +2
  750. SectionSetFlags ${Sec63} 16
  751.   StrCmp $0 0 0 +1
  752. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927779" "Description"
  753. IfErrors +2
  754. SectionSetFlags ${Sec64} 16
  755.   StrCmp $0 0 0 +1
  756. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927802" "Description"
  757. IfErrors +2
  758. SectionSetFlags ${Sec65} 16
  759.   StrCmp $0 0 0 +1
  760. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927891" "Description"
  761. IfErrors +2
  762. SectionSetFlags ${Sec66} 16
  763.   StrCmp $0 0 0 +1
  764. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928255" "Description"
  765. IfErrors +2
  766. SectionSetFlags ${Sec67} 16
  767.   StrCmp $0 0 0 +1
  768. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928843" "Description"
  769. IfErrors +2
  770. SectionSetFlags ${Sec68} 16
  771.   StrCmp $0 0 0 +1
  772. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929123" "Description"
  773. IfErrors +2
  774. SectionSetFlags ${Sec69} 16
  775.   StrCmp $0 0 0 +1
  776. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929969" "Description"
  777. IfErrors +2
  778. SectionSetFlags ${Sec70} 16
  779.   StrCmp $0 0 0 +1
  780. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930178" "Description"
  781. IfErrors +2
  782. SectionSetFlags ${Sec71} 16
  783.   StrCmp $0 0 0 +1
  784. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930916" "Description"
  785. IfErrors +2
  786. SectionSetFlags ${Sec72} 16
  787.   StrCmp $0 0 0 +1
  788. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931261" "Description"
  789. IfErrors +2
  790. SectionSetFlags ${Sec73} 16
  791.   StrCmp $0 0 0 +1
  792. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931784" "Description"
  793. IfErrors +2
  794. SectionSetFlags ${Sec74} 16
  795.   StrCmp $0 0 0 +1
  796. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932168" "Description"
  797. IfErrors +2
  798. SectionSetFlags ${Sec75} 16
  799.   StrCmp $0 0 0 +1
  800. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB933729" "Description"
  801. IfErrors +2
  802. SectionSetFlags ${Sec76} 16
  803.   StrCmp $0 0 0 +1
  804. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935448" "Description"
  805. IfErrors +2
  806. SectionSetFlags ${Sec77} 16
  807.   StrCmp $0 0 0 +1
  808. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935839" "Description"
  809. IfErrors +2
  810. SectionSetFlags ${Sec78} 16
  811.   StrCmp $0 0 0 +1
  812. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935840" "Description"
  813. IfErrors +2
  814. SectionSetFlags ${Sec79} 16
  815.   StrCmp $0 0 0 +1
  816. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936021" "Description"
  817. IfErrors +2
  818. SectionSetFlags ${Sec80} 16
  819.   StrCmp $0 0 0 +1
  820. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936357" "Description"
  821. IfErrors +2
  822. SectionSetFlags ${Sec81} 16
  823.   StrCmp $0 0 0 +1
  824. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB937143" "Description"
  825. IfErrors +2
  826. SectionSetFlags ${Sec82} 16
  827.   StrCmp $0 0 0 +1
  828. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938127" "Description"
  829. IfErrors +2
  830. SectionSetFlags ${Sec83} 16
  831.   StrCmp $0 0 0 +1
  832. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938828" "Description"
  833. IfErrors +2
  834. SectionSetFlags ${Sec84} 16
  835.   StrCmp $0 0 0 +1
  836. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938829" "Description"
  837. IfErrors +2
  838. SectionSetFlags ${Sec85} 16
  839.   StrCmp $0 0 0 +1
  840. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB939653" "Description"
  841. IfErrors +2
  842. SectionSetFlags ${Sec86} 16
  843.   StrCmp $0 0 0 +1
  844. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB941202" "Description"
  845. IfErrors +2
  846. SectionSetFlags ${Sec87} 16
  847.   StrCmp $0 0 0 +1


  848. Functionend


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

  850. ; 区段组件描述
复制代码


回复

使用道具 举报

 楼主| 发表于 2017-2-26 13:38:37 | 显示全部楼层

NSIS XP SP2补丁包QFE模式

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

  2. ; 安装程序初始定义常量
  3. !define PRODUCT_NAME "霏凡WinXP-sp2至12.12补丁集--拉风版"
  4. !define PRODUCT_VERSION ""
  5. !define PRODUCT_PUBLISHER "aaplayboy"
  6. !define PRODUCT_WEB_SITE "http://bbs.crsky.com"

  7. ;SetCompressor lzma
  8. SetCompressor /SOLID lzma



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

  12. ; MUI 预定义常量
  13. !define MUI_ABORTWARNING
  14. ;!define  MUI_COMPONENTSPAGE_SMALLDESC
  15. !define MUI_COMPONENTSPAGE_NODESC
  16. !define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\CRSKY.ico"
  17. !define MUI_WELCOMEFINISHPAGE_BITMAP  "${NSISDIR}\Contrib\Graphics\Wizard\crsky.bmp"
  18.   ;加标图
  19.   ;!define MUI_HEADERIMAGE
  20. ; !define MUI_HEADERIMAGE_BITMAP "tm.bmp"
  21.   ;!define MUI_UI_HEADERIMAGE "${NSISDIR}\Contrib\UIs\modern_headerbmptop.exe"

  22. ;注册表判断组件
  23. !define MUI_PAGE_CUSTOMFUNCTION_Pre ComponentsPre


  24. ; 欢迎页面
  25. !insertmacro MUI_PAGE_WELCOME
  26. ; 许可协议页面
  27. !insertmacro MUI_PAGE_LICENSE "D:\xp\xp.txt"
  28. ; 组件选择页面
  29. !insertmacro MUI_PAGE_COMPONENTS
  30. ComponentText "" "说明:列表中阴影未选中的""     则表示该补丁已安装"
  31. ; 安装过程页面
  32. !insertmacro MUI_PAGE_INSTFILES
  33. ; 安装完成页面
  34. !insertmacro MUI_PAGE_FINISH

  35. ; 安装界面包含的语言设置
  36. !insertmacro MUI_LANGUAGE "SimpChinese"
  37.   VIProductVersion "0.7.1.2"
  38.   VIAddVersionKey /LANG=2052 "ProductName" "霏凡WinXP-sp2至12.12补丁集拉风版"
  39.   VIAddVersionKey /LANG=2052 "CompanyName" "aaplayboy制作"
  40.   VIAddVersionKey /LANG=2052 "LegalCopyright" "aaplayboy"
  41.   VIAddVersionKey /LANG=2052 "FileDescription" "Winxp-sp2 Update"
  42.   VIAddVersionKey /LANG=2052 "FileVersion" "2007.12"
  43. ; 安装预释放文件
  44. !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
  45. ; ------ MUI 现代界面定义结束 ------

  46. Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
  47. OutFile "Setup.exe"
  48. InstallDir "$TEMP"
  49. ShowInstDetails show
  50. BrandingText "aaplayboy制作"

  51. Section "Windows XP安全更新程序(KB873339)" SEC01
  52.     SetOutPath "$TEMP\xp2\KB873339"
  53.       File /r "D:\xp\KB873339\*.*"
  54.         ExecWait '"$TEMP\xp2\KB873339\update\update.exe" /q /n /z /b:SP2QFE'
  55.     SectionEnd

  56. Section "Windows XP安全更新程序(KB885835)" SEC02
  57. SetOutPath "$TEMP\xp2\KB885835"
  58.       File /r "D:\xp\KB885835\*.*"
  59.         ExecWait '"$TEMP\xp2\KB885835\update\update.exe" /q /n /z /b:SP2QFE'
  60. SectionEnd

  61. Section "Windows XP安全更新程序(KB885836)" SEC03
  62. SetOutPath "$TEMP\xp2\KB885836"
  63.       File /r "D:\xp\KB885836\*.*"
  64.         ExecWait '"$TEMP\xp2\KB885836\update\update.exe" /q /n /z /b:SP2QFE'
  65. SectionEnd

  66. Section "Windows XP安全更新程序(KB886185)" SEC04
  67. SetOutPath "$TEMP\xp2\KB886185"
  68.       File /r "D:\xp\KB886185\*.*"
  69.         ExecWait '"$TEMP\xp2\KB886185\update\update.exe" /q /n /z /b:SP2QFE'
  70. SectionEnd

  71. Section "Windows XP安全更新程序(KB886677)" SEC05
  72. SetOutPath "$TEMP\xp2\KB886677"
  73.       File /r "D:\xp\KB886677\*.*"
  74.         ExecWait '"$TEMP\xp2\KB886677\update\update.exe" /q /n /z /b:SP2QFE'
  75. SectionEnd

  76. Section "Windows XP安全更新程序(KB888302)" SEC06
  77. SetOutPath "$TEMP\xp2\KB888302"
  78.       File /r "D:\xp\KB888302\*.*"
  79.         ExecWait '"$TEMP\xp2\KB888302\update\update.exe" /q /n /z /b:SP2QFE'
  80. SectionEnd

  81. Section "Windows XP安全更新程序(KB890046)" SEC07
  82. SetOutPath "$TEMP\xp2\KB890046"
  83.       File /r "D:\xp\KB890046\*.*"
  84.         ExecWait '"$TEMP\xp2\KB890046\update\update.exe" /q /n /z /b:SP2QFE'
  85. SectionEnd
  86. Section "Windows XP安全更新程序(KB890859)" SEC08
  87. SetOutPath "$TEMP\xp2\KB890859"
  88.       File /r "D:\xp\KB890859\*.*"
  89.         ExecWait '"$TEMP\xp2\KB890859\update\update.exe" /q /n /z /b:SP2QFE'
  90. SectionEnd
  91. Section "Windows XP安全更新程序(KB891781)" SEC09
  92. SetOutPath "$TEMP\xp2\KB891781"
  93.       File /r "D:\xp\KB891781\*.*"
  94.         ExecWait '"$TEMP\xp2\KB891781\update\update.exe" /q /n /z /b:SP2QFE'
  95. SectionEnd
  96. ;Windows 正版增值验证工具
  97. ;Section "Windows 正版增值验证工具(KB892130)" SEC10
  98. ;SetOutPath "$TEMP\xp2\KB892130"
  99.       ;File /r "D:\xp\KB892130\*.*"
  100.         ;ExecWait '"$TEMP\xp2\KB892130\update\update.exe" /passive /quiet /norestart /nobackup'
  101. ;SectionEnd

  102. Section "Windows XP安全更新程序(KB893756)" SEC11
  103. SetOutPath "$TEMP\xp2\KB893756"
  104.       File /r "D:\xp\KB893756\*.*"
  105.         ExecWait '"$TEMP\xp2\KB893756\update\update.exe" /q /n /z /b:SP2QFE'
  106. SectionEnd
  107. ;installer 3.1
  108. Section "Microsoft Windows安装程序3.1(KB893803)" SEC12
  109. SetOutPath "$TEMP\xp2\KB893803"
  110.       File /r "D:\xp\KB893803\*.*"
  111.         ExecWait '"$TEMP\xp2\KB893803\update\update.exe" /passive /quiet /norestart /nobackup'
  112. SectionEnd
  113. Section "Windows XP安全更新程序(KB894391)" SEC13
  114. SetOutPath "$TEMP\xp2\KB894391"
  115.       File /r "D:\xp\KB894391\*.*"
  116.         ExecWait '"$TEMP\xp2\KB894391\update\update.exe" /q /n /z /b:SP2QFE'
  117. SectionEnd
  118. Section "Windows XP安全更新程序(KB896358)" SEC14
  119. SetOutPath "$TEMP\xp2\KB896358"
  120.       File /r "D:\xp\KB896358\*.*"
  121.         ExecWait '"$TEMP\xp2\KB896358\update\update.exe" /q /n /z /b:SP2QFE'
  122. SectionEnd
  123. Section "Windows XP安全更新程序(KB896423)" SEC15
  124. SetOutPath "$TEMP\xp2\KB896423"
  125.       File /r "D:\xp\KB896423\*.*"
  126.         ExecWait '"$TEMP\xp2\KB896423\update\update.exe" /q /n /z /b:SP2QFE'
  127. SectionEnd
  128. Section "Windows XP安全更新程序(KB896428)" SEC16
  129. SetOutPath "$TEMP\xp2\KB896428"
  130.       File /r "D:\xp\KB896428\*.*"
  131.         ExecWait '"$TEMP\xp2\KB896428\update\update.exe" /q /n /z /b:SP2QFE'
  132. SectionEnd
  133. Section "Windows XP安全更新程序(KB898461)" SEC17
  134. SetOutPath "$TEMP\xp2\KB898461"
  135.       File /r "D:\xp\KB898461\*.*"
  136.         ExecWait '"$TEMP\xp2\KB898461\update\update.exe" /q /n /z /b:SP2QFE'
  137. SectionEnd
  138. Section "Windows XP安全更新程序(KB899587)" SEC18
  139. SetOutPath "$TEMP\xp2\KB899587"
  140.       File /r "D:\xp\KB899587\*.*"
  141.         ExecWait '"$TEMP\xp2\KB899587\update\update.exe" /q /n /z /b:SP2QFE'
  142. SectionEnd
  143. Section "Windows XP安全更新程序(KB899591)" SEC19
  144. SetOutPath "$TEMP\xp2\KB899591"
  145.       File /r "D:\xp\KB899591\*.*"
  146.         ExecWait '"$TEMP\xp2\KB899591\update\update.exe" /q /n /z /b:SP2QFE'
  147. SectionEnd
  148. Section "Windows XP安全更新程序(KB900485)" SEC20
  149. SetOutPath "$TEMP\xp2\KB900485"
  150.       File /r "D:\xp\KB900485\*.*"
  151.         ExecWait '"$TEMP\xp2\KB900485\update\update.exe" /q /n /z /b:SP2QFE'
  152. SectionEnd

  153. Section "Windows XP安全更新程序(KB901017)" SEC22
  154. SetOutPath "$TEMP\xp2\KB901017"
  155.       File /r "D:\xp\KB901017\*.*"
  156.         ExecWait '"$TEMP\xp2\KB901017\update\update.exe" /q /n /z /b:SP2QFE'
  157. SectionEnd
  158. Section "Windows XP安全更新程序(KB901190)" SEC23
  159. SetOutPath "$TEMP\xp2\KB901190"
  160.       File /r "D:\xp\KB901190\*.*"
  161.         ExecWait '"$TEMP\xp2\KB901190\update\update.exe" /q /n /z /b:SP2QFE'
  162. SectionEnd
  163. Section "Windows XP安全更新程序(KB901214)" SEC24
  164. SetOutPath "$TEMP\xp2\KB901214"
  165.       File /r "D:\xp\KB901214\*.*"
  166.         ExecWait '"$TEMP\xp2\KB901214\update\update.exe" /q /n /z /b:SP2QFE'
  167. SectionEnd
  168. Section "Windows XP安全更新程序(KB902400)" SEC25
  169. SetOutPath "$TEMP\xp2\KB902400"
  170.       File /r "D:\xp\KB902400\*.*"
  171.         ExecWait '"$TEMP\xp2\KB902400\update\update.exe" /q /n /z /b:SP2QFE'
  172. SectionEnd
  173. ;Section "Windows XP安全更新程序(KB904706)" SEC26
  174. ;SetOutPath "$TEMP\xp2\KB904706"
  175.       ;File /r "D:\xp\KB904706\*.*"
  176.         ;ExecWait '"$TEMP\xp2\KB904706\update\update.exe" /q /n /z /b:SP2QFE'
  177. ;SectionEnd
  178. Section "Windows XP安全更新程序(KB905414)" SEC27
  179. SetOutPath "$TEMP\xp2\KB905414"
  180.       File /r "D:\xp\KB905414\*.*"
  181.         ExecWait '"$TEMP\xp2\KB905414\update\update.exe" /q /n /z /b:SP2QFE'
  182. SectionEnd
  183. Section "Windows XP安全更新程序(KB905749)" SEC28
  184. SetOutPath "$TEMP\xp2\KB905749"
  185.       File /r "D:\xp\KB905749\*.*"
  186.         ExecWait '"$TEMP\xp2\KB905749\update\update.exe" /q /n /z /b:SP2QFE'
  187. SectionEnd
  188. Section "Windows XP安全更新程序(KB908519)" SEC29
  189. SetOutPath "$TEMP\xp2\KB908519"
  190.       File /r "D:\xp\KB908519\*.*"
  191.         ExecWait '"$TEMP\xp2\KB908519\update\update.exe" /q /n /z /b:SP2QFE'
  192. SectionEnd

  193. Section "Windows XP安全更新程序(KB910437)" SEC31
  194. SetOutPath "$TEMP\xp2\KB910437"
  195.       File /r "D:\xp\KB910437\*.*"
  196.         ExecWait '"$TEMP\xp2\KB910437\update\update.exe" /q /n /z /b:SP2QFE'
  197. SectionEnd
  198. Section "Windows XP安全更新程序(KB911280)" SEC32
  199. SetOutPath "$TEMP\xp2\KB911280"
  200.       File /r "D:\xp\KB911280\*.*"
  201.         ExecWait '"$TEMP\xp2\KB911280\update\update.exe" /q /n /z /b:SP2QFE'
  202. SectionEnd
  203. Section "Windows XP安全更新程序(KB911562)" SEC33
  204. SetOutPath "$TEMP\xp2\KB911562"
  205.       File /r "D:\xp\KB911562\*.*"
  206.         ExecWait '"$TEMP\xp2\KB911562\update\update.exe" /q /n /z /b:SP2QFE'
  207. SectionEnd
  208. ;wmp
  209. Section "Windows Media Player安全更新(KB911564)" SEC34
  210. SetOutPath "$TEMP\xp2\KB911564"
  211.       File /r "D:\xp\KB911564\*.*"
  212.         ExecWait '"$TEMP\xp2\KB911564\update\update.exe" /passive /quiet /norestart /nobackup'
  213. SectionEnd
  214. Section "Windows XP安全更新程序(KB911927)" SEC35
  215. SetOutPath "$TEMP\xp2\KB911927"
  216.       File /r "D:\xp\KB911927\*.*"
  217.         ExecWait '"$TEMP\xp2\KB911927\update\update.exe" /q /n /z /b:SP2QFE'
  218. SectionEnd
  219. Section "Windows XP安全更新程序(KB913580)" SEC36
  220. SetOutPath "$TEMP\xp2\KB913580"
  221.       File /r "D:\xp\KB913580\*.*"
  222.         ExecWait '"$TEMP\xp2\KB913580\update\update.exe" /q /n /z /b:SP2QFE'
  223. SectionEnd
  224. Section "Windows XP安全更新程序(KB914388)" SEC37
  225. SetOutPath "$TEMP\xp2\KB914388"
  226.       File /r "D:\xp\KB914388\*.*"
  227.         ExecWait '"$TEMP\xp2\KB914388\update\update.exe" /q /n /z /b:SP2QFE'
  228. SectionEnd
  229. Section "Windows XP安全更新程序(KB914389)" SEC38
  230. SetOutPath "$TEMP\xp2\KB914389"
  231.       File /r "D:\xp\KB914389\*.*"
  232.         ExecWait '"$TEMP\xp2\KB914389\update\update.exe" /q /n /z /b:SP2QFE'
  233. SectionEnd
  234. Section "Windows XP安全更新程序(KB916595)" SEC39
  235. SetOutPath "$TEMP\xp2\KB916595"
  236.       File /r "D:\xp\KB916595\*.*"
  237.         ExecWait '"$TEMP\xp2\KB916595\update\update.exe" /q /n /z /b:SP2QFE'
  238. SectionEnd
  239. Section "Windows XP安全更新程序(KB917344)" SEC40
  240. SetOutPath "$TEMP\xp2\KB917344"
  241.       File /r "D:\xp\KB917344\*.*"
  242.        ExecWait '"$TEMP\xp2\KB917344\update\update.exe" /q /n /z /b:SP2QFE'
  243. SectionEnd
  244. Section "Windows XP安全更新程序(KB917953)" SEC41
  245. SetOutPath "$TEMP\xp2\KB917953"
  246.       File /r "D:\xp\KB917953\*.*"
  247.         ExecWait '"$TEMP\xp2\KB917953\update\update.exe" /q /n /z /b:SP2QFE'
  248. SectionEnd
  249. Section "Windows XP安全更新程序(KB918118)" SEC42
  250. SetOutPath "$TEMP\xp2\KB918118"
  251.       File /r "D:\xp\KB918118\*.*"
  252.         ExecWait '"$TEMP\xp2\KB918118\update\update.exe" /q /n /z /b:SP2QFE'
  253. SectionEnd
  254. Section "Windows XP安全更新程序(KB918439)" SEC43
  255. SetOutPath "$TEMP\xp2\KB918439"
  256.       File /r "D:\xp\KB918439\*.*"
  257.         ExecWait '"$TEMP\xp2\KB918439\update\update.exe" /q /n /z /b:SP2QFE'
  258. SectionEnd
  259. Section "Windows XP安全更新程序(KB919007)" SEC44
  260. SetOutPath "$TEMP\xp2\KB919007"
  261.       File /r "D:\xp\KB919007\*.*"
  262.         ExecWait '"$TEMP\xp2\KB919007\update\update.exe" /q /n /z /b:SP2QFE'
  263. SectionEnd


  264. Section "Windows XP安全更新程序(KB920670)" SEC46
  265. SetOutPath "$TEMP\xp2\KB920670"
  266.       File /r "D:\xp\KB920670\*.*"
  267.         ExecWait '"$TEMP\xp2\KB920670\update\update.exe" /q /n /z /b:SP2QFE'
  268. SectionEnd
  269. Section "Windows XP安全更新程序(KB920683)" SEC47
  270. SetOutPath "$TEMP\xp2\KB920683"
  271.       File /r "D:\xp\KB920683\*.*"
  272.         ExecWait '"$TEMP\xp2\KB920683\update\update.exe" /q /n /z /b:SP2QFE'
  273. SectionEnd
  274. Section "Windows XP安全更新程序(KB920685)" SEC48
  275. SetOutPath "$TEMP\xp2\KB920685"
  276.       File /r "D:\xp\KB920685\*.*"
  277.         ExecWait '"$TEMP\xp2\KB920685\update\update.exe" /q /n /z /b:SP2QFE'
  278. SectionEnd
  279. Section "Windows XP安全更新程序(KB920872)" SEC49
  280. SetOutPath "$TEMP\xp2\KB920872"
  281.       File /r "D:\xp\KB920872\*.*"
  282.         ExecWait '"$TEMP\xp2\KB920872\update\update.exe" /q /n /z /b:SP2QFE'
  283. SectionEnd
  284. Section "Windows XP安全更新程序(KB921503)" SEC50
  285. SetOutPath "$TEMP\xp2\KB921503"
  286.       File /r "D:\xp\KB921503\*.*"
  287.         ExecWait '"$TEMP\xp2\KB921503\update\update.exe" /q /n /z /b:SP2QFE'
  288. SectionEnd
  289. Section "Windows XP安全更新程序(KB922582)" SEC51
  290. SetOutPath "$TEMP\xp2\KB922582"
  291.       File /r "D:\xp\KB922582\*.*"
  292.         ExecWait '"$TEMP\xp2\KB922582\update\update.exe" /q /n /z /b:SP2QFE'
  293. SectionEnd
  294. Section "Windows XP安全更新程序(KB922819)" SEC52
  295. SetOutPath "$TEMP\xp2\KB922819"
  296.       File /r "D:\xp\KB922819\*.*"
  297.         ExecWait '"$TEMP\xp2\KB922819\update\update.exe" /q /n /z /b:SP2QFE'
  298. SectionEnd
  299. Section "Windows XP安全更新程序(KB923191)" SEC53
  300. SetOutPath "$TEMP\xp2\KB923191"
  301.       File /r "D:\xp\KB923191\*.*"
  302.         ExecWait '"$TEMP\xp2\KB923191\update\update.exe" /q /n /z /b:SP2QFE'
  303. SectionEnd
  304. Section "Windows XP安全更新程序(KB923414)" SEC54
  305. SetOutPath "$TEMP\xp2\KB923414"
  306.       File /r "D:\xp\KB923414\*.*"
  307.         ExecWait '"$TEMP\xp2\KB923414\update\update.exe" /q /n /z /b:SP2QFE'
  308. SectionEnd
  309. ;Section "Windows XP安全更新程序(KB923689)" SEC55
  310. ;SetOutPath "$TEMP\xp2\KB923689"
  311.       ;File /r "D:\xp\KB923689\*.*"
  312.         ;ExecWait '"$TEMP\xp2\KB923689\update\update.exe" /q /n /z /b:SP2QFE'
  313. ;SectionEnd
  314. Section "Windows XP安全更新程序(KB923980)" SEC56
  315. SetOutPath "$TEMP\xp2\KB923980"
  316.       File /r "D:\xp\KB923980\*.*"
  317.         ExecWait '"$TEMP\xp2\KB923980\update\update.exe" /q /n /z /b:SP2QFE'
  318. SectionEnd
  319. Section "Windows XP安全更新程序(KB924270)" SEC57
  320. SetOutPath "$TEMP\xp2\KB924270"
  321.       File /r "D:\xp\KB924270\*.*"
  322.         ExecWait '"$TEMP\xp2\KB924270\update\update.exe" /q /n /z /b:SP2QFE'
  323. SectionEnd
  324. Section "Windows XP安全更新程序(KB924496)" SEC58
  325. SetOutPath "$TEMP\xp2\KB924496"
  326.       File /r "D:\xp\KB924496\*.*"
  327.         ExecWait '"$TEMP\xp2\KB924496\update\update.exe" /q /n /z /b:SP2QFE'
  328. SectionEnd
  329. Section "Windows XP安全更新程序(KB924667)" SEC59
  330. SetOutPath "$TEMP\xp2\KB924667"
  331.       File /r "D:\xp\KB924667\*.*"
  332.         ExecWait '"$TEMP\xp2\KB924667\update\update.exe" /q /n /z /b:SP2QFE'
  333. SectionEnd
  334. Section "Windows Media Player6.4安全更新(KB925398)" SEC60
  335. SetOutPath "$TEMP\xp2\KB925398"
  336.       File /r "D:\xp\KB925398\*.*"
  337.         ExecWait '"$TEMP\xp2\KB925398\update\update.exe" /passive /quiet /norestart /nobackup'
  338. SectionEnd
  339. Section "Windows XP安全更新程序(KB925902)" SEC61
  340. SetOutPath "$TEMP\xp2\KB925902"
  341.       File /r "D:\xp\KB925902\*.*"
  342.         ExecWait '"$TEMP\xp2\KB925902\update\update.exe" /q /n /z /b:SP2QFE'
  343. SectionEnd
  344. Section "Windows XP安全更新程序(KB926255)" SEC62
  345. SetOutPath "$TEMP\xp2\KB926255"
  346.       File /r "D:\xp\KB926255\*.*"
  347.         ExecWait '"$TEMP\xp2\KB926255\update\update.exe" /q /n /z /b:SP2QFE'
  348. SectionEnd
  349. Section "Windows XP安全更新程序(KB926436)" SEC63
  350. SetOutPath "$TEMP\xp2\KB926436"
  351.       File /r "D:\xp\KB926436\*.*"
  352.         ExecWait '"$TEMP\xp2\KB926436\update\update.exe" /q /n /z /b:SP2QFE'
  353. SectionEnd
  354. Section "Windows XP安全更新程序(KB927779)" SEC64
  355. SetOutPath "$TEMP\xp2\KB927779"
  356.       File /r "D:\xp\KB927779\*.*"
  357.         ExecWait '"$TEMP\xp2\KB927779\update\update.exe" /q /n /z /b:SP2QFE'
  358. SectionEnd
  359. Section "Windows XP安全更新程序(KB927802)" SEC65
  360. SetOutPath "$TEMP\xp2\KB927802"
  361.       File /r "D:\xp\KB927802\*.*"
  362.         ExecWait '"$TEMP\xp2\KB927802\update\update.exe" /q /n /z /b:SP2QFE'
  363. SectionEnd
  364. Section "Windows XP安全更新程序(KB927891)" SEC66
  365. SetOutPath "$TEMP\xp2\KB927891"
  366.       File /r "D:\xp\KB927891\*.*"
  367.         ExecWait '"$TEMP\xp2\KB927891\update\update.exe" /q /n /z /b:SP2QFE'
  368. SectionEnd

  369. Section "Windows XP安全更新程序(KB928843)" SEC68
  370. SetOutPath "$TEMP\xp2\KB928843"
  371.       File /r "D:\xp\KB928843\*.*"
  372.         ExecWait '"$TEMP\xp2\KB928843\update\update.exe" /q /n /z /b:SP2QFE'
  373. SectionEnd

  374. Section "Outlook Express累积安全更新(KB929123)" SEC69
  375. SetOutPath "$TEMP\xp2\KB929123"
  376.       File /r "D:\xp\KB929123\*.*"
  377.         ExecWait '"$TEMP\xp2\KB929123\update\update.exe" /q /n /z /b:SP2QFE'
  378. SectionEnd
  379. ;Section "Windows XP安全更新程序(KB929969)" SEC70
  380. ;SetOutPath "$TEMP\xp2\KB929969"
  381.       ;File /r "D:\xp\KB929969\*.*"
  382.         ;ExecWait '"$TEMP\xp2\KB929969\update\update.exe" /q /n /z /b:SP2QFE'
  383. ;SectionEnd
  384. Section "Windows XP安全更新程序(KB930178)" SEC71
  385. SetOutPath "$TEMP\xp2\KB930178"
  386.       File /r "D:\xp\KB930178\*.*"
  387.         ExecWait '"$TEMP\xp2\KB930178\update\update.exe" /q /n /z /b:SP2QFE'
  388. SectionEnd
  389. Section "Windows XP安全更新程序(KB930916)" SEC72
  390. SetOutPath "$TEMP\xp2\KB930916"
  391.       File /r "D:\xp\KB930916\*.*"
  392.         ExecWait '"$TEMP\xp2\KB930916\update\update.exe" /q /n /z /b:SP2QFE'
  393. SectionEnd
  394. Section "Windows XP安全更新程序(KB931261)" SEC73
  395. SetOutPath "$TEMP\xp2\KB931261"
  396.       File /r "D:\xp\KB931261\*.*"
  397.         ExecWait '"$TEMP\xp2\KB931261\update\update.exe" /q /n /z /b:SP2QFE'
  398. SectionEnd
  399. Section "Windows XP安全更新程序(KB931784)" SEC74
  400. SetOutPath "$TEMP\xp2\KB931784"
  401.       File /r "D:\xp\KB931784\*.*"
  402.         ExecWait '"$TEMP\xp2\KB931784\update\update.exe" /q /n /z /b:SP2QFE'
  403. SectionEnd


  404. ;Section "Windows XP安全更新程序(KB935448)" SEC77
  405. ;SetOutPath "$TEMP\xp2\KB935448"
  406.      ; File /r "D:\xp\KB935448\*.*"
  407.         ;ExecWait '"$TEMP\xp2\KB935448\update\update.exe" /q /n /z /b:SP2QFE'
  408. ;SectionEnd
  409. Section "Windows XP安全更新程序(KB935839)" SEC78
  410. SetOutPath "$TEMP\xp2\KB935839"
  411.       File /r "D:\xp\KB935839\*.*"
  412.         ExecWait '"$TEMP\xp2\KB935839\update\update.exe" /q /n /z /b:SP2QFE'
  413. SectionEnd
  414. Section "Windows XP安全更新程序(KB935840)" SEC79
  415. SetOutPath "$TEMP\xp2\KB935840"
  416.       File /r "D:\xp\KB935840\*.*"
  417.         ExecWait '"$TEMP\xp2\KB935840\update\update.exe" /q /n /z /b:SP2QFE'
  418. SectionEnd
  419. Section "Windows XP安全更新程序(KB936021)" SEC80
  420. SetOutPath "$TEMP\xp2\KB936021"
  421.       File /r "D:\xp\KB936021\*.*"
  422.         ExecWait '"$TEMP\xp2\KB936021\update\update.exe" /q /n /z /b:SP2QFE'
  423. SectionEnd
  424. ;Section "Windows XP安全更新程序(KB936357)" SEC81
  425. ;SetOutPath "$TEMP\xp2\KB936357"
  426.       ;File /r "D:\xp\KB936357\*.*"
  427.         ;ExecWait '"$TEMP\xp2\KB936357\update\update.exe" /q /n /z /b:SP2QFE'
  428. ;SectionEnd
  429. ;Section "Windows XP安全更新程序(KB937143)" SEC82
  430. ;SetOutPath "$TEMP\xp2\KB937143"
  431.       ;File /r "D:\xp\KB937143\*.*"
  432.         ;ExecWait '"$TEMP\xp2\KB937143\update\update.exe" /q /n /z /b:SP2QFE'
  433. ;SectionEnd
  434. Section "Windows XP安全更新程序(KB938127)" SEC83
  435. SetOutPath "$TEMP\xp2\KB938127"
  436.       File /r "D:\xp\KB938127\*.*"
  437.         ExecWait '"$TEMP\xp2\KB938127\update\update.exe" /q /n /z /b:SP2QFE'
  438. SectionEnd
  439. Section "Windows XP安全更新程序(KB938828)" SEC84
  440. SetOutPath "$TEMP\xp2\KB938828"
  441.       File /r "D:\xp\KB938828\*.*"
  442.         ExecWait '"$TEMP\xp2\KB938828\update\update.exe" /q /n /z /b:SP2QFE'
  443. SectionEnd
  444. Section "Windows XP安全更新程序(KB938829)" SEC85
  445. SetOutPath "$TEMP\xp2\KB938829"
  446.       File /r "D:\xp\KB938829\*.*"
  447.         ExecWait '"$TEMP\xp2\KB938829\update\update.exe" /q /n /z /b:SP2QFE'
  448. SectionEnd
  449. ;Section "Internet Explorer累积性安全更新(KB939653)" SEC86
  450. ;SetOutPath "$TEMP\xp2\KB939653"
  451.       ;File /r "D:\xp\KB939653\*.*"
  452.         ;ExecWait '"$TEMP\xp2\KB939653\update\update.exe" /q /n /z /b:SP2QFE'
  453. ;SectionEnd
  454. Section "Outlook Express安全更新(KB941202)" SEC87
  455. SetOutPath "$TEMP\xp2\KB941202"
  456.       File /r "D:\xp\KB941202\*.*"
  457.         ExecWait '"$TEMP\xp2\KB941202\update\update.exe" /q /n /z /b:SP2QFE'
  458. SectionEnd

  459. Section "Windows XP安全更新程序(KB943460)" SEC88
  460. SetOutPath "$TEMP\xp2\KB943460"
  461.       File /r "D:\xp\KB943460\*.*"
  462.         ExecWait '"$TEMP\xp2\KB943460\update\update.exe" /q /n /z /b:SP2QFE'
  463. SectionEnd
  464. ;12.12
  465. Section "Windows XP安全更新程序(KB937894)" SEC89
  466. SetOutPath "$TEMP\xp2\kb937894"
  467.       File /r "D:\xp\kb937894\*.*"
  468.         ExecWait '"$TEMP\xp2\kb937894\update\update.exe" /q /n /z /b:SP2QFE'
  469. SectionEnd
  470. Section "Windows XP安全更新程序(KB941568)" SEC90
  471. SetOutPath "$TEMP\xp2\kb941568"
  472.       File /r "D:\xp\kb941568\*.*"
  473.         ExecWait '"$TEMP\xp2\kb941568\update\update.exe" /q /n /z /b:SP2QFE'
  474. SectionEnd
  475. Section "Internet Explorer累积性安全更新(KB942615)" SEC91
  476. SetOutPath "$TEMP\xp2\kb942615"
  477.       File /r "D:\xp\kb942615\*.*"
  478.         ExecWait '"$TEMP\xp2\kb942615\update\update.exe" /q /n /z /b:SP2QFE'
  479. SectionEnd
  480. Section "Windows XP安全更新程序(KB944653)" SEC92
  481. SetOutPath "$TEMP\xp2\kb944653"
  482.       File /r "D:\xp\kb944653\*.*"
  483.         ExecWait '"$TEMP\xp2\kb944653\update\update.exe" /q /n /z /b:SP2QFE'
  484. SectionEnd
  485. Section "Windows XP安全更新程序(KB942840)" SEC93
  486. SetOutPath "$TEMP\xp2\kb942840"
  487.       File /r "D:\xp\kb942840\*.*"
  488.         ExecWait '"$TEMP\xp2\kb942840\update\update.exe" /q /n /z /b:SP2QFE'
  489. SectionEnd






  490. ;安装顺序
  491. Section "Windows XP安全更新程序(KB920213)" SEC45
  492. SetOutPath "$TEMP\xp2\KB920213"
  493.       File /r "D:\xp\KB920213\*.*"
  494.         ExecWait '"$TEMP\xp2\KB920213\update\update.exe" /q /n /z /b:SP2QFE'
  495. SectionEnd

  496. Section "Windows XP安全更新程序(KB928255)" SEC67
  497. SetOutPath "$TEMP\xp2\KB928255"
  498.       File /r "D:\xp\KB928255\*.*"
  499.         ExecWait '"$TEMP\xp2\KB928255\update\update.exe" /q /n /z /b:SP2QFE'
  500. SectionEnd

  501. Section "Windows XP安全更新程序(KB932168)" SEC75
  502. SetOutPath "$TEMP\xp2\KB932168"
  503.       File /r "D:\xp\KB932168\*.*"
  504.         ExecWait '"$TEMP\xp2\KB932168\update\update.exe" /q /n /z /b:SP2QFE'
  505. SectionEnd

  506. Section "Windows XP安全更新程序(KB933729)" SEC76
  507. SetOutPath "$TEMP\xp2\KB933729"
  508.       File /r "D:\xp\KB933729\*.*"
  509.         ExecWait '"$TEMP\xp2\KB933729\update\update.exe" /q /n /z /b:SP2QFE'
  510. SectionEnd

  511. Section "Windows XP安全更新程序(KB900725)" SEC21
  512. SetOutPath "$TEMP\xp2\KB900725"
  513.       File /r "D:\xp\KB900725\*.*"
  514.         ExecWait '"$TEMP\xp2\KB900725\update\update.exe" /q /n /z /b:SP2QFE'
  515. SectionEnd

  516. Section "Windows XP安全更新程序(KB908531)" SEC30
  517. SetOutPath "$TEMP\xp2\KB908531"
  518.       File /r "D:\xp\KB908531\*.*"
  519.         ExecWait '"$TEMP\xp2\KB908531\update\update.exe" /q /n /z /b:SP2QFE'
  520. SectionEnd



  521. ;删除文件
  522. Function .onInstSuccess

  523. Delete "$WINDIR\KB*.log"
  524. delete "$WINDIR\temp*.log"
  525. rmdir /r "$WINDIR\$hf_mig$"
  526. rmdir /r "$temp\xp2"
  527. FunctionEnd

  528. ;注册表判断组件
  529. Function ComponentsPre
  530. ; 如果注册表 HKEY_CURRENT_USER\Software\Test 下存在 SecA 键,且其值为 0 ,那么组件默认就不勾选。
  531. ; 以下同。 1为选中,8为描黑显示,16为只读,32为未选中,64为必须选中

  532. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB873339" "Description"
  533. IfErrors +2
  534. SectionSetFlags ${Sec01} 16
  535.   StrCmp $0 0 0 +1
  536.    

  537. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB885835" "Description"
  538. IfErrors +2
  539. SectionSetFlags ${Sec02} 16
  540.   StrCmp $0 0 0 +1

  541. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB885836" "Description"
  542. IfErrors +2
  543. SectionSetFlags ${Sec03} 16
  544.   StrCmp $0 0 0 +1

  545. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB886185" "Description"
  546. IfErrors +2
  547. SectionSetFlags ${Sec04} 16
  548.   StrCmp $0 0 0 +1

  549. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB886677" "Description"
  550. IfErrors +2
  551. SectionSetFlags ${Sec05} 16
  552.   StrCmp $0 0 0 +1

  553. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB888302" "Description"
  554. IfErrors +2
  555. SectionSetFlags ${Sec06} 16
  556.   StrCmp $0 0 0 +1

  557. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB890046" "Description"
  558. IfErrors +2
  559. SectionSetFlags ${Sec07} 16
  560.   StrCmp $0 0 0 +1

  561. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB890859" "Description"
  562. IfErrors +2
  563. SectionSetFlags ${Sec08} 16
  564.   StrCmp $0 0 0 +1
  565. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB891781" "Description"
  566. IfErrors +2
  567. SectionSetFlags ${Sec09} 16
  568.   StrCmp $0 0 0 +1
  569.   
  570. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\WGA\SP0\KB892130" "Type"
  571. ;IfErrors +2
  572. ;SectionSetFlags ${Sec10} 16
  573.   ;StrCmp $0 0 0 +1
  574.   
  575. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893756" "Description"
  576. IfErrors +2
  577. SectionSetFlags ${Sec11} 16
  578.   StrCmp $0 0 0 +1
  579. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2" "Description"
  580. IfErrors +2
  581. SectionSetFlags ${Sec12} 16
  582.   StrCmp $0 0 0 +1
  583. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB894391" "Description"
  584. IfErrors +2
  585. SectionSetFlags ${Sec13} 16
  586.   StrCmp $0 0 0 +1
  587. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896358" "Description"
  588. IfErrors +2
  589. SectionSetFlags ${Sec14} 16
  590.   StrCmp $0 0 0 +1
  591. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896423" "Description"
  592. IfErrors +2
  593. SectionSetFlags ${Sec15} 16
  594.   StrCmp $0 0 0 +1
  595. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896428" "Description"
  596. IfErrors +2
  597. SectionSetFlags ${Sec16} 16
  598.   StrCmp $0 0 0 +1
  599. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB898461" "Description"
  600. IfErrors +2
  601. SectionSetFlags ${Sec17} 16
  602.   StrCmp $0 0 0 +1
  603. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899587" "Description"
  604. IfErrors +2
  605. SectionSetFlags ${Sec18} 16
  606.   StrCmp $0 0 0 +1
  607. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899591" "Description"
  608. IfErrors +2
  609. SectionSetFlags ${Sec19} 16
  610.   StrCmp $0 0 0 +1
  611. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900485" "Description"
  612. IfErrors +2
  613. SectionSetFlags ${Sec20} 16
  614.   StrCmp $0 0 0 +1
  615. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900725" "Description"
  616. IfErrors +2
  617. SectionSetFlags ${Sec21} 16
  618.   StrCmp $0 0 0 +1
  619. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901017" "Description"
  620. IfErrors +2
  621. SectionSetFlags ${Sec22} 16
  622.   StrCmp $0 0 0 +1
  623. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901190" "Description"
  624. IfErrors +2
  625. SectionSetFlags ${Sec23} 16
  626.   StrCmp $0 0 0 +1
  627. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901214" "Description"
  628. IfErrors +2
  629. SectionSetFlags ${Sec24} 16
  630.   StrCmp $0 0 0 +1
  631. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB902400" "Description"
  632. IfErrors +2
  633. SectionSetFlags ${Sec25} 16
  634.   StrCmp $0 0 0 +1
  635. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB904706" "Description"
  636. ;IfErrors +2
  637. ;SectionSetFlags ${Sec26} 16
  638.   ;StrCmp $0 0 0 +1
  639. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905414" "Description"
  640. IfErrors +2
  641. SectionSetFlags ${Sec27} 16
  642.   StrCmp $0 0 0 +1
  643. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905749" "Description"
  644. IfErrors +2
  645. SectionSetFlags ${Sec28} 16
  646.   StrCmp $0 0 0 +1
  647. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908519" "Description"
  648. IfErrors +2
  649. SectionSetFlags ${Sec29} 16
  650.   StrCmp $0 0 0 +1
  651. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908531" "Description"
  652. IfErrors +2
  653. SectionSetFlags ${Sec30} 16
  654.   StrCmp $0 0 0 +1
  655. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB910437" "Description"
  656. IfErrors +2
  657. SectionSetFlags ${Sec31} 16
  658.   StrCmp $0 0 0 +1
  659. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911280" "Description"
  660. IfErrors +2
  661. SectionSetFlags ${Sec32} 16
  662.   StrCmp $0 0 0 +1
  663. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911562" "Description"
  664. IfErrors +2
  665. SectionSetFlags ${Sec33} 16
  666.   StrCmp $0 0 0 +1
  667.   ;Windows Media Player
  668. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows Media Player\KB911564" "PackageName"
  669. IfErrors +2
  670. SectionSetFlags ${Sec34} 16
  671.   StrCmp $0 0 0 +1
  672. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911927" "Description"
  673. IfErrors +2
  674. SectionSetFlags ${Sec35} 16
  675.   StrCmp $0 0 0 +1
  676. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB913580" "Description"
  677. IfErrors +2
  678. SectionSetFlags ${Sec36} 16
  679.   StrCmp $0 0 0 +1
  680. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914388" "Description"
  681. IfErrors +2
  682. SectionSetFlags ${Sec37} 16
  683.   StrCmp $0 0 0 +1
  684. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914389" "Description"
  685. IfErrors +2
  686. SectionSetFlags ${Sec38} 16
  687.   StrCmp $0 0 0 +1
  688. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB916595" "Description"
  689. IfErrors +2
  690. SectionSetFlags ${Sec39} 16
  691.   StrCmp $0 0 0 +1
  692. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917344" "Description"
  693. IfErrors +2
  694. SectionSetFlags ${Sec40} 16
  695.   StrCmp $0 0 0 +1
  696. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917953" "Description"
  697. IfErrors +2
  698. SectionSetFlags ${Sec41} 16
  699.   StrCmp $0 0 0 +1
  700. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918118" "Description"
  701. IfErrors +2
  702. SectionSetFlags ${Sec42} 16
  703.   StrCmp $0 0 0 +1
  704. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918439" "Description"
  705. IfErrors +2
  706. SectionSetFlags ${Sec43} 16
  707.   StrCmp $0 0 0 +1
  708. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB919007" "Description"
  709. IfErrors +2
  710. SectionSetFlags ${Sec44} 16
  711.   StrCmp $0 0 0 +1
  712. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920213" "Description"
  713. IfErrors +2
  714. SectionSetFlags ${Sec45} 16
  715.   StrCmp $0 0 0 +1
  716. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920670" "Description"
  717. IfErrors +2
  718. SectionSetFlags ${Sec46} 16
  719.   StrCmp $0 0 0 +1
  720. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920683" "Description"
  721. IfErrors +2
  722. SectionSetFlags ${Sec47} 16
  723.   StrCmp $0 0 0 +1
  724. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920685" "Description"
  725. IfErrors +2
  726. SectionSetFlags ${Sec48} 16
  727.   StrCmp $0 0 0 +1
  728. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920872" "Description"
  729. IfErrors +2
  730. SectionSetFlags ${Sec49} 16
  731.   StrCmp $0 0 0 +1
  732. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB921503" "Description"
  733. IfErrors +2
  734. SectionSetFlags ${Sec50} 16
  735.   StrCmp $0 0 0 +1
  736. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922582" "Description"
  737. IfErrors +2
  738. SectionSetFlags ${Sec51} 16
  739.   StrCmp $0 0 0 +1
  740. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922819" "Description"
  741. IfErrors +2
  742. SectionSetFlags ${Sec52} 16
  743.   StrCmp $0 0 0 +1
  744. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923191" "Description"
  745. IfErrors +2
  746. SectionSetFlags ${Sec53} 16
  747.   StrCmp $0 0 0 +1
  748. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923414" "Description"
  749. IfErrors +2
  750. SectionSetFlags ${Sec54} 16
  751.   StrCmp $0 0 0 +1
  752.   
  753. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\KB923689" "Description"
  754. ;IfErrors +2
  755. ;SectionSetFlags ${Sec55} 16
  756.   ;StrCmp $0 0 0 +1
  757.   
  758. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923980" "Description"
  759. IfErrors +2
  760. SectionSetFlags ${Sec56} 16
  761.   StrCmp $0 0 0 +1
  762. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924270" "Description"
  763. IfErrors +2
  764. SectionSetFlags ${Sec57} 16
  765.   StrCmp $0 0 0 +1
  766. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924496" "Description"
  767. IfErrors +2
  768. SectionSetFlags ${Sec58} 16
  769.   StrCmp $0 0 0 +1
  770. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924667" "Description"
  771. IfErrors +2
  772. SectionSetFlags ${Sec59} 16
  773.   StrCmp $0 0 0 +1

  774. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows Media Player 6.4\KB925398_WMP64" "Description"
  775. IfErrors +2
  776. SectionSetFlags ${Sec60} 16
  777.   StrCmp $0 0 0 +1

  778. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB925902" "Description"
  779. IfErrors +2
  780. SectionSetFlags ${Sec61} 16
  781.   StrCmp $0 0 0 +1
  782. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926255" "Description"
  783. IfErrors +2
  784. SectionSetFlags ${Sec62} 16
  785.   StrCmp $0 0 0 +1
  786. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926436" "Description"
  787. IfErrors +2
  788. SectionSetFlags ${Sec63} 16
  789.   StrCmp $0 0 0 +1
  790. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927779" "Description"
  791. IfErrors +2
  792. SectionSetFlags ${Sec64} 16
  793.   StrCmp $0 0 0 +1
  794. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927802" "Description"
  795. IfErrors +2
  796. SectionSetFlags ${Sec65} 16
  797.   StrCmp $0 0 0 +1
  798. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927891" "Description"
  799. IfErrors +2
  800. SectionSetFlags ${Sec66} 16
  801.   StrCmp $0 0 0 +1
  802. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928255" "Description"
  803. IfErrors +2
  804. SectionSetFlags ${Sec67} 16
  805.   StrCmp $0 0 0 +1
  806. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928843" "Description"
  807. IfErrors +2
  808. SectionSetFlags ${Sec68} 16
  809.   StrCmp $0 0 0 +1
  810. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929123" "Description"
  811. IfErrors +2
  812. SectionSetFlags ${Sec69} 16
  813.   StrCmp $0 0 0 +1
  814. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929969" "Description"
  815. ;IfErrors +2
  816. ;SectionSetFlags ${Sec70} 16
  817.   ;StrCmp $0 0 0 +1
  818. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930178" "Description"
  819. IfErrors +2
  820. SectionSetFlags ${Sec71} 16
  821.   StrCmp $0 0 0 +1
  822. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930916" "Description"
  823. IfErrors +2
  824. SectionSetFlags ${Sec72} 16
  825.   StrCmp $0 0 0 +1
  826. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931261" "Description"
  827. IfErrors +2
  828. SectionSetFlags ${Sec73} 16
  829.   StrCmp $0 0 0 +1
  830. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931784" "Description"
  831. IfErrors +2
  832. SectionSetFlags ${Sec74} 16
  833.   StrCmp $0 0 0 +1
  834. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932168" "Description"
  835. IfErrors +2
  836. SectionSetFlags ${Sec75} 16
  837.   StrCmp $0 0 0 +1
  838. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB933729" "Description"
  839. IfErrors +2
  840. SectionSetFlags ${Sec76} 16
  841.   StrCmp $0 0 0 +1
  842. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935448" "Description"
  843. ;IfErrors +2
  844. ;SectionSetFlags ${Sec77} 16
  845.   ;StrCmp $0 0 0 +1
  846. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935839" "Description"
  847. IfErrors +2
  848. SectionSetFlags ${Sec78} 16
  849.   StrCmp $0 0 0 +1
  850. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935840" "Description"
  851. IfErrors +2
  852. SectionSetFlags ${Sec79} 16
  853.   StrCmp $0 0 0 +1
  854. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936021" "Description"
  855. IfErrors +2
  856. SectionSetFlags ${Sec80} 16
  857.   StrCmp $0 0 0 +1
  858. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936357" "Description"
  859. ;IfErrors +2
  860. ;SectionSetFlags ${Sec81} 16
  861.   ;StrCmp $0 0 0 +1
  862. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB937143" "Description"
  863. ;IfErrors +2
  864. ;SectionSetFlags ${Sec82} 16
  865.   ;StrCmp $0 0 0 +1
  866. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938127" "Description"
  867. IfErrors +2
  868. SectionSetFlags ${Sec83} 16
  869.   StrCmp $0 0 0 +1
  870. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938828" "Description"
  871. IfErrors +2
  872. SectionSetFlags ${Sec84} 16
  873.   StrCmp $0 0 0 +1
  874. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938829" "Description"
  875. IfErrors +2
  876. SectionSetFlags ${Sec85} 16
  877.   StrCmp $0 0 0 +1
  878. ;ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB939653" "Description"
  879. ;IfErrors +2
  880. ;SectionSetFlags ${Sec86} 16
  881.   ;StrCmp $0 0 0 +1
  882. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB941202" "Description"
  883. IfErrors +2
  884. SectionSetFlags ${Sec87} 16
  885.   StrCmp $0 0 0 +1

  886. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB943460" "Description"
  887. IfErrors +2
  888. SectionSetFlags ${Sec88} 16
  889.   StrCmp $0 0 0 +1
  890.   ;12.12
  891. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\kb937894" "Description"
  892. IfErrors +2
  893. SectionSetFlags ${Sec89} 16
  894.   StrCmp $0 0 0 +1
  895.   
  896.   ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\kb941568" "Description"
  897. IfErrors +2
  898. SectionSetFlags ${Sec90} 16
  899.   StrCmp $0 0 0 +1
  900.   ;ie
  901. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\kb942615" "Description"
  902. IfErrors +2
  903. SectionSetFlags ${Sec91} 16
  904.   StrCmp $0 0 0 +1
  905.   
  906. ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\kb944653" "Description"
  907. IfErrors +2
  908. SectionSetFlags ${Sec92} 16
  909.   StrCmp $0 0 0 +1
  910.   ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\kb942840" "Description"
  911. IfErrors +2
  912. SectionSetFlags ${Sec93} 16
  913.   StrCmp $0 0 0 +1





  914. Functionend


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

  916. ; 区段组件描述

  917. !define IDC_ABOUT    1300
  918. !define IDC_LINK    1301
  919. !define IDM_ABOUT    1

  920. Function .onPageCallback
  921.     ${If} $MSG = ${WM_INITDIALOG}
  922.         Push $0
  923.         Push $1
  924.         Push $2
  925.         Push $3
  926.         ${GetDlgItemRect} $0 $1 $2 $3 $HWNDPARENT ${IDC_CANCEL}
  927.         IntOp $0 $2 - $0
  928.         IntOp $2 $3 - $1
  929.         ${CreateButton} "关于(&A)" 20 $1 $0 $2 $HWNDPARENT ${IDC_ABOUT}
  930.         IntOp $3 $0 + 30
  931.         IntOp $1 $1 + 3
  932.         IntOp $2 $2 - 2
  933.         ${CreateLink} $3 $1 90 $2 $HWNDPARENT ${IDC_LINK}
  934.         ${GetSystemMenu} $0 $HWNDPARENT
  935.         ${AppendMenu} $0 ${MF_SEPARATOR} 0 0
  936.         ${AppendMenu} $0 ${MF_STRING} ${IDM_ABOUT} "关于安装程序(&A)"
  937.         Pop $3
  938.         Pop $2
  939.         Pop $1
  940.         Pop $0
  941.     ${ElseIf} $MSG = ${WM_COMMAND}
  942.         ${If} $WPARAM = ${IDC_ABOUT}
  943.             ${MessageBox2} `==================$\n\
  944.                             ===Windows Xp sp2 补丁安装包===$\n\
  945.                             感谢你使用这个补丁离线安装包,希望能$\n\
  946.                             给您带来方便.同时欢迎您常来我博客$\n\
  947.                             www.imseb.cn逛逛,aaplayboy在此 $\n\
  948.                             谢谢各位的支持,我相信会做得更好! \
  949.                         $\n$\n                aaplayboy 2007年12月` `关于 $(^NameDA)` ${MB_OK}|${MB_ICONINFORMATION}
  950.         ${ElseIf} $WPARAM = ${IDC_LINK}
  951.             ExecShell open `http://www.imseb.cn/`
  952.         ${EndIf}
  953.     ${ElseIf} $MSG = ${WM_DRAWITEM}
  954.         ${DrawLink} `检查更新` ${IDC_LINK} $LPARAM
  955.     ${ElseIf} $MSG = ${WM_SYSCOMMAND}
  956.         ${If} $WPARAM = ${IDM_ABOUT}
  957.             ${MessageBox2} `aaplayboy|www.imseb.cn$\n aaplayboy制作$\n$\n我的博客:$\nhttp://www.imseb.cn/` `关于安装程序` ${MB_OK}|${MB_ICONINFORMATION}
  958.         ${EndIf}
  959.     ${EndIf}
  960. FunctionEnd
复制代码


回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-19 15:26 , Processed in 0.096669 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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