[ |../../index.htm#lansa/ladsi02_0075.htm]
You are here:

Creating an Install Save File

In addition to writing the QINSTAPP program, you need to create a save file containing the program and any supporting objects. To distribute the program on an optical device, do the following:
You will find some example code in DCXISVLIB/DCXSRC member DCXLCP0003
1.  Clear the library QTEMP.
2.  Restore all the LANSA objects from LANSAPKG:
     RSTOBJ OBJ(*ALL) SAVLIB(QTEMP) DEV(*SAVF) SAVF(WhereYouDownloadedLib/LANSAPKG) RSTLIB(QTEMP) OMITOBJ((QINSTAPP *PGM))
3.  Use the Create Duplicate Object (CRTDUPOBJ) command to create your QINSTAPP program into the QTEMP library. 
4.  Duplicate all your application save file to QTEMP.
5.  Now save the QTEMP library SAVOBJ OBJ(*ALL) LIB(QTEMP) DEV(*SAVF) SAVF(YOUR_MASTER_LIB/APPPKG)
What you must include
Following is a sample layout. This sample layout excludes all French and Japanese objects. For the exact LANSA install layout, check the LANSAPKG save file.
Your application saves file layout
Your QINSTAPP
    ADMLIB
    COMLIB
    DTALIB
    LOADLIB
    MISLIB
    MODLIB
    PGMLIB
    JSM (Optional – required for LANSA Integrator)
    Your Application save file
Other things you may want to include

Considerations when creating your installation SAVE FILE

 Only include the French(FRALIB) and Japanese(JPNLIB) objects from the LANSA installation Save file if these languages are supported by your application. (Removing them will significantly reduce the size of the install save file.)

[ |../../index.htm#lansa/ladsi02_0075.htm]