'Fix the News Quick View

Option Explicit

On Error Resume Next

Dim WshShell, objShell, sMsg, sInput, sDone, sCancel 

Set WshShell = CreateObject( "WScript.Shell" )

If WScript.Arguments.length = 0 Then
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" &_
 " RunAsAdministrator", , "runas", 1
Else

sMsg = "This script will fix the News Quick View." & vbCr & vbCr _
 & "This action will DELETE a Registry Key." & vbCr _
 & "Close Windows Live Mail before you run this script." & vbCr & vbCr _
 & "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Do you wish to Continue?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

WshShell.RegDelete "HKCU\Software\Microsoft\Windows Live Mail\SearchFolderVersion"

sDone = "Now you can restart Windows Live Mail." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"

Else 

sCancel = "Action was Canceled"  & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sCancel, 48, "Nothing Done" 

End If
End If

