NSIS XP SP2 补丁包

NSIS XP SP2 补丁包
; 该脚本使用 HM VNISEdit 脚本编辑器向导产生

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

SetCompressor lzma



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

; MUI 预定义常量
!define MUI_ABORTWARNING
;!define  MUI_COMPONENTSPAGE_SMALLDESC
!define MUI_COMPONENTSPAGE_NODESC

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


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

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

Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "Setup.exe"
InstallDir "$TEMP"
ShowInstDetails show
BrandingText "aaplayboy制作"

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

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

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

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

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

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

Section "Windows XP安全更新程序(KB890046)" SEC07
SetOutPath "$TEMP"
  File "D:\xp\KB890046.exe"
        ExecWait '"$TEMP\KB890046.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB890859)" SEC08
SetOutPath "$TEMP"
  File "D:\xp\KB890859.exe"
        ExecWait '"$TEMP\KB890859.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB891781)" SEC09
SetOutPath "$TEMP"
  File "D:\xp\KB891781.exe"
        ExecWait '"$TEMP\KB891781.exe" /passive /quiet /norestart /nobackup'
SectionEnd
;Windows 正版增值验证工具
Section "Windows 正版增值验证工具(KB892130)" SEC10
SetOutPath "$TEMP"
  File "D:\xp\KB892130.exe"
        ExecWait '"$TEMP\KB892130.exe" /passive /quiet /norestart /nobackup'
SectionEnd

Section "Windows XP安全更新程序(KB893756)" SEC11
SetOutPath "$TEMP"
  File "D:\xp\KB893756.exe"
        ExecWait '"$TEMP\KB893756.exe" /passive /quiet /norestart /nobackup'
SectionEnd
;installer 3.1
Section "Microsoft Windows安装程序3.1(KB893803)" SEC12
SetOutPath "$TEMP"
  File "D:\xp\KB893803v2.exe"
        ExecWait '"$TEMP\KB893803v2.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB894391)" SEC13
SetOutPath "$TEMP"
  File "D:\xp\KB894391.exe"
        ExecWait '"$TEMP\KB894391.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB896358)" SEC14
SetOutPath "$TEMP"
  File "D:\xp\KB896358.exe"
        ExecWait '"$TEMP\KB896358.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB896423)" SEC15
SetOutPath "$TEMP"
  File "D:\xp\KB896423.exe"
        ExecWait '"$TEMP\KB896423.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB896428)" SEC16
SetOutPath "$TEMP"
  File "D:\xp\KB896428.exe"
        ExecWait '"$TEMP\KB896428.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB898461)" SEC17
SetOutPath "$TEMP"
  File "D:\xp\KB898461.exe"
        ExecWait '"$TEMP\KB898461.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB899587)" SEC18
SetOutPath "$TEMP"
  File "D:\xp\KB899587.exe"
        ExecWait '"$TEMP\KB899587.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB899591)" SEC19
SetOutPath "$TEMP"
  File "D:\xp\KB899591.exe"
        ExecWait '"$TEMP\KB899591.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB900485)" SEC20
SetOutPath "$TEMP"
  File "D:\xp\KB900485.exe"
        ExecWait '"$TEMP\KB900485.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB900725)" SEC21
SetOutPath "$TEMP"
  File "D:\xp\KB900725.exe"
        ExecWait '"$TEMP\KB900725.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB901017)" SEC22
SetOutPath "$TEMP"
  File "D:\xp\KB901017.exe"
        ExecWait '"$TEMP\KB901017.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB901190)" SEC23
SetOutPath "$TEMP"
  File "D:\xp\KB901190.exe"
        ExecWait '"$TEMP\KB901190.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB901214)" SEC24
SetOutPath "$TEMP"
  File "D:\xp\KB901214.exe"
        ExecWait '"$TEMP\KB901214.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB902400)" SEC25
SetOutPath "$TEMP"
  File "D:\xp\KB902400.exe"
        ExecWait '"$TEMP\KB902400.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB904706)" SEC26
SetOutPath "$TEMP"
  File "D:\xp\KB904706.exe"
        ExecWait '"$TEMP\KB904706.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB905414)" SEC27
SetOutPath "$TEMP"
  File "D:\xp\KB905414.exe"
        ExecWait '"$TEMP\KB905414.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB905749)" SEC28
SetOutPath "$TEMP"
  File "D:\xp\KB905749.exe"
        ExecWait '"$TEMP\KB905749.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB908519)" SEC29
SetOutPath "$TEMP"
  File "D:\xp\KB908519.exe"
        ExecWait '"$TEMP\KB908519.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB908531)" SEC30
SetOutPath "$TEMP"
  File "D:\xp\KB908531.exe"
        ExecWait '"$TEMP\KB908531.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB910437)" SEC31
SetOutPath "$TEMP"
  File "D:\xp\KB910437.exe"
        ExecWait '"$TEMP\KB910437.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB911280)" SEC32
SetOutPath "$TEMP"
  File "D:\xp\KB911280.exe"
        ExecWait '"$TEMP\KB911280.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB911562)" SEC33
SetOutPath "$TEMP"
  File "D:\xp\KB911562.exe"
        ExecWait '"$TEMP\KB911562.exe" /passive /quiet /norestart /nobackup'
SectionEnd
;wmp
Section "Windows Media Player安全更新(KB911564)" SEC34
SetOutPath "$TEMP"
  File "D:\xp\KB911564-WM.exe"
        ExecWait '"$TEMP\KB911564-WM.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB911927)" SEC35
SetOutPath "$TEMP"
  File "D:\xp\KB911927.exe"
        ExecWait '"$TEMP\KB911927.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB913580)" SEC36
SetOutPath "$TEMP"
  File "D:\xp\KB913580.exe"
        ExecWait '"$TEMP\KB913580.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB914388)" SEC37
SetOutPath "$TEMP"
  File "D:\xp\KB914388.exe"
        ExecWait '"$TEMP\KB914388.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB914389)" SEC38
SetOutPath "$TEMP"
  File "D:\xp\KB914389.exe"
        ExecWait '"$TEMP\KB914389.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB916595)" SEC39
SetOutPath "$TEMP"
  File "D:\xp\KB916595.exe"
        ExecWait '"$TEMP\KB916595.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB917344)" SEC40
SetOutPath "$TEMP"
  File "D:\xp\KB917344.exe"
        ExecWait '"$TEMP\KB917344.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB917953)" SEC41
SetOutPath "$TEMP"
  File "D:\xp\KB917953.exe"
        ExecWait '"$TEMP\KB917953.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB918118)" SEC42
SetOutPath "$TEMP"
  File "D:\xp\KB918118.exe"
        ExecWait '"$TEMP\KB918118.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB918439)" SEC43
SetOutPath "$TEMP"
  File "D:\xp\KB918439.exe"
        ExecWait '"$TEMP\KB918439.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB919007)" SEC44
SetOutPath "$TEMP"
  File "D:\xp\KB919007.exe"
        ExecWait '"$TEMP\KB919007.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB920213)" SEC45
SetOutPath "$TEMP"
  File "D:\xp\KB920213.exe"
        ExecWait '"$TEMP\KB920213.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB920670)" SEC46
SetOutPath "$TEMP"
  File "D:\xp\KB920670.exe"
        ExecWait '"$TEMP\KB920670.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB920683)" SEC47
SetOutPath "$TEMP"
  File "D:\xp\KB920683.exe"
        ExecWait '"$TEMP\KB920683.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB920685)" SEC48
SetOutPath "$TEMP"
  File "D:\xp\KB920685.exe"
        ExecWait '"$TEMP\KB920685.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB920872)" SEC49
SetOutPath "$TEMP"
  File "D:\xp\KB920872.exe"
        ExecWait '"$TEMP\KB920872.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB921503)" SEC50
SetOutPath "$TEMP"
  File "D:\xp\KB921503.exe"
        ExecWait '"$TEMP\KB921503.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB922582)" SEC51
SetOutPath "$TEMP"
  File "D:\xp\KB922582.exe"
        ExecWait '"$TEMP\KB922582.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB922819)" SEC52
SetOutPath "$TEMP"
  File "D:\xp\KB922819.exe"
        ExecWait '"$TEMP\KB922819.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB923191)" SEC53
SetOutPath "$TEMP"
  File "D:\xp\KB923191.exe"
        ExecWait '"$TEMP\KB923191.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB923414)" SEC54
SetOutPath "$TEMP"
  File "D:\xp\KB923414.exe"
        ExecWait '"$TEMP\KB923414.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB923689)" SEC55
SetOutPath "$TEMP"
  File "D:\xp\KB923689.exe"
        ExecWait '"$TEMP\KB923689.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB923980)" SEC56
SetOutPath "$TEMP"
  File "D:\xp\KB923980.exe"
        ExecWait '"$TEMP\KB923980.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB924270)" SEC57
SetOutPath "$TEMP"
  File "D:\xp\KB924270.exe"
        ExecWait '"$TEMP\KB924270.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB924496)" SEC58
SetOutPath "$TEMP"
  File "D:\xp\KB924496.exe"
        ExecWait '"$TEMP\KB924496.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB924667)" SEC59
SetOutPath "$TEMP"
  File "D:\xp\KB924667.exe"
        ExecWait '"$TEMP\KB924667.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows Media Player6.4安全更新(KB925398)" SEC60
SetOutPath "$TEMP"
  File "D:\xp\KB925398.exe"
        ExecWait '"$TEMP\KB925398.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB925902)" SEC61
SetOutPath "$TEMP"
  File "D:\xp\KB925902.exe"
        ExecWait '"$TEMP\KB925902.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB926255)" SEC62
SetOutPath "$TEMP"
  File "D:\xp\KB926255.exe"
        ExecWait '"$TEMP\KB926255.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB926436)" SEC63
SetOutPath "$TEMP"
  File "D:\xp\KB926436.exe"
        ExecWait '"$TEMP\KB926436.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB927779)" SEC64
SetOutPath "$TEMP"
  File "D:\xp\KB927779.exe"
        ExecWait '"$TEMP\KB927779.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB927802)" SEC65
SetOutPath "$TEMP"
  File "D:\xp\KB927802.exe"
        ExecWait '"$TEMP\KB927802.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB927891)" SEC66
SetOutPath "$TEMP"
  File "D:\xp\KB927891.exe"
        ExecWait '"$TEMP\KB927891.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB928255)" SEC67
SetOutPath "$TEMP"
  File "D:\xp\KB928255.exe"
        ExecWait '"$TEMP\KB928255.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB928843)" SEC68
SetOutPath "$TEMP"
  File "D:\xp\KB928843.exe"
        ExecWait '"$TEMP\KB928843.exe" /passive /quiet /norestart /nobackup'
SectionEnd

Section "Outlook Express累积安全更新(KB929123)" SEC69
SetOutPath "$TEMP"
  File "D:\xp\KB929123.exe"
        ExecWait '"$TEMP\KB929123.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB929969)" SEC70
SetOutPath "$TEMP"
  File "D:\xp\KB929969.exe"
        ExecWait '"$TEMP\KB929969.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB930178)" SEC71
SetOutPath "$TEMP"
  File "D:\xp\KB930178.exe"
        ExecWait '"$TEMP\KB930178.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB930916)" SEC72
SetOutPath "$TEMP"
  File "D:\xp\KB930916.exe"
        ExecWait '"$TEMP\KB930916.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB931261)" SEC73
SetOutPath "$TEMP"
  File "D:\xp\KB931261.exe"
        ExecWait '"$TEMP\KB931261.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB931784)" SEC74
SetOutPath "$TEMP"
  File "D:\xp\KB931784.exe"
        ExecWait '"$TEMP\KB931784.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB932168)" SEC75
SetOutPath "$TEMP"
  File "D:\xp\KB932168.exe"
        ExecWait '"$TEMP\KB932168.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB933729)" SEC76
SetOutPath "$TEMP"
  File "D:\xp\KB933729.exe"
        ExecWait '"$TEMP\KB933729.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB935448)" SEC77
SetOutPath "$TEMP"
  File "D:\xp\KB935448.exe"
        ExecWait '"$TEMP\KB935448.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB935839)" SEC78
SetOutPath "$TEMP"
  File "D:\xp\KB935839.exe"
        ExecWait '"$TEMP\KB935839.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB935840)" SEC79
SetOutPath "$TEMP"
  File "D:\xp\KB935840.exe"
        ExecWait '"$TEMP\KB935840.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB936021)" SEC80
SetOutPath "$TEMP"
  File "D:\xp\KB936021.exe"
        ExecWait '"$TEMP\KB936021.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB936357)" SEC81
SetOutPath "$TEMP"
  File "D:\xp\KB936357.exe"
        ExecWait '"$TEMP\KB936357.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB937143)" SEC82
SetOutPath "$TEMP"
  File "D:\xp\KB937143.exe"
        ExecWait '"$TEMP\KB937143.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB938127)" SEC83
SetOutPath "$TEMP"
  File "D:\xp\KB938127.exe"
        ExecWait '"$TEMP\KB938127.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB938828)" SEC84
SetOutPath "$TEMP"
  File "D:\xp\KB938828.exe"
        ExecWait '"$TEMP\KB938828.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Windows XP安全更新程序(KB938829)" SEC85
SetOutPath "$TEMP"
  File "D:\xp\KB938829.exe"
        ExecWait '"$TEMP\KB938829.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Internet Explorer累积性安全更新(KB939653)" SEC86
SetOutPath "$TEMP"
  File "D:\xp\KB939653.exe"
        ExecWait '"$TEMP\KB939653.exe" /passive /quiet /norestart /nobackup'
SectionEnd
Section "Outlook Express安全更新(KB941202)" SEC87
SetOutPath "$TEMP"
  File "D:\xp\KB941202.exe"
        ExecWait '"$TEMP\KB941202.exe" /passive /quiet /norestart /nobackup'
SectionEnd






;删除文件
Function .onInstSuccess

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

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

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

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

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

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

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

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

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

ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB890859" "Description"
IfErrors +2
SectionSetFlags ${Sec08} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB891781" "Description"
IfErrors +2
SectionSetFlags ${Sec09} 16
  StrCmp $0 0 0 +1
  
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\WGA\SP0\KB892130" "Type"
IfErrors +2
SectionSetFlags ${Sec10} 16
  StrCmp $0 0 0 +1
  
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893756" "Description"
IfErrors +2
SectionSetFlags ${Sec11} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB893803v2" "Description"
IfErrors +2
SectionSetFlags ${Sec12} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB894391" "Description"
IfErrors +2
SectionSetFlags ${Sec13} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896358" "Description"
IfErrors +2
SectionSetFlags ${Sec14} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896423" "Description"
IfErrors +2
SectionSetFlags ${Sec15} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB896428" "Description"
IfErrors +2
SectionSetFlags ${Sec16} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB898461" "Description"
IfErrors +2
SectionSetFlags ${Sec17} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899587" "Description"
IfErrors +2
SectionSetFlags ${Sec18} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB899591" "Description"
IfErrors +2
SectionSetFlags ${Sec19} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900485" "Description"
IfErrors +2
SectionSetFlags ${Sec20} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB900725" "Description"
IfErrors +2
SectionSetFlags ${Sec21} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901017" "Description"
IfErrors +2
SectionSetFlags ${Sec22} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901190" "Description"
IfErrors +2
SectionSetFlags ${Sec23} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB901214" "Description"
IfErrors +2
SectionSetFlags ${Sec24} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB902400" "Description"
IfErrors +2
SectionSetFlags ${Sec25} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB904706" "Description"
IfErrors +2
SectionSetFlags ${Sec26} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905414" "Description"
IfErrors +2
SectionSetFlags ${Sec27} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB905749" "Description"
IfErrors +2
SectionSetFlags ${Sec28} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908519" "Description"
IfErrors +2
SectionSetFlags ${Sec29} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB908531" "Description"
IfErrors +2
SectionSetFlags ${Sec30} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB910437" "Description"
IfErrors +2
SectionSetFlags ${Sec31} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911280" "Description"
IfErrors +2
SectionSetFlags ${Sec32} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911562" "Description"
IfErrors +2
SectionSetFlags ${Sec33} 16
  StrCmp $0 0 0 +1
  ;Windows Media Player
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows Media Player\KB911564" "PackageName"
IfErrors +2
SectionSetFlags ${Sec34} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB911927" "Description"
IfErrors +2
SectionSetFlags ${Sec35} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB913580" "Description"
IfErrors +2
SectionSetFlags ${Sec36} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914388" "Description"
IfErrors +2
SectionSetFlags ${Sec37} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB914389" "Description"
IfErrors +2
SectionSetFlags ${Sec38} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB916595" "Description"
IfErrors +2
SectionSetFlags ${Sec39} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917344" "Description"
IfErrors +2
SectionSetFlags ${Sec40} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB917953" "Description"
IfErrors +2
SectionSetFlags ${Sec41} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918118" "Description"
IfErrors +2
SectionSetFlags ${Sec42} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB918439" "Description"
IfErrors +2
SectionSetFlags ${Sec43} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB919007" "Description"
IfErrors +2
SectionSetFlags ${Sec44} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920213" "Description"
IfErrors +2
SectionSetFlags ${Sec45} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920670" "Description"
IfErrors +2
SectionSetFlags ${Sec46} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920683" "Description"
IfErrors +2
SectionSetFlags ${Sec47} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920685" "Description"
IfErrors +2
SectionSetFlags ${Sec48} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB920872" "Description"
IfErrors +2
SectionSetFlags ${Sec49} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB921503" "Description"
IfErrors +2
SectionSetFlags ${Sec50} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922582" "Description"
IfErrors +2
SectionSetFlags ${Sec51} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB922819" "Description"
IfErrors +2
SectionSetFlags ${Sec52} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923191" "Description"
IfErrors +2
SectionSetFlags ${Sec53} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923414" "Description"
IfErrors +2
SectionSetFlags ${Sec54} 16
  StrCmp $0 0 0 +1
  
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\KB923689" "Description"
IfErrors +2
SectionSetFlags ${Sec55} 16
  StrCmp $0 0 0 +1
  
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB923980" "Description"
IfErrors +2
SectionSetFlags ${Sec56} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924270" "Description"
IfErrors +2
SectionSetFlags ${Sec57} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924496" "Description"
IfErrors +2
SectionSetFlags ${Sec58} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB924667" "Description"
IfErrors +2
SectionSetFlags ${Sec59} 16
  StrCmp $0 0 0 +1

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

ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB925902" "Description"
IfErrors +2
SectionSetFlags ${Sec61} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926255" "Description"
IfErrors +2
SectionSetFlags ${Sec62} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB926436" "Description"
IfErrors +2
SectionSetFlags ${Sec63} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927779" "Description"
IfErrors +2
SectionSetFlags ${Sec64} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927802" "Description"
IfErrors +2
SectionSetFlags ${Sec65} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB927891" "Description"
IfErrors +2
SectionSetFlags ${Sec66} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928255" "Description"
IfErrors +2
SectionSetFlags ${Sec67} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB928843" "Description"
IfErrors +2
SectionSetFlags ${Sec68} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929123" "Description"
IfErrors +2
SectionSetFlags ${Sec69} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB929969" "Description"
IfErrors +2
SectionSetFlags ${Sec70} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930178" "Description"
IfErrors +2
SectionSetFlags ${Sec71} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB930916" "Description"
IfErrors +2
SectionSetFlags ${Sec72} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931261" "Description"
IfErrors +2
SectionSetFlags ${Sec73} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB931784" "Description"
IfErrors +2
SectionSetFlags ${Sec74} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB932168" "Description"
IfErrors +2
SectionSetFlags ${Sec75} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB933729" "Description"
IfErrors +2
SectionSetFlags ${Sec76} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935448" "Description"
IfErrors +2
SectionSetFlags ${Sec77} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935839" "Description"
IfErrors +2
SectionSetFlags ${Sec78} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB935840" "Description"
IfErrors +2
SectionSetFlags ${Sec79} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936021" "Description"
IfErrors +2
SectionSetFlags ${Sec80} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB936357" "Description"
IfErrors +2
SectionSetFlags ${Sec81} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB937143" "Description"
IfErrors +2
SectionSetFlags ${Sec82} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938127" "Description"
IfErrors +2
SectionSetFlags ${Sec83} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938828" "Description"
IfErrors +2
SectionSetFlags ${Sec84} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB938829" "Description"
IfErrors +2
SectionSetFlags ${Sec85} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB939653" "Description"
IfErrors +2
SectionSetFlags ${Sec86} 16
  StrCmp $0 0 0 +1
ReadRegStr $0 HKLM "SOFTWARE\Microsoft\Updates\Windows XP\SP3\KB941202" "Description"
IfErrors +2
SectionSetFlags ${Sec87} 16
  StrCmp $0 0 0 +1


Functionend


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

; 区段组件描述





文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
评论: 0 | 引用: 0 | 查看次数: -
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.