Register Office 365 iFilters manually?

Discussion in 'Windows 10' started by highend, Jan 7, 2021.

  1. highend

    highend MDL Junior Member

    Oct 5, 2008
    86
    17
    0
    Hi,

    from an Office 365 (64-bit) installation I've captured these files:
    Code:
    msgfilt.dll
    odffilt.dll
    offfiltx.dll
    
    and on a clean system (tested on Windows Server 2019 x64 + Windows 10 2004 x64) I then create
    Code:
    C:\Program Files\Common Files\microsoft shared\Filters
    
    and copy the files into it (I've left out the registry entries for msgfilt.dll & odffilt.dll) in the next step.
    At the moment I'm only interested in getting e.g. .docx / .pptx / .xlsx files to work

    Then I do the registry modifications:

    Code:
    REG ADD "HKLM\SOFTWARE\Classes\.docm\PersistentHandler" /ve /d "{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.docx\PersistentHandler" /ve /d "{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.dotx\PersistentHandler" /ve /d "{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.pptm\PersistentHandler" /ve /d "{4F46F75F-199F-4C63-8B7D-86D48FE7970C}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.pptx\PersistentHandler" /ve /d "{4F46F75F-199F-4C63-8B7D-86D48FE7970C}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.xlsm\PersistentHandler" /ve /d "{4887767F-7ADC-4983-B576-88FB643D6F79}" /f
    REG ADD "HKLM\SOFTWARE\Classes\.xlsx\PersistentHandler" /ve /d "{4887767F-7ADC-4983-B576-88FB643D6F79}" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}" /ve /d "Office Open XML Format Word Persistent Handler" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{D3B41FA1-01E3-49AF-AA25-1D0D824275AE}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}" /ve /d "{5A98B233-3C59-4B31-944C-0E560D85E6C3}" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{4F46F75F-199F-4C63-8B7D-86D48FE7970C}" /ve /d "Office Open XML Format PowerPoint Persistent Handler" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{4F46F75F-199F-4C63-8B7D-86D48FE7970C}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}" /ve /d "{DDFE337F-4987-4EC8-BDE3-133FA63D5D85}" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{4887767F-7ADC-4983-B576-88FB643D6F79}" /ve /d "Office Open XML Format Excel Persistent Handler" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{4887767F-7ADC-4983-B576-88FB643D6F79}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}" /ve /d "{F90DFE0C-CBDF-41FF-8598-EDD8F222A2C8}" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{5A98B233-3C59-4B31-944C-0E560D85E6C3}" /ve /d "Office Open XML Format Word Filter" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{5A98B233-3C59-4B31-944C-0E560D85E6C3}\InprocServer32" /ve /d "C:\Program Files\Common Files\microsoft shared\Filters\offfiltx.dll" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{5A98B233-3C59-4B31-944C-0E560D85E6C3}\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Both" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{DDFE337F-4987-4EC8-BDE3-133FA63D5D85}" /ve /d "Office Open XML Format PowerPoint Filter" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{DDFE337F-4987-4EC8-BDE3-133FA63D5D85}\InprocServer32" /ve /d "C:\Program Files\Common Files\microsoft shared\Filters\offfiltx.dll" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{DDFE337F-4987-4EC8-BDE3-133FA63D5D85}\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Both" /f
    
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{F90DFE0C-CBDF-41FF-8598-EDD8F222A2C8}" /ve /d "Office Open XML Format Excel Filter" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{F90DFE0C-CBDF-41FF-8598-EDD8F222A2C8}\InprocServer32" /ve /d "C:\Program Files\Common Files\microsoft shared\Filters\offfiltx.dll" /f
    REG ADD "HKLM\SOFTWARE\Classes\CLSID\{F90DFE0C-CBDF-41FF-8598-EDD8F222A2C8}\InprocServer32" /v "ThreadingModel" /t REG_SZ /d "Both" /f
    
    I've checked all CLSIDs when Office 365 was installed...

    But it doesn't work after doing this manual form of registration!

    Using the command line tools from the Windows SDK:
    "filtreg.exe"
    lists .e.g the correct entry for .docx
    Code:
    .docx --> Office Open XML Format Word Filter (C:\Program Files\Common Files\microsoft shared\Filters\offfiltx.dll)
    But "filtdump.exe"
    fails to extract the content of a .docx file that could be extracted just fine when Office was installed
    Code:
    filtdump.exe "D:\Logitech M570 Trackball.docx"
    FILE: D:\Logitech M570 Trackball.docx
    IFILTER: LoadIFilter failed, hr == 0x8007007e
    IFILTER: SHCreateStreamOnFileEx failed, hr == 0x8007007e
    LoadIFilterWrapper failed, hr == 0x8007007e
    FILTDUMP failed, hr == 0x8007007e
    
    Does anyone have a clue, what I'm missing to get this working?
     
  2. sebus

    sebus MDL Guru

    Jul 23, 2008
    6,356
    2,026
    210
    While it does not answer directly, would there be a problem to install O365 customized to include only these 3 apps?
    O365 click-to-run installation is small, pretty much self-contained (not like previous versions)