'Block IE7 Update
On Error Resume Next

Dim WshShell, Message, M
Message = "This script will Block IE7 Update." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?" 

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If M = 6 Then 

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0\DoNotAllowIE70", 1, "REG_DWORD"

Message = "IE7 Update is now Blocked." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox Message, 64, "Paul's XP and Vista Tweaks"
End If
