[Solved] Disable UpdateCheck

Discussions about using 3rd party extension with OpenOffice.org
Post Reply
capellan
Posts: 2
Joined: Thu Oct 02, 2014 7:49 pm

[Solved] Disable UpdateCheck

Post by capellan »

I'm trying to create an extension that will disable checking for updates automatically.

I found this in the registrymodifications.xcu file:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><oor:items xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<item oor:path="/org.openoffice.Office.Jobs/Jobs/org.openoffice.Office.Jobs:Job['UpdateCheck']/Arguments">
    <prop oor:name="AutoCheckEnabled" oor:op="fuse" oor:type="xs:boolean">
      <value>false</value>
    </prop>
</item></oor:items>
And I have this line in the manifest.xml:

Code: Select all

<manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data" 
                       manifest:full-path="DisableAutoUpdate.xcu"/>
But this did not work for me.

I've looked at https://wiki.openoffice.org/wiki/Non-code_extensions and looked over https://wiki.openoffice.org/wiki/File:Configuration.oxt. That follows the same format as my other .xcu's (which all work -- those ones disable the first time wizard):

Code: Select all

<node oor:name="Save">
  <node oor:name="Document">
   <prop oor:name="LoadPrinter" oor:type="xs:boolean">
    <value>false</value>
   </prop>
  </node>
 </node>
Is it possible to reach the auto-update check box using the same format? I've looked and couldn't find a listing of all the "short" names for the nodes (i.e. how "Load/Save" is "Save" in the above example, and "General" is "Document").
Last edited by capellan on Fri Oct 03, 2014 8:44 pm, edited 2 times in total.
OpenOffice 4.1.1 on Windows 7
hanya
Volunteer
Posts: 885
Joined: Fri Nov 23, 2007 9:27 am
Location: Japan

Re: Disable UpdateCheck

Post by hanya »

It seems this could be shorter but works well.

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<oor:component-data 
    xmlns:oor="http://openoffice.org/2001/registry" 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    oor:name="Jobs" 
    oor:package="org.openoffice.Office">
	<node oor:name="Jobs">
        <node oor:name="UpdateCheck" oor:op="fuse">
            <prop oor:name="Context" oor:type="xs:string">
                <value>com.sun.star.setup.UpdateCheck</value>
            </prop>
            <node oor:name="Arguments" oor:op="fuse">
                <prop oor:name="AutoCheckEnabled" oor:type="xs:boolean">
                    <value>false</value>
                </prop>
                <prop oor:name="AutoDownloadEnabled" oor:type="xs:boolean">
                    <value>false</value>
                </prop>
                <prop oor:name="CheckInterval" oor:type="xs:int">
                    <value>604800</value>
                </prop>
                <prop oor:name="DownloadDestination" oor:type="xs:string">
                    <value></value>
                </prop>
                <prop oor:name="DownloadPaused" oor:type="xs:boolean">
                    <value>false</value>
                </prop>
                <prop oor:name="DownloadSupported" oor:type="xs:boolean">
                    <value>true</value>
                </prop>
                <prop oor:name="LastCheck" oor:type="xs:int">
                    <value>0</value>
                </prop>
            </node>
        </node>
    </node>
</oor:component-data>
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
Apache OpenOffice 4-dev on Xubuntu 14.04
capellan
Posts: 2
Joined: Thu Oct 02, 2014 7:49 pm

Re: Disable UpdateCheck

Post by capellan »

That'll work, thanks hanya.
OpenOffice 4.1.1 on Windows 7
Post Reply