home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / softinst / invpkg.pk_ / INVPKG.PKG
Encoding:
OS/2 install Package  |  1993-05-24  |  13.1 KB  |  376 lines

  1. *********************************************************************
  2. *                      SOFTWARE INSTALLER                           *
  3. * 5621-434 (C) COPYRIGHT IBM CORP. 1991, 1993. ALL RIGHTS RESERVED. *
  4. *             LICENSED MATERIALS - PROPERTY OF IBM                  *
  5. *                                                                   *
  6. *     SuperMarket Systems Software                                  *
  7. *                                                                   *
  8. *     Sample Software Installer package file                        *
  9. *                                                                   *
  10. *     This package file illustrates a product with components.      *
  11. *********************************************************************
  12.  
  13. * Define the service level.
  14. SERVICELEVEL
  15.    * Set the service level to a value that indicates
  16.    * this is the first release.
  17.    LEVEL = '0000000'
  18.  
  19. * Define which diskette contains the files to be installed.
  20. DISK
  21.    * Define a user-friendly name for the diskette.
  22.    * Software Installer prompts the user for this name.
  23.    NAME = 'Software Installer - Diskette 1',
  24.    * The files are on a diskette whose label is INSTALL1.
  25.    VOLUME = 'INSTALL1'
  26.  
  27. * Define the default directories and labels to appear in the
  28. * Install - Directories window.
  29. * Software Installer prompts the user for seven directories.
  30. PATH
  31.    FILE = 'C:/SUPERMKT/INVNTRY/EXE',
  32.    FILELABEL = 'Executable directory: ',
  33.    WORK = 'C:/SUPERMKT/INVNTRY/DLL',
  34.    WORKLABEL = 'DLL directory: ',
  35.    AUX1 = 'C:/SUPERMKT/INVNTRY/DOC',
  36.    AUX1LABEL = 'Documentation directory: ',
  37.    AUX2 = 'C:/SUPERMKT/INVNTRY/DATA/PROMO',
  38.    AUX2LABEL = 'Promotional data: ',
  39.    AUX3 = 'C:/SUPERMKT/INVNTRY/DATA/PERISH',
  40.    AUX3LABEL = 'Perishables data: ',
  41.    AUX4 = 'C:/SUPERMKT/INVNTRY/DATA/NOPERISH',
  42.    AUX4LABEL = 'Non-perishables data: ',
  43.    AUX5 = 'C:/SUPERMKT/INVNTRY/DATA/NONFOOD',
  44.    AUX5LABEL = 'Non-food data: '
  45.  
  46. ************************************************************
  47. *               C O M P O N E N T     O N E                *
  48. * -------------------------------------------------------- *
  49. *                   Inventory Accounting                   *
  50. *                                                          *
  51. * This component is required by the other components       *
  52. * and is installed when one of the others is installed.    *
  53. ************************************************************
  54. *
  55. * Define the 'Inventory Accounting' component.
  56. * All files after this COMPONENT entry but before the next
  57. * COMPONENT entry are part of 'Inventory Accounting'.
  58. COMPONENT
  59.    * Define the name of this component as you want it to
  60.    * appear in the components list.
  61.    NAME = 'Inventory Accounting',
  62.    * Define an ID for this component.
  63.    ID = 'INVACCT',
  64.    * Do not display this component in the components list.
  65.    DISPLAY = 'NO',
  66.    * Define the amount of space on the workstation required
  67.    * to install this component.
  68.    * This component does not have a DESCRIPTION because
  69.    * it is not displayed.
  70.    SIZE = '500000'
  71.  
  72. * Define a FILE entry for each file of this component
  73. * to be transferred.
  74. FILE
  75.    * Install this file when the file on the workstation is old
  76.    * or the file does not exist on the workstation.
  77.    WHEN = 'OUTOFDATE',
  78.    * Set the date of the file to January 28, 1992.
  79.    DATE = '920128',
  80.    * Set the time of the file to 08:30am.
  81.    TIME = '0830',
  82.    * Install this file in the WORK directory.
  83.    PWSPATH = 'WORK',
  84.    * Because the file was packed using EPFIPACK,
  85.    * unpack it using EPFIUPCK.
  86.    UNPACK = 'YES',
  87.    * Define the possible locations of the packed file.
  88.    SOURCE = 'MVS: FILES(INVACDLL);
  89.              VM: INVACDLL DLLBIN *;
  90.              VSE: INVACDLL.DLLBIN;
  91.              DRIVE: INVACDLL.DL_',
  92.    * Define which diskette the file exists on.
  93.    VOLUME = 'INSTALL1',
  94.    * Define the name given to this file on the workstation.
  95.    PWS = 'INVENTAC.DLL',
  96.    * Run the exit when this file is installed.
  97.    EXITWHEN = 'INSTALL',
  98.    * Ignore all errors from the exit.
  99.    EXITIGNOREERR = 'YES',
  100.    * Add the WORK directory to the LIBPATH environment variable.
  101.    EXIT = 'UPDATECONFIG LIBPATH=%EPFIWORKDIR%;'
  102.  
  103.  
  104. ************************************************************
  105. *               C O M P O N E N T     T W O                *
  106. * -------------------------------------------------------- *
  107. *              Promotional Inventory Control               *
  108. *                                                          *
  109. ************************************************************
  110. COMPONENT
  111.    NAME = 'Promotional Inventory Control',
  112.    ID = 'PROMO',
  113.    * Display this component in the components list.
  114.    DISPLAY = 'YES',
  115.    * When this component is installed, also install the
  116.    * 'Inventory Accounting' component defined above.
  117.    REQUIRES = 'INVACCT',
  118.    SIZE = '500000',
  119.    * Define a description for this component.
  120.    DESCRIPTION = 'Promotional Inventory Control manages the
  121.    items in a store that are promotional or seasonal.'
  122.  
  123. * Define a FILE entry for the EXE and DOC files of the
  124. * Promotional Inventory Control component.
  125.  
  126. FILE
  127.    WHEN = 'OUTOFDATE',
  128.    PWSPATH = 'FILE',
  129.    UNPACK = 'YES',
  130.    SOURCE = 'MVS: FILES(PROMOEXE);
  131.              VM: PROMOEXE EXEBIN *;
  132.              VSE: PROMOEXE.EXEBIN;
  133.              DRIVE: PROMOEXE.EX_',
  134.    VOLUME = 'INSTALL1',
  135.    PWS = 'PROMO.EXE',
  136.    DATE = '920128',
  137.    TIME = '0830',
  138.    EXITWHEN = 'INSTALL',
  139.    EXITIGNOREERR = 'YES',
  140.    EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;'
  141.  
  142. FILE
  143.    WHEN = 'OUTOFDATE',
  144.    PWSPATH = 'AUX1',
  145.    UNPACK = 'YES',
  146.    SOURCE = 'MVS: FILES(PROMODOC);
  147.              VM: PROMODOC DOCBIN *;
  148.              VSE: PROMODOC.DOCBIN;
  149.              DRIVE: PROMODOC.DO_',
  150.    VOLUME = 'INSTALL1',
  151.    PWS = 'PROMO.DOC',
  152.    DATE = '920128',
  153.    TIME = '0830'
  154.  
  155. * In the following FILE entry, no files are transferred.
  156. * Only an exit is run.  The exit adds the environment variable
  157. * SUPERMKT_PROMO_DATA to the user's CONFIG.SYS file with a
  158. * value of the AUX2 directory.
  159. FILE
  160.    * Call the exit when the user is performing an
  161.    * install or an update.
  162.    EXITWHEN = 'INSTALL || UPDATE',
  163.    EXITIGNOREERR = 'YES',
  164.    * This exit defines an environment variable in
  165.    * the user's CONFIG.SYS file.
  166.    EXIT = 'ADDCONFIG SET SUPERMKT_PROMO_DATA=%EPFIAUX2DIR%'
  167.  
  168. * In the following FILE entry, no files are transferred.
  169. * The ADDPROG exit registers 'Promotional Inventory Control' to
  170. * the 'SuperMarket Systems' folder.  The folder uses the system
  171. * provided folder icon.
  172. FILE
  173.    EXITWHEN = 'INSTALL',
  174.    EXITIGNOREERR = 'NO',
  175.    EXIT = 'ADDPROG PM "SuperMarket Systems" "Promotional Inventory Control" %EPFIFILEDIR%//PROMO.EXE (MB_CANCEL "Promotional Inventory Control" "Sample program"'
  176.  
  177. * In the following FILE entry, no files are transferred.
  178. * DELETEPROG deletes 'Promotional Inventory Control' from the
  179. * 'SuperMarket Systems' folder.  The folder is deleted
  180. * when the last item in the folder is deleted.
  181. FILE
  182.    EXITWHEN = 'DELETE',
  183.    EXITIGNOREERR = 'YES',
  184.    EXIT = 'DELETEPROG "SuperMarket Systems" "Promotional Inventory Control"'
  185.  
  186.  
  187. ************************************************************
  188. *            C O M P O N E N T     T H R E E               *
  189. * -------------------------------------------------------- *
  190. *            Perishable Food Inventory Control             *
  191. ************************************************************
  192. COMPONENT
  193.    NAME = 'Perishable Food Inventory Control',
  194.    ID = 'PERISH',
  195.    DISPLAY = 'YES',
  196.    REQUIRES = 'INVACCT',
  197.    SIZE = '500000',
  198.    DESCRIPTION = 'Perishable Food Inventory Control manages
  199.    the items in a store that are perishable, such as fresh
  200.    produce, meats, and dairy products.'
  201.  
  202. * The following is an example of multiple files in a
  203. * single packed file.
  204. * Two files, PERISH.EXE and PERISH.DOC are contained
  205. * in the packed file.
  206. * The PACKFILE keyword causes the file to be packed,
  207. * and the individual file entries indicate that they
  208. * are found within the packed file named in the
  209. * PACKID keyword.  If the file was packed using your
  210. * own utility, unpack it by using the name of your
  211. * unpacking utility in the UNPACK keyword.  For example,
  212. * UNPACK='PKUNZIP %EPFICURUPS% %EPFICURUPDIR% ' would
  213. * cause the PKUNZIP utility to be used.
  214.  
  215. PACKFILE
  216.    SOURCE = 'MVS: FILES(PERSHPAK);
  217.              VM: PERSHPAK PAKBIN *;
  218.              VSE: PERSHPAK.PAKBIN;
  219.              DRIVE: PERSHPAK.PA_',
  220.    VOLUME = 'INSTALL1',
  221.    ID = 'PERSH'
  222.  
  223. * FILE entry for the EXE file of the Perishable Food Inventory Control
  224. FILE
  225.    WHEN = 'OUTOFDATE',
  226.    PACKID = 'PERSH',
  227.    PWSPATH = 'FILE',
  228.    PWS = 'PERISH.EXE',
  229.    DATE = '920128',
  230.    TIME = '0830',
  231.    EXITWHEN = 'INSTALL',
  232.    EXITIGNOREERR = 'YES',
  233.    EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;'
  234.  
  235. * FILE entry for the DOC file of the Perishable Food Inventory Control
  236. FILE
  237.    WHEN = 'OUTOFDATE',
  238.    PACKID = 'PERSH',
  239.    VOLUME = 'INSTALL1',
  240.    PWSPATH = 'AUX1',
  241.    PWS = 'PERISH.DOC',
  242.    DATE = '920128',
  243.    TIME = '0830'
  244.  
  245. FILE
  246.    EXITWHEN = 'INSTALL || UPDATE',
  247.    EXITIGNOREERR = 'YES',
  248.    EXIT = 'ADDCONFIG SET SUPERMKT_PERISH_DATA=%EPFIAUX3DIR%'
  249.  
  250. FILE
  251.    EXITWHEN = 'INSTALL || UPDATE',
  252.    EXITIGNOREERR = 'NO',
  253.    EXIT = 'ADDPROG PM "SuperMarket Systems" "Perishable Food Inventory Control" %EPFIFILEDIR%//PERISH.EXE (MB_CANCEL "Perishable Food Inventory Control" "Sample program"'
  254.  
  255. FILE
  256.    EXITWHEN = 'DELETE',
  257.    EXITIGNOREERR = 'YES',
  258.    EXIT = 'DELETEPROG "SuperMarket Systems" "Perishable Food Inventory Control"'
  259.  
  260. ************************************************************
  261. *            C O M P O N E N T     F O U R                 *
  262. * -------------------------------------------------------- *
  263. *          Non-Perishable Food Inventory Control           *
  264. ************************************************************
  265. COMPONENT
  266.    NAME = 'Non-Perishable Food Inventory Control',
  267.    ID = 'NPER',
  268.    DISPLAY = 'YES',
  269.    REQUIRES = 'INVACCT',
  270.    SIZE = '500000',
  271.    DESCRIPTION = 'Non-Perishable Food Inventory Control manages the items in a store that have a long shelf life, such as cereals, canned goods, and dried foods.'
  272.  
  273. FILE
  274.    WHEN = 'OUTOFDATE',
  275.    PWSPATH = 'FILE',
  276.    UNPACK = 'YES',
  277.    SOURCE = 'MVS: FILES(NPRSHEXE);
  278.              VM: NPRSHEXE EXEBIN *;
  279.              VSE: NPRSHEXE.EXEBIN;
  280.              DRIVE: NPRSHEXE.EX_',
  281.    VOLUME = 'INSTALL1',
  282.    PWS = 'NPERISH.EXE',
  283.    DATE = '920128',
  284.    TIME = '0830',
  285.    EXITWHEN = 'INSTALL',
  286.    EXITIGNOREERR = 'YES',
  287.    EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;'
  288.  
  289. FILE
  290.    WHEN = 'OUTOFDATE',
  291.    PWSPATH = 'AUX1',
  292.    UNPACK = 'YES',
  293.    SOURCE = 'MVS: FILES(NPRSHDOC);
  294.              VM: NPRSHDOC DOCBIN *;
  295.              VSE: NPRSHDOC.DOCBIN;
  296.              DRIVE: NPRSHDOC.DO_',
  297.    VOLUME = 'INSTALL1',
  298.    PWS = 'NPERISH.DOC',
  299.    DATE = '920128',
  300.    TIME = '0830'
  301.  
  302. FILE
  303.    EXITWHEN = 'INSTALL || UPDATE',
  304.    EXITIGNOREERR = 'YES',
  305.    EXIT = 'ADDCONFIG SET SUPERMKT_NOPERISH_DATA=%EPFIAUX4DIR%'
  306.  
  307. FILE
  308.    EXITWHEN = 'INSTALL || UPDATE',
  309.    EXITIGNOREERR = 'NO',
  310.    EXIT = 'ADDPROG PM "SuperMarket Systems" "Non-Perishable Food Inventory Control" %EPFIFILEDIR%//NPERISH.EXE (MB_CANCEL "Non-Perishable Food Inventory Control" "Sample program"'
  311.  
  312. FILE
  313.    EXITWHEN = 'DELETE',
  314.    EXITIGNOREERR = 'YES',
  315.    EXIT = 'DELETEPROG "SuperMarket Systems" "Non-Perishable Food Inventory Control"'
  316.  
  317.  
  318. ************************************************************
  319. *            C O M P O N E N T     F I V E                 *
  320. * -------------------------------------------------------- *
  321. *             Non-Food Inventory Control                   *
  322. ************************************************************
  323. COMPONENT
  324.    NAME = 'Non-Food Inventory Control',
  325.    ID = 'NONFOOD',
  326.    DISPLAY = 'YES',
  327.    REQUIRES = 'INVACCT',
  328.    SIZE = '500000',
  329.    DESCRIPTION = 'Non-Food Inventory Control manages the non-food items in a store, such as paper products, magazines, and pet supplies.'
  330.  
  331. FILE
  332.    WHEN = 'OUTOFDATE',
  333.    PWSPATH = 'FILE',
  334.    UNPACK = 'YES',
  335.    SOURCE = 'MVS: FILES(NFOODEXE);
  336.              VM: NFOODEXE EXEBIN *;
  337.              VSE: NFOODEXE.EXEBIN;
  338.              DRIVE: NFOODEXE.EX_',
  339.    VOLUME = 'INSTALL1',
  340.    PWS = 'NONFOOD.EXE',
  341.    DATE = '920128',
  342.    TIME = '0830',
  343.    EXITWHEN = 'INSTALL',
  344.    EXITIGNOREERR = 'YES',
  345.    EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;'
  346.  
  347. FILE
  348.    WHEN = 'OUTOFDATE',
  349.    PWSPATH = 'AUX1',
  350.    UNPACK = 'YES',
  351.    SOURCE = 'MVS: FILES(NFOODDOC);
  352.              VM: NFOODDOC DOCBIN *;
  353.              VSE: NFOODDOC.DOCBIN;
  354.              DRIVE: NFOODDOC.DO_',
  355.    VOLUME = 'INSTALL1',
  356.    PWS = 'NONFOOD.DOC',
  357.    DATE = '920128',
  358.    TIME = '0830'
  359.  
  360. FILE
  361.    EXITWHEN = 'INSTALL || UPDATE',
  362.    EXITIGNOREERR = 'YES',
  363.    EXIT = 'ADDCONFIG SET SUPERMKT_NONFOOD_DATA=%EPFIAUX5DIR%'
  364.  
  365. FILE
  366.    EXITWHEN = 'INSTALL || UPDATE',
  367.    EXITIGNOREERR = 'NO',
  368.    EXIT = 'ADDPROG PM "SuperMarket Systems" "Non-Food Inventory Control" %EPFIFILEDIR%//NONFOOD.EXE (MB_CANCEL "Non-Food Inventory Control" "Sample program"'
  369.  
  370. FILE
  371.    EXITWHEN = 'DELETE',
  372.    EXITIGNOREERR = 'YES',
  373.    EXIT = 'DELETEPROG "SuperMarket Systems" "Non-Food Inventory Control"'
  374.  
  375. * End of package file for product with five components
  376.