Dies ist die alte 4D Dokumentations-Website. Die neue und aktualisierte Dokumentation finden Sie unter developer.4d.com

Home

 
4D v20 R7
Create deployment license

Create deployment license 


 

Create deployment license ( mergedApp ; buildLicense {; oemLicense} ) -> Funktionsergebnis 
Parameter Typ   Beschreibung
mergedApp  4D.Folder in Folder containing the merged application
buildLicense  Dateiobjekt in License required to generate the embedded license
oemLicense  Dateiobjekt in 4D OEM XML Key license if server license
Funktionsergebnis  Objekt in Status

The Create deployment license command creates an embedded license file in the Licenses folder of the mergedApp built application. If the Licenses folder does not exist the mergedApp, it is created by the command.

In mergedApp, pass a 4D.Folder object containing a reference to the folder containing the built application in which you want to embed a license. 

In license, pass a 4D.File object containing a reference to the license file used to generate the embedded license.

If the build requires a specific OEM license (4D OEM XML Keys) and if no such license is already installed in the Licenses folder of the building machine, you need to pass it using the oemLicense parameter. This parameter is useful if you dedicate a machine to build your applications. 

The command returns a status object containing the following properties:

PropertyTypeDescription
successBooleanTrue if the license file has been generated
file4D.FileThe generated license file
statusTextTextDescription of the error if any
errorsCollectionCollection of error objects
[].messageTextError message
[].errCodeNumberError number

Notes:

  • The generated license must be used only with the application referenced by mergedApp.
  • It is necessary to regenerate the license each time the application is rebuilt.

 var $status : Object
 var $application : 4D.File
 var $license : 4D.File
 $license:=Folder(fk licenses folder).file("4UUD200-xxx.license4D")
 $application:=Folder(fk desktop folder).folder("myApp.app")
 $status:=Create deployment license($application;$license)



Siehe auch 

Blog post - Finalize an application with 4D commands

 
EIGENSCHAFTEN 

Produkt: 4D
Thema: Licenses
Nummer: 1811

 
SEITENINHALT 
 
GESCHICHTE 

Erstellt: 4D v20

 
ARTIKELVERWENDUNG

4D Programmiersprache ( 4D v20 R7)