手工删除Windows桌面搜索的方法

最近不慎被Windows自动更新装上了桌面搜索。

这个玩意速度很慢不说,关键是还查不到文件。

要卸载桌面搜索,正常情况可以通过控制面板或
执行"%WINDOWS%$NtUninstallKB917013$/"里的文件删除。如果在你本机上找不到卸载文件 ,可以通过手工搞定。

下面这种方法也适用于其他较复杂的Windows程序卸载。步骤如下:

1. To find the setup configuration file "update.inf" in the distributive
2. To collect in some special folder the files: spuninst.exe, updspapi.dll
(在%WINDOWS%/$NtUninstallKBxxxxxx目录下随便找一份)
3. To convert the setup information from update.inf to uninstall information file spuninst.inf and put spuninst.inf to the same folder as in spuninst.exe
4. To run spuninst.exe - that's all!

也可以直接复制下面的内容作为 spuninst.inf

[Version]
    Signature = "$Windows NT$"
    NtServicePackVersion = 0
    NtServicePackVersionText = "KB917013"
    NtServicePackVersionFullText = "Windows Desktop Search 3.01"
    NtServicePackPreviousVersion = 512
    NtServicePackPreviousVersionText = "No KB917013"
    IEVersion = "0.0.0.0"
    DisplayTitle = "KB917013"
    SP_TITLE = "Windows Desktop Search 3.01"
    RebootRequired  = 1

[SourceDisksNames]
    1="Windows Desktop Search Source Files"

[SourceDisksFiles]
    msscolmn.txt=1
    gathrprm.txt=1
    schema.txt=1
    msscntrs.dll=1
    mssitlb.dll=1
    searchprotocolhost.exe=1
    searchfilterhost.exe=1
    searchindexer.exe=1
    mssph.dll=1
    mssphtb.dll=1
    mssprxy.dll=1
    mssrch.dll=1
    msstrc.dll=1
    propdefs.dll=1
    tquery.dll=1
    msscb.dll=1
    gsrvctr.h=1
    gsrvctr.ini=1
    gthrctr.h=1
    gthrctr.ini=1
    idxcntrs.h=1
    idxcntrs.ini=1
    msshsq.dll=1
    structuredqueryschema.bin=1
    structuredqueryschematrivial.bin=1
    xmlfilter.dll=1
    rtffilt.dll=1
    srchadmin.dll=1
    propsys.dll=1
    searchindexer.exe.mui=1
    mssrch.dll.mui=1
    tquery.dll.mui=1
    mssphtb.dll.mui=1
    mssph.dll.mui=1
    srchadmin.dll.mui=1
    propsys.dll.mui=1
    dsksrch.chm=1
    deskbar.cfg=1
    deskbar.dll=1
    dbsetup.dll=1
    dbres.dll=1
    wordwheel.dll=1
    wwres.dll=1
    msnlDl.dll=1
    msnldlps.dll=1
    msnlExt.dll=1
    msnlExtRes.dll=1
    msnlNamespaceMgr.dll=1
    msnlRed.dll=1
    WdsMktTools.dll=1
    wdsShell.dll=1
    wdsView.dll=1
    WindowsSearch.exe=1
    WindowsSearchRes.dll=1
    MarketStrings.cfg=1
    mapine.dll=1
    mapineres.dll=1
    dbres.dll.mui=1
    msnlExtRes.dll.mui=1
    WindowsSearchRes.dll.mui=1
    wwres.dll.mui=1
    mapineres.dll.mui=1
    oeph.dll=1
    OEphRes.dll=1
    OEphRes.dll.mui=1
    UncPH.dll=1
    UncRes.dll=1
    UncCplExt.dll=1
    UncNE.dll=1
    UncDMS.dll=1
    UncRes.dll.mui=1

[DestinationDirs]
    System32.Files                  = 11     ; %windir%/system32 (replace if exist)
    Search.Config.Files             = 16419, "Microsoft/Search/Config" ; .../All Users/Application Data/Microsoft/Search/Config
    Search.Data.Config.Files        = 16419, "Microsoft/Search/Data/Config" ; .../All Users/Application Data/Microsoft/Search/Data/Config
    Mui.Name.Files                  = 11, "%WDS_MARKET%" ; %windir%/system32/<en-US style locale>
    Mui.ID.Files                    = 11, "mui/%WDS_MARKET_LCID%" ; %windir%/system32/mui/<lcid>
    WindowsDesktopSearch.UI.Files   = 16422, "%WDSAppsSubDir%" ; Program Files/Windows Desktop Search
    Ext.files                       = 16422, "%WDSAppsSubDir%" ; Program Files/Windows Desktop Search
    Ext.Mui.Files                   = 16422, "%WDSAppsSubDir%/%WDS_MARKET%" ; Program Files/Windows Desktop Search/%WDS_MARKET%
    OEPH.Files                  = 11     ; %windir%/system32 (replace if exist)
    OEPH.Mui.Files              = 11, "%WDS_MARKET%" ; %windir%/system32/<en-US style locale>
    UNCPH.Files                 = 11     ; %windir%/system32 (replace if exist)
    UNCPH.Mui.Files             = 11, "%WDS_MARKET%" ; %windir%/system32/<en-US style locale>

[ProductCatalogsToInstall.delete.files]

    KB917013.cat

[ProcessesToRunBeforeUninstall]
    "%SystemRoot%/System32/cmd.exe /c ""%SystemRoot%/System32/unlodctr.exe UGatherer"""
    "%SystemRoot%/System32/cmd.exe /c ""%SystemRoot%/System32/unlodctr.exe UGTHRSVC"""
    "%SystemRoot%/System32/cmd.exe /c ""%SystemRoot%/System32/unlodctr.exe wsearchidxpi"""

[Configuration]
    UninstallationType    = "Hotfix"
    UnInstallLogFileName  = "KB917013Uninst.log"
    EventLogKeyName       = "NtServicePack"
    ProductName           = ""
    CustomizationDll      = ""
    WaitTimeForServiceStop = 0
    OverwriteThirdParty    = 0
    RestartDevice          = 0
    ServiceFileInUseDetect       = "0"
  UninstallCustomizationDLL = wss_SpCustom.dll

[GlobalRegistryChanges]
 DelReg = Del.Reg

[Del.Reg]
    HKLM, Software/Microsoft/Windows/Windows Search
    HKLM, Software/Microsoft/Windows Desktop Search
    HKLM, Software/Microsoft/Windows Search Service
    HKLM, Software/Microsoft/Windows Search, "CurrentVersion"
    HKLM, Software/Microsoft/Windows Search, "DataDirectory"
    HKLM, Software/Microsoft/Windows Search, "InstallDirectory"
    HKLM, Software/Microsoft/Windows Search, "DefaultColumnFile"
    HKLM, Software/Microsoft/Windows Search, "UseLowPriorityConfiguration"
    HKLM, Software/Microsoft/Windows Search, "SetupCompletedSuccessfully"
    HKLM, Software/Microsoft/Windows Search, "indexer:ci:MaxRestrictionNodes"
    HKLM, Software/Microsoft/Windows Search/Applications
    HKLM, Software/Microsoft/Windows Search/CatalogNames
    HKLM, Software/Microsoft/Windows Search/ContentIndexCommon
    HKLM, Software/Microsoft/Windows Search/CrawlScopeManager
    HKLM, Software/Microsoft/Windows Search/Databases
    HKLM, Software/Microsoft/Windows Search/DataDirectory
    HKLM, Software/Microsoft/Windows Search/Gather
    HKLM, Software/Microsoft/Windows Search/Gathering Manager
    HKLM, Software/Microsoft/Windows Search/Indexer
    HKLM, Software/Microsoft/Windows Search/InstallDirectory
    HKLM, Software/Microsoft/Windows Search/PerformanceCounters
    HKLM, Software/Microsoft/Windows Search/SearchService
    HKLM, Software/Microsoft/Windows Search/UsnNotifier
    HKLM, Software/Microsoft/Windows Search/PreviousSettings
    HKCU, Software/Microsoft/Windows Search
    HKCU, Software/Microsoft/Windows Desktop Search

[Del.Reg.PerfCounters.Uninstall]
    HKLM, System/CurrentControlSet/Services/UGatherer
    HKLM, System/CurrentControlSet/Services/UGTHRSVC
    HKLM, System/CurrentControlSet/Services/wsearchidxpi

[Product.Del.Reg.UI]
    HKLM, Software/Microsoft/Search-ms
    HKLM, Software/Classes/CLSID/{70804ECC-7272-4dc8-AFFC-97CD66AAA282}
    HKLM, Software/Classes/Search.MapPI
    HKLM, Software/Microsoft/Windows Desktop Search



上述方法,我参考了:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1456784&SiteID=1
  • 5
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值