LPK()

From Lianjapedia
Revision as of 05:16, 13 June 2018 by Yvonne.milne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Function to install or list the contents of .lpk Lianja Package Files

Syntax

LPK(<cOperation>, <cFilename>, <lOverwrite>)

See Also

Lianja Package Files, Lianja Package Manager

Description

The LPK() function can be used to install or list the contents of .lpk Lianja Package Files.

Lianja Package Files are used to package up Apps, databases and Library files to transfer to another Lianja App Builder installation. See Lianja Package Files for instructions on how to build them.

Parameters Required Description
<cOperation> Yes The operation: "list" | "install".
<cFilename> Yes The name of the .lpk file. This can include the "packages:/" prefix to refer to the default Lianja packages sub-directory.
<lOverwrite> Yes Whether existing files should be overwritten when installing a .lpk file.

Introduced in Lianja v4.2.

Example

// List the contents of test.lpk using the full path
lpk("list","C:\Users\Myuser\Downloads\test.lpk",.f.)
// List the contents of test.lpk located in the packages directory
lpk("list","packages:/test.lpk",.f.)
// Install without overwriting
lpk("install","packages:/test.lpk",.f.)
// Install and overwrite
lpk("install","packages:/test.lpk",.t.)