有人问相关问题,写着玩的。发出来可能对新手有帮助。
代码来自:少轻狂
Name http
OutFile http.exe
!include "FileFunc.nsh"
!include "WordFunc.nsh"
Section
ReadRegStr $R1 HKCR "http\shell\open\command" ""
MessageBox MB_OK "$R1"
${GetFileName} "$R1" $R2
${WordFind} "$R2" ".exe" "+1" $R3
KillerHTTP:
killer::KillProcess "$R3.exe"
killer::IsProcessRunning "$R3.exe"
Pop $R0
StrCmp $R0 1 KillerHTTP NextHTTP
NextHTTP:
SectionEnd
评论 (0)