程序:QQ2009自定义

优质
小牛编辑
127浏览
2023-12-01
1.编译RunPluginTool.nsi->RunPluginTool.exe
2.编译qq.nsi->QQ.exe
3.QQ主程序QQ.exe改名TxQQ.exe
4.搞好会员破解
5.将PluginTool.ini;PluginTool.exe;QQ.exe;RunPluginTool.exe;TxQQ.exe集成进去

引用RunPluginTool.nsi的内容:

SetCompressor /SOLID lzma
SetCompress force
OutFile "RunPluginTool.exe"
Name "RunPluginTool"
Var QQDIC
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
;程序版本信息
  VIProductVersion "0.0.0.1"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "ProductName" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "Comments" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "CompanyName" "Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalTrademarks" "Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalCopyright" "Copyright (C) 2009 Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileDescription" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileVersion" "0.0.0.1"
!include "FileFunc.nsh"
Function .onInit
SetSilent silent
Sleep 1000
ReadRegStr $QQDIC HKLM "SOFTWARE\TENCENT\QQ2009" "Install"
MessageBox MB_OK '1.$QQDIC'
StrCmp $QQDIC "" endp
StrCpy $QQDIC "$QQDIC\Bin"
${GetFileVersion} "$QQDIC\QQ.EXE" $1
MessageBox MB_OK '版本:$1'
StrCmp $1 "0.0.0.1" +1 endp
ClearErrors
Rename "$QQDIC\QQ.EXE" "$QQDIC\~qq.tmp"
MessageBox MB_OK '3."$QQDIC\QQ.EXE"'
Delete /REBOOTOK "$QQDIC\~qq.tmp"
Rename "$QQDIC\TxQQ.EXE" "$QQDIC\QQ.EXE"
endp:
SetOutPath $QQDIC
CreateShortCut "$SMPROGRAMS\腾讯软件\QQ2009\QQ插件管理器.lnk" "$QQDIC\PluginTool.exe"
ExecWait "$QQDIC\PluginTool.exe"

${GetFileVersion} "$QQDIC\QQ.EXE" $1
StrCmp $1 "0.0.0.1" +2
Exec "$QQDIC\QQ.exe"
FunctionEnd
Section
SectionEnd

引用qq.nsi的内容:

SetCompressor /SOLID lzma
SetCompress force
RequestExecutionLevel admin
LoadLanguageFile "${NSISDIR}\Contrib\Language files\SimpChinese.nlf"
;程序版本信息
  VIProductVersion "0.0.0.1"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "ProductName" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "Comments" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "CompanyName" "Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalTrademarks" "Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "LegalCopyright" "Copyright (C) 2009 Ansifa"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileDescription" "QQ安装辅助工具"
  VIAddVersionKey /LANG=${LANG_SIMPCHINESE} "FileVersion" "0.0.0.1"

OutFile "QQ.exe"
Name "QQ"
Function .onInit
SetSilent silent
InitPluginsDir
File /oname=$PLUGINSDIR\RunPluginTool.exe RunPluginTool.exe
Exec "$PLUGINSDIR\RunPluginTool.exe"

FunctionEnd
Section
SectionEnd

附件另存