Default Application for Office Extensions in GPO / Registry?

Hello,

I would like to set OnlyOffice as the default program for file extensions such as xlsx, docx, pptx, etc., across a network of computers, either via command line or through a registry export/import, but I cannot find a way to achieve this.

I tried setting OnlyOffice as the default program via the graphical interface and then exporting using the command:
dism /online /Export-DefaultAppAssociations:"%USERPROFILE%\Desktop\DefaultAppAssociations.xml"
to later inject it with
DISM /Online /Import-DefaultAppAssociations:"%USERPROFILE%\Desktop\DefaultAppAssociations.xml".
However, it doesn’t work. When opening the DefaultAppAssociations.xml file, there is no entry for OnlyOffice and the xls, doc, etc. extensions.

Additionally, I cannot find a ProgId for OnlyOffice that would allow me to make these changes through the registry.

How can I do this?

Thank you for your help!

Hey @Mister :wave:

Thanks for reaching out! I’ll dig into this and get back to you soon.
Just to clarify, are you planning to use the .msi version of ONLYOFFICE Desktop for deployment across your network?

Yes, i use the .msi

1 Like

Hi @Nikolas
Do you have any updates?

@Mister :vulcan_salute:

Setting OnlyOffice as the Default Program for File Types via Command Line/Registry:

Yes, it is possible to set OnlyOffice Desktop as the default program for specific file types during installation.

The method you described using DISM is correct and does work, but as a note, this approach is only effective for new users who have not yet logged into the system. For existing users, it won’t apply automatically.

To assist you further, I’ve attached an XML file that lists all the file extensions supported by OnlyOffice, along with their corresponding ProgID values. You can use this to update the default app associations in your environment.

Custom Installation with File Association Control:

You can manage file type associations during the installation using specific keys. Below is a list of keys that you can use to control which file types OnlyOffice will be associated (unassociated) with:

  • REGISTER_NONE=1 – Disable all file associations.

or

  • REGISTER_CSV=0

  • REGISTER_DJVU=0

  • REGISTER_DOC=0

  • REGISTER_DOCM=0

  • REGISTER_DOCX=0

  • REGISTER_DOCXF=0

  • REGISTER_DOT=0

  • REGISTER_DOTM=0

  • REGISTER_DOTX=0

  • REGISTER_EPUB=0

  • REGISTER_FB2=0

  • REGISTER_HTML=0

  • REGISTER_ODP=0

  • REGISTER_ODS=0

  • REGISTER_ODT=0

  • REGISTER_OTP=0

  • REGISTER_OTS=0

  • REGISTER_OTT=0

  • REGISTER_OXPS=0

  • REGISTER_PDF=0

  • REGISTER_POT=0

  • REGISTER_POTM=0

  • REGISTER_POTX=0

  • REGISTER_PPS=0

  • REGISTER_PPSM=0

  • REGISTER_PPSX=0

  • REGISTER_PPT=0

  • REGISTER_PPTM=0

  • REGISTER_PPTX=0

  • REGISTER_RTF=0

  • REGISTER_TXT=0

  • REGISTER_XLS=0

  • REGISTER_XLSB=0

  • REGISTER_XLSM=0

  • REGISTER_XLSX=0

  • REGISTER_XLT=0

  • REGISTER_XLTM=0

  • REGISTER_XLTX=0

  • REGISTER_XML=0

  • REGISTER_XPS=0

    • To disable all file associations:
      REGISTER_NONE=1

    • To selectively disable associations for specific file types (e.g., DOCX, XLSX, PPTX):
      REGISTER_DOCX=0 REGISTER_XLSX=0 REGISTER_PPTX=0

Known Issue with MSI Installer:
Please be aware that there is a known bug with the MSI installer, where file associations may still apply despite using the correct installation keys.
We are aware of the issue and are actively working on a fix.


Additionally, we are working on adding detailed information about these installation keys to the help section of our website. This should make it easier to reference them in the future.

<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
  <Association Identifier=".csv" ProgId="ASC.Csv" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".djvu" ProgId="ASC.DjVu" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".doc" ProgId="ASC.Document.1" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".docm" ProgId="ASC.Docm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".docx" ProgId="ASC.Document.12" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".docxf" ProgId="ASC.Docxf" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".dot" ProgId="ASC.Dot" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".dotm" ProgId="ASC.Dotm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".dotx" ProgId="ASC.Dotx" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".epub" ProgId="ASC.Epub" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".fb2" ProgId="ASC.Fb2" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".html" ProgId="ASC.Html" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".odp" ProgId="ASC.Show.2" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ods" ProgId="ASC.Sheet.2" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".odt" ProgId="ASC.Document.2" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".otp" ProgId="ASC.Otp" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ots" ProgId="ASC.Ots" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ott" ProgId="ASC.Ott" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".oxps" ProgId="ASC.Oxps" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".pdf" ProgId="ASC.Pdf" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".pot" ProgId="ASC.Pot" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".potm" ProgId="ASC.Potm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".potx" ProgId="ASC.Potx" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".pps" ProgId="ASC.SlideShow.1" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ppsm" ProgId="ASC.Ppsm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ppsx" ProgId="ASC.SlideShow.12" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".ppt" ProgId="ASC.Show.1" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".pptm" ProgId="ASC.Pptm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".pptx" ProgId="ASC.Show.12" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".rtf" ProgId="ASC.Rtf" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".txt" ProgId="ASC.Txt" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xls" ProgId="ASC.Sheet.1" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xlsb" ProgId="ASC.Xlsb" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xlsm" ProgId="ASC.Xlsm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xlsx" ProgId="ASC.Sheet.12" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xltm" ProgId="ASC.Xltm" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xltx" ProgId="ASC.Xltx" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xml" ProgId="ASC.Xml" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier=".xps" ProgId="ASC.Xps" ApplicationName="ONLYOFFICE Editors" />
  <Association Identifier="OO-OFFICE" ProgId="ASC.Editors" ApplicationName="ONLYOFFICE Editors" />
</DefaultAssociations>