脚本:QQ2005正式版SP1

优质
小牛编辑
137浏览
2023-12-01
示例:

; 安装程序初始定义常量
!define PRODUCT_NAME "腾讯QQ2005"
!define PRODUCT_VERSION "正式版SP1"
!define PRODUCT_PUBLISHER "罾心製作"
!define PRODUCT_WEB_SITE "http://www.blog.163.com/53_54/"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\QQ.exe"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
SetCompressor /SOLID lzma
;设置lzma压缩时的字典大小,Mb为单位;64MB时,耗内存近600Mb
SetCompressorDictSize 64
InstType "完全安装"
InstType "推荐安装"
InstType "最小安装"
; ------ MUI 现代界面定义 (1.67 版本以上兼容) ------
!include "MUI.nsh"
xpstyle on
;!include "UsefulLib.nsh"

; MUI 预定义常量
!define MUI_BGCOLOR "ACE5A7"
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\orange-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\orange-uninstall.ico"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "header.bmp"
!define MUI_WELCOMEFINISHPAGE_BITMAP "wizard.bmp"
!define MUI_UNWELCOMEFINISHPAGE_BITMAP "wizard.bmp"
!define MUI_INSTFILESPAGE_COLORS "FFFFFF 079204"
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_TEXT "安装完成运行QQ"
;!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_FUNCTION FinishRun
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_TEXT "创建桌面快捷方式(推荐)"
;!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION desktoplink
!define MUI_FINISHPAGE_LINK "${PRODUCT_WEB_SITE}"
!define MUI_FINISHPAGE_LINK_LOCATION "${PRODUCT_WEB_SITE}"
!define MUI_FINISHPAGE_LINK_COLOR "000080"
Var STARTMENU_FOLDER
; 语言选择窗口常量设置
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"
; 欢迎页面
!define MUI_WELCOMEPAGE_TEXT "更新改进:\r\n\r\n1.集成珊瑚虫显示IP功能 \r\n\r\n2.一款无插件绿色软件 \r\n\r\n3.随心所欲自定义组件包软件 \r\n\r\n4.集成腾讯内核 \r\n\r\n5. http://www.blog.163.com/53_54/"
!insertmacro MUI_PAGE_WELCOME
; 许可协议页面
;!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "QQ_license.rtf"
; 组件选择页面
!insertmacro MUI_PAGE_COMPONENTS
; 安装目录选择页面
!insertmacro MUI_PAGE_DIRECTORY
;Start Menu Folder Page Configuration
;下一句:不提供是否创建开始菜单选择
;!define MUI_STARTMENUPAGE_NODISABLE
!define MUI_STARTMENUPAGE_DEFAULTFOLDER "腾讯软件"
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_KEY "${PRODUCT_UNINST_KEY}"
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "${PRODUCT_STARTMENU_REGVAL}"
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
; 安装过程页面
!insertmacro MUI_PAGE_INSTFILES
; 安装完成页面
!define MUI_FINISHPAGE_SHOWREADME "http://www.blog.163.com/53_54/"
!define MUI_FINISHPAGE_LINK "罾心製作"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.blog.163.com/53_54/"
!insertmacro MUI_PAGE_FINISH
; 安装卸载过程页面
!insertmacro MUI_UNPAGE_INSTFILES
; 安装界面包含的语言设置
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "SimpChinese"

; 安装预释放文件
!insertmacro MUI_RESERVEFILE_LANGDLL
!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS
; ------ MUI 现代界面定义结束 ------
Name "腾讯QQ2005SP1 版"
OutFile "腾讯QQ2005SP1版.exe"
InstallDir "$PROGRAMFILES\Tencent\QQ"
ShowInstDetails hide
ShowUnInstDetails hide
BrandingText "罾心製作 http://www.blog.163.com/53_54/于${__Date__}发布"
SectionGroup "腾讯QQ" Tencent
Section "基本构件(必需)" SEC00
  SectionIn 1 2 3 RO
  SetOutPath "$SYSDIR"
  SetOverwrite off
  File "系统组件\*.*"
  regdll "$SYSDIR\RealMediaSplitter.ax"
  SetOutPath "$INSTDIR"
  SetOverwrite on
  File /r "腾讯QQ\*.*"
  regdll "$instdir\CPHelper.dll"
  regdll "$instdir\ImageOle.dll"
  regdll "$instdir\VQQPlayer.ocx"
  WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ" "check" 0x43bd2764
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ" "Install" "$instdir\"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ" "version" "1445.110"
  WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ" "Uindata" 0x43be2f74
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\PLATFORM_TYPE_LIST\1" "TypeName" "QQ"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\PLATFORM_TYPE_LIST\1" "TypePath" "$instdir\QQ.exe"
  WriteIniStr "$INSTDIR\罾心製作.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\卸载腾讯QQ.lnk" "$INSTDIR\uninst.exe"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\腾讯QQ原版.lnk" "$INSTDIR\qq.exe" "" "" 1 SW_SHOWNORMAL "" "运行腾讯QQ2005正式版(原版)"
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\罾心製作网站.lnk" "$INSTDIR\Sprite网站.url" "" "" 1 SW_SHOWNORMAL "" "访问罾心製作网站"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "IE插件文件" SECIE
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\IE插件\*.*"
SectionEnd
Section "QQPet" SECQQpet
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\QQPet\*.*"
  RegDll "$instdir\QQPet.dll"
SectionEnd
Section "QQ广告" SECQQAD
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\QQ广告\*.*"
SectionEnd
Section "QQZone" SECQQZone
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\QZone\*.*"
  RegDll "$instdir\QZONE\PhotoUploadCtrl.ocx"
SectionEnd
Section "TIM平台" SECTIM
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\TIM平台\*.*"
  regdll "$instdir\TIMProxy.dll"
  regdll "$instdir\Timwp.dll"
  WriteRegStr HKEY_CLASSES_ROOT "CLSID\{A7CC2FDB-EED7-4FDA-880E-C762570CC005}" "" "QQMainCreator Component"
  WriteRegStr HKEY_CLASSES_ROOT "CLSID\{A7CC2FDB-EED7-4FDA-880E-C762570CC005}\LocalServer32" "" "$instdir\TIMPlatform.exe"
  WriteRegStr HKEY_CLASSES_ROOT "CLSID\{A7CC2FDB-EED7-4FDA-880E-C762570CC005}\ProgID" "" "QQ.QQMainCreator"
SectionEnd
Section "USB电话" SECUSBPH
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\USB电话\*.*"
SectionEnd
Section "互动空间" SECHD
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\互动空间\*.*"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ\qbox" "install" "$instdir"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ\qbox" "version" "1.0.103.1223"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\互动空间.lnk" "$INSTDIR\HDRoom.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "企业好友" SECB
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\企业好友\*.*"
SectionEnd
Section "商务伴侣" SECBuddy
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\商务伴侣\*.*"
SectionEnd
Section "手机短信" SECMMS
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\手机短信\*.*"
SectionEnd
Section "文件传输" SECFT
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\文件传输\*.*"
SectionEnd
Section "文件共享" SECFSH
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\文件共享\*.*"
SectionEnd
Section "皮肤QQ2005" SECSkin
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\皮肤QQ2005\*.*"
SectionEnd
Section "网络硬盘" SECND
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\网络硬盘\*.*"
  regdll "$instdir\qdshm.dll"
SectionEnd
Section "聊天室" SECCHR
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\聊天室\*.*"
SectionEnd
Section "通讯录" SECADDR
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\通讯录\*.*"
SectionEnd
Section "自动更新" SECUPDATE
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\自动更新\*.*"
SectionEnd
Section "自定义面板" SECContentTab
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\自定义面板\*.*"
SectionEnd
Section "远程桌面" SECDSH
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\远程桌面\*.*"
SectionEnd
Section "错误报告" SECBUGR
  SectionIn 1 2
  SetOutPath "$INSTDIR\"
  File /r "可选组件\错误报告\*.*"
  CreateShortCut "$INSTDIR\QQHangReport.lnk" "$INSTDIR\BugReport.exe" "/Target=$QQ /Describe=$ /Output=$ /RunMode=3"
SectionEnd
Section "音乐空间" SECMISIC
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\音乐空间\*.*"
WriteRegStr HKEY_CLASSES_ROOT "AppID\{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}" "" "QQMusicSvr"
WriteRegStr HKEY_CLASSES_ROOT "AppID\QQMusicSvr.EXE" "AppID" "{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}" "" "QQMusicCreator Class"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}" "AppID" "{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\LocalServer32" "" "$instdir\QQMusic.exe"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\ProgID" "" "QQMusicSvr.QQMusicCreator.1"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\Programmable" "" ""
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\VersionIndependentProgID" "" "QQMusicSvr.QQMusicCreator"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}" "" "IQQMusicCreator"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}" "" "IQQMusicControl"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}" "" "IQQMusicOptionMng"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}" "" "IQQMusicLyricMng"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}" "" "IQQMusicPlayer"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}" "" "_IQQMusicDataMngEvents"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}" "" "IQQMusicDataMng"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}" "" "_IQQMusicLyricMngEvents"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}" "" "_IQQMusicControlEvents"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}" "" "_IQQMusicOptionMngEvents"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}" "" "_IQQMusicPlayerEvents"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator" "" "QQMusicCreator Class"
WriteRegStr HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator\CLSID" "" "{6927992D-6A89-4549-8A32-95901BF5D920}"
WriteRegStr HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator\CurVer" "" "QQMusicSvr.QQMusicCreator.1"
WriteRegStr HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator.1" "" "QQMusicCreator Class"
WriteRegStr HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator.1\CLSID" "" "{6927992D-6A89-4549-8A32-95901BF5D920}"
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}" "" ""
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0" "" "QQMusicSvr 1.0 Type Library"
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\0" "" ""
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\0\win32" "" "$instdir\QQMusic.exe"
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\FLAGS" "" "0"
WriteRegStr HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\HELPDIR" "" "$instdir\"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\AppID\{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}" "" "QQMusicSvr"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\AppID\QQMusicSvr.EXE" "AppID" "{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}" "" "QQMusicCreator Class"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}" "AppID" "{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\LocalServer32" "" "$instdir\QQMusic.exe"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\ProgID" "" "QQMusicSvr.QQMusicCreator.1"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\Programmable" "" ""
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}\VersionIndependentProgID" "" "QQMusicSvr.QQMusicCreator"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}" "" "IQQMusicCreator"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}\TypeLib" "Version" "$\"1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}" "" "IQQMusicControl"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}" "" "IQQMusicOptionMng"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}" "" "IQQMusicLyricMng"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}" "" "IQQMusicPlayer"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}" "" "_IQQMusicDataMngEvents"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}" "" "IQQMusicDataMng"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\ProxyStubClsid" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\ProxyStubClsid32" "" "{00020424-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}" "" "_IQQMusicLyricMngEvents"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}" "" "_IQQMusicControlEvents"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}" "" "_IQQMusicOptionMngEvents"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}" "" "_IQQMusicPlayerEvents"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\ProxyStubClsid" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\ProxyStubClsid32" "" "{00020420-0000-0000-C000-000000000046}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\TypeLib" "" "{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}\TypeLib" "Version" "1.0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator" "" "QQMusicCreator Class"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator\CLSID" "" "{6927992D-6A89-4549-8A32-95901BF5D920}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator\CurVer" "" "QQMusicSvr.QQMusicCreator.1"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator.1" "" "QQMusicCreator Class"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator.1\CLSID" "" "{6927992D-6A89-4549-8A32-95901BF5D920}"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}" "" ""
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0" "" "QQMusicSvr 1.0 Type Library"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\0" "" ""
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\0\win32" "" "$instdir\QQMusic.exe"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\FLAGS" "" "0"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}\1.0\HELPDIR" "" "$instdir\"
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw" "EmulationOnly" 0x0
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw" "DisableAGPSupport" 0x0
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility" "" ""
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Bug!" "Name" "BUG!.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Bug!" "ID" 3d620932
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Bug!" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\DemolitionDerby2" "Name" "DD2.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\DemolitionDerby2" "ID" 44838832
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\DemolitionDerby2" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MortalKombat3" "Name" "MK3W.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MortalKombat3" "ID" fc6de731
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MortalKombat3" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MsGolf98" "Name" "game.exe"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MsGolf98" "ID" 0dea1a35
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\MsGolf98" "Flags" 20000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NHLPowerPlay" "Name" "PP96.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NHLPowerPlay" "ID" ff3fbf31
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NHLPowerPlay" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NortonSystemInfo" "Name" "SI32.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NortonSystemInfo" "ID" 29ea6332
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\NortonSystemInfo" "Flags" 04000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Rogue Squadron" "Name" "ROGUE SQUADRON.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Rogue Squadron" "ID" d1d74c36
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Rogue Squadron" "Flags" 40000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Savage" "Name" "SAVAGE32.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Savage" "ID" 00876531
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Savage" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ScorchedPlanet" "Name" "SPLANETW.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ScorchedPlanet" "ID" 69044c32
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ScorchedPlanet" "Flags" 02000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\SilentThunder" "Name" "A10SIM.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\SilentThunder" "ID" 5d203556
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\SilentThunder" "Flags" 01000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Terracide" "Name" "TERAWIN.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Terracide" "ID" 66cb9533
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\Terracide" "Flags" 04000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ThirdDimension" "Name" "t3rd.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ThirdDimension" "ID" bf817f32
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ThirdDimension" "Flags" 04000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisQualityBenchmark" "Name" "BEND3DIM.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisQualityBenchmark" "ID" 6d5b4d33
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisQualityBenchmark" "Flags" 04000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisWinMarkBenchmark" "Name" "WBD3D.EXE"
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisWinMarkBenchmark" "ID" 46fc4b33
WriteRegBin HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\Compatibility\ZiffDavisWinMarkBenchmark" "Flags" 04000000
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\MostRecentApplication" "Name" "QQMusic.exe"
WriteRegDWORD HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\MostRecentApplication" "ID" 0x430ecaa2
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQMusic" "SaveCachePath" "$\"$instdir\cache\"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQMusic" "Install" "$instdir\"
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQMusic" "Version" "501.1069"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\音乐中心.lnk" "$INSTDIR\QQMusic.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "魔法书" SECMAGICBOOK
  SectionIn 1
  SetOutPath "$INSTDIR\"
  File /r "可选组件\魔法书\*.*"
SectionEnd
SectionGroupend
Section "QQ苹果托盘图标" SECAppleICO
  SectionIn 1 2
  SetOverwrite on
  SetOutPath "$INSTDIR"
  File "QQRes_Apple\QQRes.dll"
SectionEnd
Section "珊瑚虫外挂V4.1.2正式版" SECCoral
  SectionIn 1 2
  SetOverwrite on
  SetOutPath "$INSTDIR"
  File /r "珊瑚虫外挂\*.*"
  Push $R0
  ClearErrors
  ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion" VersionNumber
  StrCmp $R0 "98" +1 +4
  Delete "$INSTDIR\CoralQQ.exe"
  Rename $INSTDIR\CoralQQ98.exe $INSTDIR\CoralQQ.exe
  goto CoralEnd
  Delete "$INSTDIR\CoralQQ98.exe"
  CoralEnd:
  Pop $R0
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\腾讯.lnk" "$INSTDIR\CoralQQ.exe" "" "" 1 SW_SHOWNORMAL "" "运行腾讯QQ2005 版"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "QQ宠物资源" SECQQPetSource
  SectionIn 1
  SetOutPath "$INSTDIR"
  SetOverwrite on
  File /r "QQ宠物资源\*.*"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQPet" "Install" "$instdir\QQPet"
  WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQPet" "Version" "233.200"
  RegDll "$instdir\QQPet\QQPetCommunity.dll"
  RegDll "$instdir\QQPet\QQPetResDownload.dll"
SectionEnd
Section "IP更新与查询" SECIP
  SectionIn 1 2
  SetOutPath "$INSTDIR"
  SetOverwrite on
  File /r "IP更新与查询\*.*"
  !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
  CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\IP查询.lnk" "$INSTDIR\ShowIP.exe"
  !insertmacro MUI_STARTMENU_WRITE_END
SectionEnd
Section "MSN音效" SECMSN
  SectionIn 1 2
  CreateDirectory $INSTDIR\sound\backup
  CopyFiles $INSTDIR\sound\*.wav $INSTDIR\sound\backup
  SetOutPath "$INSTDIR\"
  File /r "可选组件\MSN音效\*.*"
SectionEnd
Section "QQ2005精简皮肤" SECSkin2005lite
  SectionIn 1 2
  CreateDirectory $INSTDIR\NewSkins\QQ2005原版皮肤
  CopyFiles $INSTDIR\NewSkins\QQ2005\*.* $INSTDIR\NewSkins\QQ2005原版皮肤
  RMDir $INSTDIR\NewSkins\QQ2005原版皮肤
  RMDir /r $INSTDIR\NewSkins\QQ2005
  SetOutPath "$INSTDIR"
  SetOverwrite on
  File /r "QQ2005精简皮肤\*.*"
SectionEnd
SectionGroup "注册IE插件与IE右键菜单" IEREG
Section "注册IE插件DLL" SECREGIE
SectionIn 1
regdll "$instdir\QQIEHelper.dll"
SectionEnd
Section "上传到QQ网络硬盘" SECREGIE1
SectionIn 1
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\上传到QQ网络硬盘" "" "$instdir\AddToNetDisk.htm"
WriteRegDWORD HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\上传到QQ网络硬盘" "contexts" 0x00000002
SectionEnd
Section "添加到QQ表情" SECREGIE2
SectionIn 1
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ表情" "" "$instdir\AddEmotion.htm"
WriteRegDWORD HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ表情" "contexts" 0x00000002
SectionEnd
Section "添加到QQ自定义面板" SECREGIE3
SectionIn 1
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ自定义面板" "" "$instdir\AddPanel.htm"
WriteRegDWORD HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ自定义面板" "contexts" 0x0000007F
SectionEnd
Section "用QQ彩信发送该图片" SECREGIE4
SectionIn 1
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\用QQ彩信发送该图片" "" "$instdir\SendMMS.htm"
WriteRegDWORD HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\用QQ彩信发送该图片" "contexts" 0x00000002
SectionEnd
SectionGroupEnd

Section -Post
  WriteUninstaller "$INSTDIR\uninst.exe"
  WriteRegStr HKLM "${PRODUCT_DIR_REGKEY}" "" "$INSTDIR\QQ.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Contact" "${PRODUCT_Email}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\QQ.exe"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
  WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Tencent QQ" "${PRODUCT_QQ}"
SectionEnd
#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
;安装组件选择,改变、回调函数
Function .onSelChange
  SectionGetFlags ${SECREGIE} $1
  SectionGetFlags ${SECREGIE1} $2
  SectionGetFlags ${SECREGIE2} $3
  SectionGetFlags ${SECREGIE3} $4
  SectionGetFlags ${SECREGIE4} $5
  SectionGetFlags ${SECQQPetSource} $6
  StrCmp $1 1 +1 +2
  SectionSetFlags ${SECIE} 1
  StrCmp $2 1 +1 +3
  SectionSetFlags ${SECIE} 1
  SectionSetFlags ${SECREGIE} 1
  StrCmp $3 1 +1 +3
  SectionSetFlags ${SECIE} 1
  SectionSetFlags ${SECREGIE} 1
  StrCmp $4 1 +1 +3
  SectionSetFlags ${SECIE} 1
  SectionSetFlags ${SECREGIE} 1
  StrCmp $5 1 +1 +3
  SectionSetFlags ${SECIE} 1
  SectionSetFlags ${SECREGIE} 1
  StrCmp $6 1 +1 +2
  SectionSetFlags ${SECQQpet} 1
FunctionEnd
; 区段组件描述
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
  !insertmacro MUI_DESCRIPTION_TEXT ${Tencent} "腾讯QQ2005正式版SP1 安装组件"
  !insertmacro MUI_DESCRIPTION_TEXT ${SEC00} "腾讯QQ2005正式版SP1 官方内核,必需安装"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECAppleICO} "QQ在任务栏显示苹果样的图标"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECCoral} "显示好友地理位置、IP,显隐身的好友;如来伸掌、金钟罩铁布衫。探测IP能力超强,才不管聊不聊天。自动添加珊瑚虫好友,用于扩展功能"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECIP} "IP更新与查询,纯真IP数据库自动升级程序,*0,*5号升级"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECIE} "支持IE右键添加文件或者图片到QQ表情或网络硬盘,商务伴侣也依赖它"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECMSN} "MSN风格的QQ消息声音;如果你选择这一项,原来的声音文件备份在...\sound\backup"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECQQpet} "腾讯推出的电子宠物系统"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECQQPetSource} "QQ宠物资源,喂养QQ宠物必需的,也可以在线安装。要安装此项,必需安装“腾讯QQ”->“QQPet”。"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECQQAD} "QQ广告系统,当然不是你发出去的,而是接收广告的"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECQQZone} "拥有Qzone就可以拥有网络日志、相册、音乐盒、神奇花藤、互动等专业动态功能,更可以合成自己喜欢的个性大头贴"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECTIM} "QQ一些功能实现的基础,例如创建临时会话等"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECUSBPH} "腾讯USB电话,似乎是收费的?"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECHD} "腾讯及其服务商提供的在线资讯服务"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECB} "QQ与企业版本的QQ连接的纽带"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECBuddy} "腾讯QQ商务伴侣"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECMMS} "QQ与手机之间互相发送短信的功能"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECFT} "QQ好友之间互相发送文件的功能,若不安装则无法传送文件"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECFSH} "QQ好友之间的简单文件共享,跟网络硬盘无关"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECSkin} "原版QQ2005皮肤,也可以使用其他皮肤。如果没有皮肤,多难看"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECND} "就是网络硬盘"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECCHR} "要进聊天室的就安装"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECADDR} "QQ新推出的一个小巧的通讯纪录工具"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECUPDATE} "自动更新QQ"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECContentTab} "可以自己来定义QQ的面板组件"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECDSH} "远程桌面连接系统"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECBUGR} "QQ程序崩溃就出现错误报告"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECMISIC} "QQ自带的一个音乐播放器"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECMAGICBOOK} "QQ的电子书,跟魔法表情无关"
  !insertmacro MUI_DESCRIPTION_TEXT ${IEREG} "要使用该组的功能,必需安装“腾讯QQ”的“IE插件文件”"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECREGIE} "要使用IE右键菜单,就必需注册这个文件"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECREGIE1} "IE右键菜单--上传到QQ网络硬盘"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECREGIE2} "IE右键菜单--添加到QQ表情"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECREGIE3} "IE右键菜单--添加到QQ自定义面板"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECREGIE4} "IE右键菜单--用QQ彩信发送该图片"
  !insertmacro MUI_DESCRIPTION_TEXT ${SECSkin2005lite} "QQ2005精简皮肤,没有原版那些冗余的按钮。作者:菜鸟XP(Aqing),其Blog:http://esoft.bokee.com/。要换别的皮肤,到“QQ菜单”-“更换皮肤”里面选择."
!insertmacro MUI_FUNCTION_DESCRIPTION_END
;安装完成,创建桌面快捷方式--自定义函数
Function desktoplink
  CreateShortCut "$DESKTOP\腾讯QQ原版.lnk" "$INSTDIR\qq.exe" "" "" 1 SW_SHOWNORMAL "" "运行腾讯QQ2005正式版(原版)"
  IfFileExists $INSTDIR\CoralQQ.exe +1 +2
  CreateShortCut "$DESKTOP\腾讯QQ 版.lnk" "$INSTDIR\CoralQQ.exe" "" "" 1 SW_SHOWNORMAL "" "运行腾讯QQ2005 版"
FunctionEnd
;安装完成运行程序--自定义函数
Function FinishRun
  IfFileExists $INSTDIR\CoralQQ.exe +1 +3
  Exec '"$INSTDIR\CoralQQ.exe"'
  IfFileExists $INSTDIR\CoralQQ.exe +2 +1
  Exec '"$INSTDIR\QQ.exe"'
FunctionEnd
Function .onInit
;  !insertmacro MUI_LANGDLL_DISPLAY     ;是否出现语言选择
;  Extract InstallOptions INI files
FunctionEnd
/******************************
*  以下是安装程序的卸载部分  *
******************************/
Section Uninstall
unregdll "$instdir\qdshm.dll"
unregdll "$instdir\QZONE\PhotoUploadCtrl.ocx"
unregdll "$instdir\CPHelper.dll"
unregdll "$instdir\ImageOle.dll"
unregdll "$instdir\VQQPlayer.ocx"
unregdll "$instdir\QQIEHelper.dll"
unregdll "$instdir\TIMProxy.dll"
unregdll "$instdir\Timwp.dll"
unregdll "$instdir\V2MailActiveX.ocx"
unregdll "$instdir\QQPet.dll"
unregdll "$instdir\QQPet\QQPetCommunity.dll"
unregdll "$instdir\QQPet\QQPetResDownload.dll"
DeleteRegKey HKEY_CLASSES_ROOT "CLSID\{A7CC2FDB-EED7-4FDA-880E-C762570CC005}"
DeleteRegKey HKEY_CLASSES_ROOT "AppID\{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
DeleteRegKey HKEY_CLASSES_ROOT "AppID\QQMusicSvr.EXE"
DeleteRegKey HKEY_CLASSES_ROOT "CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}"
DeleteRegKey HKEY_CLASSES_ROOT "Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}"
DeleteRegKey HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator"
DeleteRegKey HKEY_CLASSES_ROOT "QQMusicSvr.QQMusicCreator.1"
DeleteRegKey HKEY_CLASSES_ROOT "TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\AppID\{CB9BCD4B-03B5-4487-AC8F-6164DD6433AB}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\AppID\QQMusicSvr.EXE"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\CLSID\{6927992D-6A89-4549-8A32-95901BF5D920}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{10126174-A34C-4DA4-9B5A-B71DE87EDD34}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{B07CCA0D-7B19-4921-868C-46B6C837825D}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{BA105B6F-B84D-4992-B9FE-4C2D144A3641}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{C44022F3-7CB2-401A-A6B9-C380F22D4754}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D521927A-0430-4BE0-ABE7-817A77E833FC}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D62D79C8-3FB9-4D52-BC25-08FB69C0F9BD}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{D6C683F8-2E52-4E1E-B421-4D9882F8766E}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{DE5BCB71-1D17-49AF-9864-54A0706BF406}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E0044E80-24E6-401E-A45A-EFD702538ACA}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{E9AAA78B-8AB9-4660-8617-D16717E348A9}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\Interface\{F9D51BBE-F69E-4D7E-8A36-9D65B534F508}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\QQMusicSvr.QQMusicCreator.1"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\Classes\TypeLib\{C4549B07-549D-46C4-AAF6-49CC54B99F69}"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQ"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQMusic"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\QQPet"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT\PLATFORM_TYPE_LIST\1"
DeleteRegKey /ifempty HKEY_LOCAL_MACHINE "SOFTWARE\TENCENT"
DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\QAL"
DeleteRegKey HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\上传到QQ网络硬盘"
DeleteRegKey HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ表情"
DeleteRegKey HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\添加到QQ自定义面板"
DeleteRegKey HKEY_CURRENT_USER "Software\Microsoft\Internet Explorer\MenuExt\用QQ彩信发送该图片"
DeleteRegValue HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\MostRecentApplication" "Name"
DeleteRegValue HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\DirectDraw\MostRecentApplication" "ID"
  Delete "$INSTDIR\罾心製作.url"
  Delete "$INSTDIR\QQHangReport.lnk"
  Delete "$INSTDIR\uninst.exe"
  Delete "$INSTDIR\sound\*.*"
  Delete "$INSTDIR\SkinBmp\*.*"
  Delete "$INSTDIR\QZone\*.*"
  Delete "$INSTDIR\QRingFiles\*.*"
  Delete "$INSTDIR\QQPet\*.*"
  Delete "$INSTDIR\QQPet\Common\103\*.*"
  Delete "$INSTDIR\QQPet\Common\102\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusic_Images\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\VideoSkin\VideoMiniWndSkin\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\VideoSkin\VideoMiniControlSkin\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin\ReportDlg\*.*"
   Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin\ReportDlg\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\items\*.*"
  Delete "$INSTDIR\QQMusicData\QQMusicSkin\Default\*.*"
  Delete "$INSTDIR\QQDialSkin\default\*.*"
  Delete "$INSTDIR\QQBuddy\Def_Skin\*.*"
  Delete "$INSTDIR\QQAddrPlugin\*.*"
  Delete "$INSTDIR\QBox\SrvImage\*.*"
  Delete "$INSTDIR\QBox\Def_Skin\*.*"
  Delete "$INSTDIR\NewSkins\QQ2005原版皮肤\SearchPlugin\*.*"
  Delete "$INSTDIR\NewSkins\QQ2005原版皮肤\MusicPlugin\*.*"
   Delete "$INSTDIR\NewSkins\QQ2005原版皮肤\*.*"
  Delete "$INSTDIR\NewSkins\QQ2005\IMSkin\*.*"
  Delete "$INSTDIR\NewSkins\QQ2005\*.*"
  Delete "$INSTDIR\NEWFACE\*.*"
  Delete "$INSTDIR\flashshow\xml6\*.*"
  Delete "$INSTDIR\flashshow\qqshow9\*.*"
  Delete "$INSTDIR\flashshow\qqshow8\*.*"
  Delete "$INSTDIR\flashshow\qqshow7\*.*"
  Delete "$INSTDIR\flashshow\qqshow6\*.*"
  Delete "$INSTDIR\flashshow\qqshow4\*.*"
  Delete "$INSTDIR\flashshow\qqshow5\*.*"
  Delete "$INSTDIR\flashshow\qqshow3\*.*"
  Delete "$INSTDIR\flashshow\qqshow2\*.*"
  Delete "$INSTDIR\flashshow\qqshow1\*.*"
  Delete "$INSTDIR\flashshow\qqshow0\*.*"
  Delete "$INSTDIR\flashshow\98\*.*"
  Delete "$INSTDIR\Face\*.*"
  Delete "$INSTDIR\Dat\*.*"
  Delete "$INSTDIR\chatskin\public\*.*"
  Delete "$INSTDIR\ChatRoomDll\*.*"
  Delete "$INSTDIR\Chat\*.*"
  Delete "$INSTDIR\*.*"
  !insertmacro MUI_STARTMENU_GETFOLDER "Application" $STARTMENU_FOLDER
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\卸载腾讯QQ.lnk"
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\互动空间.lnk"
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\音乐中心.lnk"
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\IP查询.lnk"
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\腾讯QQ .lnk"
  Delete "$DESKTOP\腾讯QQ 版.lnk"
  Delete "$DESKTOP\腾讯QQ原版.lnk"
  Delete "$SMPROGRAMS\$STARTMENU_FOLDER\腾讯QQ原版.lnk"
  DElete "$SMPROGRAMS\$STARTMENU_FOLDER\罾心製作.lnk"
  RMDir "$SMPROGRAMS\$STARTMENU_FOLDER"
  RMDir "$INSTDIR\sound\backup"
  RMDir "$INSTDIR\sound"
  RMDir "$INSTDIR\SkinBmp"
  RMDir "$INSTDIR\QZone"
  RMDir "$INSTDIR\QRingFiles"
  RMDir "$INSTDIR\QQPet\Common\103"
  RMDir "$INSTDIR\QQPet\Common\102"
  RMDir "$INSTDIR\QQPet\Common"
  RMDir "$INSTDIR\QQPet"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\VideoSkin\VideoMiniWndSkin"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\VideoSkin\VideoMiniControlSkin"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\VideoSkin"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin\ReportDlg"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\MiniSkin"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default\items"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin\Default"
  RMDir "$INSTDIR\QQMusicData\QQMusicSkin"
  RMDir "$INSTDIR\QQMusicData\QQMusic_Images"
  RMDir "$INSTDIR\QQMusicData"
  RMDir "$INSTDIR\QQDialSkin\default"
  RMDir "$INSTDIR\QQDialSkin"
  RMDir "$INSTDIR\QQBuddy\Def_Skin"
  RMDir "$INSTDIR\QQBuddy\Dat\images"
  RMDir "$INSTDIR\QQBuddy\Dat"
  RMDir "$INSTDIR\QQBuddy"
  RMDir "$INSTDIR\QQAddrPlugin"
  RMDir "$INSTDIR\QQAddrDat"
  RMDir "$INSTDIR\QBox\SrvImage"
  RMDir "$INSTDIR\QBox\msg"
  RMDir "$INSTDIR\QBox\Def_Skin\pay"
  RMDir "$INSTDIR\QBox\Def_Skin\msg"
  RMDir "$INSTDIR\QBox\Def_Skin"
  RMDir "$INSTDIR\QBox"
  RMDir "$INSTDIR\NewSkins\QQ2005原版皮肤\SearchPlugin"
  RMDir "$INSTDIR\NewSkins\QQ2005原版皮肤\MusicPlugin"
  RMDir "$INSTDIR\NewSkins\QQ2005原版皮肤\IMSkin"
  RMDir "$INSTDIR\NewSkins\QQ2005原版皮肤"
  RMDir "$INSTDIR\NewSkins\QQ2005\IMSkin"
  RMDir "$INSTDIR\NewSkins\QQ2005"
  RMDir "$INSTDIR\NewSkins"
  RMDir "$INSTDIR\NEWFACE"
  RMDir "$INSTDIR\flashshow\xml8"
  RMDir "$INSTDIR\flashshow\xml6"
  RMDir "$INSTDIR\flashshow\qqshow9"
  RMDir "$INSTDIR\flashshow\qqshow8"
  RMDir "$INSTDIR\flashshow\qqshow7"
  RMDir "$INSTDIR\flashshow\qqshow6"
  RMDir "$INSTDIR\flashshow\qqshow5"
  RMDir "$INSTDIR\flashshow\qqshow4"
  RMDir "$INSTDIR\flashshow\qqshow3"
  RMDir "$INSTDIR\flashshow\qqshow2"
  RMDir "$INSTDIR\flashshow\qqshow1"
  RMDir "$INSTDIR\flashshow\qqshow0"
  RMDir "$INSTDIR\flashshow\98"
  RMDir "$INSTDIR\flashshow\90"
  RMDir "$INSTDIR\flashshow\46"
  RMDir "$INSTDIR\flashshow\32"
  RMDir "$INSTDIR\flashshow\29"
  RMDir "$INSTDIR\flashshow"
  RMDir "$INSTDIR\Face"
  RMDir "$INSTDIR\Dat\images"
  RMDir "$INSTDIR\Dat"
  RMDir "$INSTDIR\chatskin\蓝色幻想"
  RMDir "$INSTDIR\chatskin\public"
  RMDir "$INSTDIR\chatskin"
  RMDir "$INSTDIR\ChatRoomDll"
  RMDir "$INSTDIR\Chat"
  RMDir "$INSTDIR"
  DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"
  DeleteRegKey HKLM "${PRODUCT_DIR_REGKEY}"
  IfFileExists $INSTDIR +1 +2
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从你的计算机移除。$\n但$INSTDIR不能删除,因为该文件夹不为空。$\n请您进入其目录手动删除。"
  IfFileExists $INSTDIR +2 +1
  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从你的计算机移除。"
  SetAutoClose false
SectionEnd
#-- 根据 NSIS 脚本编辑规则,所有 Function 区段必须放置在 Section 区段之后编写,以避免安装程序出现未可预知的问题。--#
Function un.onInit
!insertmacro MUI_UNGETLANGUAGE
  MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "你确实要完全移除 $(^Name) ,及其所有的组件?" IDYES +2
  Abort
FunctionEnd
Function un.onUninstSuccess
;  HideWindow
;  MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) 已成功地从你的计算机移除。"
FunctionEnd