https://bugs.documentfoundation.org/show_bug.cgi?id=164757

--- Comment #12 from Christian Lohmaier <[email protected]> ---
To disable updates, one can use:

Expert Configuration → Search for "Office.Update" → change the "Enabled" value
to false. (or set the LastUpdateTime to way ahead in the future)

But if you want to install an old version and prevent it from updating at first
launch and you don't have an existing userprofile with the disabled setting
(i.e. install fresh), you'll either have to edit the corresponding setting in
the main.xcd file, which can be done with a small powershell script: 
######
$path = 'C:\Program Files\LibreOffice\share\registry\main.xcd'
$xml = New-Object xml
$xml.PreserveWhitespace = $true

$xml.Load($path)

$node = $xml.'data'.'component-schema' | Where-Object {$_."name" -eq 'Update'}
$node = $node.component.group.prop |
Where-Object {$_.'name' -eq 'Enabled'}

if ($node) {
    $node.value = 'false'
    Write-Output $node
} else {
    Write-Output "Error - MAR Enabled node not found"
    exit 1
}

$sanitized = $xml.OuterXml.Replace(" />","/>")

Set-Content -Path $path -Value $sanitized -Encoding UTF8 -NoNewline
######

Or if you don't want to touch the installation setting, launch it from
commandline and set the LIBO_UPDATER_URL to something where LibreOffice won't
find an update.


so three ways to disable update:
* Expert Configuration to set Enabled to false
* editing main.xcd (by hand or with powershell) to set Enabled to falst
* using the LIBO_UPDATER_URL environment variable to prevent LO from finding an
update.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to