标题: 删除Windows Messenger [打印本页] 作者: mingkun 时间: 2003-1-1 15:30 标题: 删除Windows Messenger 使用HOTMAIL的朋友是不是感觉到有所不方便,因为MSN别MESSENGER每次总是跟随OUTLOOK EXPRESS一起启动,令人讨厌,而MSN MESSENGER 5.0则没有这种形为,而我们安装了5.0后,那个4.7 还是固化在我们的系统中,是不是觉得有点拉圾的味道,使用下面的这段代码可以移除MSN MESSENGER4.7:
'xp_messsenger_remove.vbs - Removes Windows Messenger from Windows XP
'?Doug Knox - 3/30/02
'This code may be freely distributed/modified
'Downloaded from www.dougknox.com
Option Explicit
On Error Resume Next
'Dimension variables
Dim WSHShell, MyBox, p1, q1, rcmd
Dim jobfunc
'Set the Windows Script Host Shell and assign values to variables
Set WSHShell = WScript.CreateObject("WScript.Shell")
p1 = "HKEY_LOCAL_MACHINE\Software\Microsoft\Outlook Express\Hide Messenger"
q1 = 2
rcmd = "RunDll32 advpack.dll,LaunchINFSection %windir%\inf\msmsgs.inf,BLC.Remove"
'Create or change the Hide Messenger value
WSHShell.RegWrite p1, q1
'Run the uninstall command
WshShell.Run(rcmd)
你只需把这段代码复制到记事本,然后另存为VBS为扩展名的文件后,在MSN退出后运行并重启后即可。
不过要安装5。0的人要在运行这段代码后安装,因为它对5.0同样有效。