occ-root-installer (proc)
public {occ-root-installer new-root-url:Url, old-root-url:Url}:bool
Import from: CURL.GUI.STANDARD. Defined in package CURL.GUI.DIALOGS.

An installer for use with occ-install-or-update, which will install or update an entire tree from a single archive.

Description

When run by occ-install-or-update, this procedure will determine if the curl-timestamp.txt file has changed since the last attempt (if any), and if so, will update the contents of new-root-url, either by copying all the files listed in the curl-contents.txt file (from the webserver), if it exists and is non-empty, or else by extracting the contents of the curl-archive.car file (from the webserver). This is similar to the steps taken by occ-module-installer for each module.

Notes

The deployment tool in the IDE can be used to generate the curl-archive.car and curl-timestamp.txt files.

See occ-module-installer for information about creating these files without using the deployment tool.