Sunday, June 10, 2007

Remove Lookout

If you are upgrading to Office 2007 you might want to uninstall Lookout if it is installed. The problem is that they don't have a silent uninstall. The only way to get rid of it (unless the user is an admin) is to blow away Lookout. Otherwise desktop search will not install.


-------------remove lookout.vbs -------------------------
on error resume next
Set Sh = WScript.CreateObject("WScript.Shell")
Key ="HKLM\SOFTWARE\Microsoft\Fusion\References\LookoutAddIn, Version=1.0.1868.24056, Culture=neutral, PublicKeyToken=b7aa31f2379f8c07\{2EC93463-B0C3-45E1-8364-327E96AEA856}\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Microsoft\Fusion\References\LookoutAddIn, Version=1.0.1868.24056, Culture=neutral, PublicKeyToken=b7aa31f2379f8c07\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Lookout Software\Lookout\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Lookout Software\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Microsoft\Office\Outlook\AddIns\LookoutAddInShim.Connect\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Lookout\"
Sh.RegDelete Key
Key ="HKEY_USERS\.DEFAULT\Software\Microsoft\Office\Outlook\Addins\LookoutAddInShim.Connect\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Classes\LookoutAddInShim.Connect\CLSID\"
Sh.RegDelete Key
Key ="HKLM\SOFTWARE\Classes\LookoutAddInShim.Connect\"
Sh.RegDelete Key
Key ="HKCR\LookoutAddInShim.Connect\CLSID\"
Sh.RegDelete Key
Key ="HKCR\LookoutAddInShim.Connect\"
Sh.RegDelete Key
Key ="HKEY_CLASSES_ROOT\CLSID\{86e53597-10b0-4e2e-ad00-53044a23c550}\ProgID\"
Sh.RegDelete Key
Key ="HKEY_CLASSES_ROOT\CLSID\{86e53597-10b0-4e2e-ad00-53044a23c550}\InprocServer32\"
Sh.RegDelete Key
Key ="HKEY_CLASSES_ROOT\CLSID\{86e53597-10b0-4e2e-ad00-53044a23c550}\"
Sh.RegDelete Key'''now delete the folder
Set oFSO = CreateObject("Scripting.FileSystemObject")
sDirectoryPath = "C:\Program Files\Lookout Software"
set oFolder = oFSO.GetFolder(sDirectoryPath)
oFolder.Delete(true)
-----------------------------------------------