What Is an Extension License Agreement?
An End User License Agreement (EULA) is a legal contract between a software developer or publisher, and the user of that application. CET has its own EULA, but you are also able to add a license agreement to your Extension.
Specifying Extension License Agreements
To add a license agreement to your Extension
, you will have to edit the getExtensionInfo()
found in the extension.cm file. In the example below, we will showcase adding an EULA to our Extension.
/** * Get extension info. */ package ExtensionInfo getExtensionInfo() : referred { ExtensionInfo info = loadExtensionInfoFromXml(#:package); info.licenseOnlineDir = "CET25/configura/"; info.licenseDir = "res/documents/"; info.licenseFile = "CetEndUserLicenseAgreement.rtf"; return info; }
When Is the EULA Shown?
To prevent the users from having to agree to the same EULA over and over again, we save the agreed status to CET's runtime settings. The saved information is based on:
- The license file relative path
- The license file name
- The checksum (CRC32) of the license file contents
So if you change the EULA, then the user should have to agree to it again the next time they install your Extension
. If you want to force the user to accept the EULA again even if its contents have not changed, you may add an extra blank row to it or rename the file.
Also note that the EULA is only shown during an "interactive" install. For example, when the user is installing CET.
It will not be shown when CET is doing automatic installs, like it does during the first start of CET, after installing from the .msi file. At this point, the CET EULA has already been approved during the .msi installation process.
Comments
0 comments
Please sign in to leave a comment.