A Runtime license allows you to deliver a copy of IDL that is licensed to run only your application on a single machine. This type of licensing offers developers who have smaller customer bases the opportunity to buy single distribution licenses as they are needed, paying a small fee for each license. The license is either a FLEXlm license tied to the specific machine on which your application will run (so you will need to obtain information about your customer's machine), or a more costly but less restricted license that will run on any machine of a given platform.
You can choose how to license your application:
To distribute an application with a runtime license, follow these steps:
The procedure for building an application to run with a runtime license depends on the type of application.
| Tip |
isVM = LMGR(/VM)
IF isVM THEN BEGIN
void = DIALOG_MESSAGE('Please contact the author for $
licensing instructions')
RETURN
ENDIF
To build a native IDL application with a runtime license, create an IDL distribution for your application by following the steps described in Building Your Application. Keep the following in mind when creating the distribution:
make_rt script, you will need to create your .sav file manually, and make sure to specify "rt" for the mode parameter of the make_rt command. See Syntax of the make_rt Script.
| Note |
To license a Callable IDL application with a runtime license, create an IDL distribution for your application by following the steps described in Building Your Application. If your Callable IDL application uses a .sav file, keep the following in mind when creating the distribution:
make_rt script, you will need to create your .sav file manually, and make sure to set the savefile parameter to the name of your application executable. See Syntax of the make_rt Script.
To license an IDL ActiveX application with a runtime license, create an IDL distribution for your application by following the steps described in Preparing a Windows Distribution. If your ActiveX application uses a .sav file, keep the following in mind when creating the distribution:
make_rt script, you will need to create your .sav file manually, and make sure to set the savefile parameter to the name of your application executable. See Syntax of the make_rt Script.Runtime applications that run on either Windows or UNIX platforms are licensed using either node-locked (FLEXlm) licenses or non-node-locked single-user licenses. Node-locked licenses are tied to the specific machine on which the application will run, while non-node-locked licenses will run on any machine of a given type. The following is an overview of the process you will follow to license your runtime application on either Windows or UNIX:
The following sections describe these steps in detail for each platform.
In order to obtain the information needed to generate a node-locked license file, your end user must run the application lmtools.exe on the machine for which your application is to be licensed. If your end user has already installed an unlicensed copy of your application, he or she will have access to lmtools.exe. Otherwise, you will need to provide the end user with a copy the lmtools.exe file, which can be found in the bin/bin.x86 directory of your IDL distribution.
| Note |
Provide the end user with the following instructions:
lmtools.exe to be able to retrieve the correct information, your system must have a configured network interface card.lmtools.exe application. The Lmtools dialog appears.Hostd ID's----------------------------------- HOSTNAME=myhost USER=jdoe DISPLAY=myhost INTERNET=10.15.2.109 0030dcb86317 DISK_SERIAL_NUM=c5f8b462
When your end user has provided you with the information obtained by lmtools.exe, e-mail this information to register@RSInc.com or fax the information to RSI at (303) 786-9909. If you did not purchase IDL directly from RSI, send the file to your local distributor.
RSI will then send you a license file called license.dat.
Once you have received a license.dat file from RSI, perform the following steps to provide your end user with a licensed copy of your application. If you have provided an unlicensed copy of your application and want the end user to license the application, provide the end user with the following instructions:
| Note |
idl.ini file will be ignored. In this case, the user will either need to add the license file path to the existing LM_LICENSE_FILE value, or move the license file to the location specified by the existing LM_LICENSE_FILE value.
idl.ini file using the instructions under Edit the idl.ini File.license.dat file in the location specified by the idl.ini file. For example, assume the application directory hierarchy of your distribution looks like this:MyApp bin bin.x86 resource
Assume the idl.ini file is located in the MyApp\bin\bin.x86 directory along with your application executable, and the idl.ini file contains the following line:
RSI Root=..\..\..
For this RSI Root value, you must create a license directory at the same level as the MyApp directory, as shown below:
MyApp bin bin.x86 resource license
Then place the license file in the license directory.
| Note |
idl.ini file should be relative to the directory containing the .ini file. This ensures that, if the directory tree for your application is moved to another location, it will still run.
.exe file, located in the bin\bin.x86 subdirectory of the application distribution.
In order to obtain the information needed to generate a node-locked license file, your end user must run the application lmhostid on the machine for which your application is to be licensed. If your end user has already installed an unlicensed copy of your application, he or she will have access to lmhostid. Otherwise, you will need to provide the end user with a copy the lmhostid file, which can be found in the bin directory of your IDL distribution.
| Note |
Provide the end user with the following instructions:
bin directory of the application distribution, execute the command lmhostid. Text similar to the following will be displayed:The FLEXlm host ID of this machine is "80598a67"
lmhostid, along with the hostname of the machine to your application vendor. (To obtain the hostname, enter the command hostname.)
When your end user has provided you with the information returned by lmhostid and the hostname of the machine, e-mail this information to register@RSInc.com or fax the information to RSI at (303) 786-9909. If you did not purchase IDL directly from RSI, send the file to your local distributor.
RSI will then send you a license file called license.dat.
Once you have received a license.dat file from RSI, perform the following steps to provide your end user with a licensed copy of your application. If you have provided an unlicensed copy of your application, and want the end user to license the application, provide him or her with the following instructions:
setenv LM_LICENSE_FILE /myapp/license/license.dat
If there is already an existing value for LM_LICENSE_FILE, append the path for the license directory of your application to the existing LM_LICENSE_FILE value.Separate the new license path from the existing one with a colon as follows:
For C shell:
setenv LM_LICENSE_FILE /home/otherapp/license.dat: /myapp/license/license.dat
license.dat file in directory specified by the LM_LICENSE_FILE environment variable. For example, assume the application directory hierarchy of your distribution looks like this:
| Note |
.sav file with a runtime license is executed, the current working directory will be the directory that contains the .sav file.
How you run a .sav file with a runtime license depends on your operating system:
Do one of the following:
.exe file in the distribution folder and double-click the filename. See Describe How to Start Your Application\bin\bin.x86 directory and enter the following:At the UNIX command prompt, enter the following:
idl -rt=<path><filename>
where <path> is the path to the .sav file, and <filename> is the name of the .sav file.
| Note |
To distribute the example IDL application with a runtime license:
myApp.sav file. See Example Native IDL Application.lmtools.exe (Windows) or lmhostid (UNIX), and send the information to RSI to generate a license file for each customer.