'Fix the News Quick View
Option Explicit

Dim WshShell, objShell, sMsg, sInput, sDone, sCancel 

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 _
 & "Do you wish to Continue?"

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If sInput = vbYes Then 

On Error Resume Next

Set WshShell = CreateObject( "WScript.Shell" )
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 and Vista 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
