home *** CD-ROM | disk | FTP | other *** search
Wrap
OS/2 install Package | 1993-05-24 | 13.1 KB | 376 lines
********************************************************************* * SOFTWARE INSTALLER * * 5621-434 (C) COPYRIGHT IBM CORP. 1991, 1993. ALL RIGHTS RESERVED. * * LICENSED MATERIALS - PROPERTY OF IBM * * * * SuperMarket Systems Software * * * * Sample Software Installer package file * * * * This package file illustrates a product with components. * ********************************************************************* * Define the service level. SERVICELEVEL * Set the service level to a value that indicates * this is the first release. LEVEL = '0000000' * Define which diskette contains the files to be installed. DISK * Define a user-friendly name for the diskette. * Software Installer prompts the user for this name. NAME = 'Software Installer - Diskette 1', * The files are on a diskette whose label is INSTALL1. VOLUME = 'INSTALL1' * Define the default directories and labels to appear in the * Install - Directories window. * Software Installer prompts the user for seven directories. PATH FILE = 'C:/SUPERMKT/INVNTRY/EXE', FILELABEL = 'Executable directory: ', WORK = 'C:/SUPERMKT/INVNTRY/DLL', WORKLABEL = 'DLL directory: ', AUX1 = 'C:/SUPERMKT/INVNTRY/DOC', AUX1LABEL = 'Documentation directory: ', AUX2 = 'C:/SUPERMKT/INVNTRY/DATA/PROMO', AUX2LABEL = 'Promotional data: ', AUX3 = 'C:/SUPERMKT/INVNTRY/DATA/PERISH', AUX3LABEL = 'Perishables data: ', AUX4 = 'C:/SUPERMKT/INVNTRY/DATA/NOPERISH', AUX4LABEL = 'Non-perishables data: ', AUX5 = 'C:/SUPERMKT/INVNTRY/DATA/NONFOOD', AUX5LABEL = 'Non-food data: ' ************************************************************ * C O M P O N E N T O N E * * -------------------------------------------------------- * * Inventory Accounting * * * * This component is required by the other components * * and is installed when one of the others is installed. * ************************************************************ * * Define the 'Inventory Accounting' component. * All files after this COMPONENT entry but before the next * COMPONENT entry are part of 'Inventory Accounting'. COMPONENT * Define the name of this component as you want it to * appear in the components list. NAME = 'Inventory Accounting', * Define an ID for this component. ID = 'INVACCT', * Do not display this component in the components list. DISPLAY = 'NO', * Define the amount of space on the workstation required * to install this component. * This component does not have a DESCRIPTION because * it is not displayed. SIZE = '500000' * Define a FILE entry for each file of this component * to be transferred. FILE * Install this file when the file on the workstation is old * or the file does not exist on the workstation. WHEN = 'OUTOFDATE', * Set the date of the file to January 28, 1992. DATE = '920128', * Set the time of the file to 08:30am. TIME = '0830', * Install this file in the WORK directory. PWSPATH = 'WORK', * Because the file was packed using EPFIPACK, * unpack it using EPFIUPCK. UNPACK = 'YES', * Define the possible locations of the packed file. SOURCE = 'MVS: FILES(INVACDLL); VM: INVACDLL DLLBIN *; VSE: INVACDLL.DLLBIN; DRIVE: INVACDLL.DL_', * Define which diskette the file exists on. VOLUME = 'INSTALL1', * Define the name given to this file on the workstation. PWS = 'INVENTAC.DLL', * Run the exit when this file is installed. EXITWHEN = 'INSTALL', * Ignore all errors from the exit. EXITIGNOREERR = 'YES', * Add the WORK directory to the LIBPATH environment variable. EXIT = 'UPDATECONFIG LIBPATH=%EPFIWORKDIR%;' ************************************************************ * C O M P O N E N T T W O * * -------------------------------------------------------- * * Promotional Inventory Control * * * ************************************************************ COMPONENT NAME = 'Promotional Inventory Control', ID = 'PROMO', * Display this component in the components list. DISPLAY = 'YES', * When this component is installed, also install the * 'Inventory Accounting' component defined above. REQUIRES = 'INVACCT', SIZE = '500000', * Define a description for this component. DESCRIPTION = 'Promotional Inventory Control manages the items in a store that are promotional or seasonal.' * Define a FILE entry for the EXE and DOC files of the * Promotional Inventory Control component. FILE WHEN = 'OUTOFDATE', PWSPATH = 'FILE', UNPACK = 'YES', SOURCE = 'MVS: FILES(PROMOEXE); VM: PROMOEXE EXEBIN *; VSE: PROMOEXE.EXEBIN; DRIVE: PROMOEXE.EX_', VOLUME = 'INSTALL1', PWS = 'PROMO.EXE', DATE = '920128', TIME = '0830', EXITWHEN = 'INSTALL', EXITIGNOREERR = 'YES', EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;' FILE WHEN = 'OUTOFDATE', PWSPATH = 'AUX1', UNPACK = 'YES', SOURCE = 'MVS: FILES(PROMODOC); VM: PROMODOC DOCBIN *; VSE: PROMODOC.DOCBIN; DRIVE: PROMODOC.DO_', VOLUME = 'INSTALL1', PWS = 'PROMO.DOC', DATE = '920128', TIME = '0830' * In the following FILE entry, no files are transferred. * Only an exit is run. The exit adds the environment variable * SUPERMKT_PROMO_DATA to the user's CONFIG.SYS file with a * value of the AUX2 directory. FILE * Call the exit when the user is performing an * install or an update. EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'YES', * This exit defines an environment variable in * the user's CONFIG.SYS file. EXIT = 'ADDCONFIG SET SUPERMKT_PROMO_DATA=%EPFIAUX2DIR%' * In the following FILE entry, no files are transferred. * The ADDPROG exit registers 'Promotional Inventory Control' to * the 'SuperMarket Systems' folder. The folder uses the system * provided folder icon. FILE EXITWHEN = 'INSTALL', EXITIGNOREERR = 'NO', EXIT = 'ADDPROG PM "SuperMarket Systems" "Promotional Inventory Control" %EPFIFILEDIR%//PROMO.EXE (MB_CANCEL "Promotional Inventory Control" "Sample program"' * In the following FILE entry, no files are transferred. * DELETEPROG deletes 'Promotional Inventory Control' from the * 'SuperMarket Systems' folder. The folder is deleted * when the last item in the folder is deleted. FILE EXITWHEN = 'DELETE', EXITIGNOREERR = 'YES', EXIT = 'DELETEPROG "SuperMarket Systems" "Promotional Inventory Control"' ************************************************************ * C O M P O N E N T T H R E E * * -------------------------------------------------------- * * Perishable Food Inventory Control * ************************************************************ COMPONENT NAME = 'Perishable Food Inventory Control', ID = 'PERISH', DISPLAY = 'YES', REQUIRES = 'INVACCT', SIZE = '500000', DESCRIPTION = 'Perishable Food Inventory Control manages the items in a store that are perishable, such as fresh produce, meats, and dairy products.' * The following is an example of multiple files in a * single packed file. * Two files, PERISH.EXE and PERISH.DOC are contained * in the packed file. * The PACKFILE keyword causes the file to be packed, * and the individual file entries indicate that they * are found within the packed file named in the * PACKID keyword. If the file was packed using your * own utility, unpack it by using the name of your * unpacking utility in the UNPACK keyword. For example, * UNPACK='PKUNZIP %EPFICURUPS% %EPFICURUPDIR% ' would * cause the PKUNZIP utility to be used. PACKFILE SOURCE = 'MVS: FILES(PERSHPAK); VM: PERSHPAK PAKBIN *; VSE: PERSHPAK.PAKBIN; DRIVE: PERSHPAK.PA_', VOLUME = 'INSTALL1', ID = 'PERSH' * FILE entry for the EXE file of the Perishable Food Inventory Control FILE WHEN = 'OUTOFDATE', PACKID = 'PERSH', PWSPATH = 'FILE', PWS = 'PERISH.EXE', DATE = '920128', TIME = '0830', EXITWHEN = 'INSTALL', EXITIGNOREERR = 'YES', EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;' * FILE entry for the DOC file of the Perishable Food Inventory Control FILE WHEN = 'OUTOFDATE', PACKID = 'PERSH', VOLUME = 'INSTALL1', PWSPATH = 'AUX1', PWS = 'PERISH.DOC', DATE = '920128', TIME = '0830' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'YES', EXIT = 'ADDCONFIG SET SUPERMKT_PERISH_DATA=%EPFIAUX3DIR%' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'NO', EXIT = 'ADDPROG PM "SuperMarket Systems" "Perishable Food Inventory Control" %EPFIFILEDIR%//PERISH.EXE (MB_CANCEL "Perishable Food Inventory Control" "Sample program"' FILE EXITWHEN = 'DELETE', EXITIGNOREERR = 'YES', EXIT = 'DELETEPROG "SuperMarket Systems" "Perishable Food Inventory Control"' ************************************************************ * C O M P O N E N T F O U R * * -------------------------------------------------------- * * Non-Perishable Food Inventory Control * ************************************************************ COMPONENT NAME = 'Non-Perishable Food Inventory Control', ID = 'NPER', DISPLAY = 'YES', REQUIRES = 'INVACCT', SIZE = '500000', 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.' FILE WHEN = 'OUTOFDATE', PWSPATH = 'FILE', UNPACK = 'YES', SOURCE = 'MVS: FILES(NPRSHEXE); VM: NPRSHEXE EXEBIN *; VSE: NPRSHEXE.EXEBIN; DRIVE: NPRSHEXE.EX_', VOLUME = 'INSTALL1', PWS = 'NPERISH.EXE', DATE = '920128', TIME = '0830', EXITWHEN = 'INSTALL', EXITIGNOREERR = 'YES', EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;' FILE WHEN = 'OUTOFDATE', PWSPATH = 'AUX1', UNPACK = 'YES', SOURCE = 'MVS: FILES(NPRSHDOC); VM: NPRSHDOC DOCBIN *; VSE: NPRSHDOC.DOCBIN; DRIVE: NPRSHDOC.DO_', VOLUME = 'INSTALL1', PWS = 'NPERISH.DOC', DATE = '920128', TIME = '0830' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'YES', EXIT = 'ADDCONFIG SET SUPERMKT_NOPERISH_DATA=%EPFIAUX4DIR%' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'NO', EXIT = 'ADDPROG PM "SuperMarket Systems" "Non-Perishable Food Inventory Control" %EPFIFILEDIR%//NPERISH.EXE (MB_CANCEL "Non-Perishable Food Inventory Control" "Sample program"' FILE EXITWHEN = 'DELETE', EXITIGNOREERR = 'YES', EXIT = 'DELETEPROG "SuperMarket Systems" "Non-Perishable Food Inventory Control"' ************************************************************ * C O M P O N E N T F I V E * * -------------------------------------------------------- * * Non-Food Inventory Control * ************************************************************ COMPONENT NAME = 'Non-Food Inventory Control', ID = 'NONFOOD', DISPLAY = 'YES', REQUIRES = 'INVACCT', SIZE = '500000', DESCRIPTION = 'Non-Food Inventory Control manages the non-food items in a store, such as paper products, magazines, and pet supplies.' FILE WHEN = 'OUTOFDATE', PWSPATH = 'FILE', UNPACK = 'YES', SOURCE = 'MVS: FILES(NFOODEXE); VM: NFOODEXE EXEBIN *; VSE: NFOODEXE.EXEBIN; DRIVE: NFOODEXE.EX_', VOLUME = 'INSTALL1', PWS = 'NONFOOD.EXE', DATE = '920128', TIME = '0830', EXITWHEN = 'INSTALL', EXITIGNOREERR = 'YES', EXIT = 'UPDATECONFIG SET PATH=%EPFIFILEDIR%;' FILE WHEN = 'OUTOFDATE', PWSPATH = 'AUX1', UNPACK = 'YES', SOURCE = 'MVS: FILES(NFOODDOC); VM: NFOODDOC DOCBIN *; VSE: NFOODDOC.DOCBIN; DRIVE: NFOODDOC.DO_', VOLUME = 'INSTALL1', PWS = 'NONFOOD.DOC', DATE = '920128', TIME = '0830' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'YES', EXIT = 'ADDCONFIG SET SUPERMKT_NONFOOD_DATA=%EPFIAUX5DIR%' FILE EXITWHEN = 'INSTALL || UPDATE', EXITIGNOREERR = 'NO', EXIT = 'ADDPROG PM "SuperMarket Systems" "Non-Food Inventory Control" %EPFIFILEDIR%//NONFOOD.EXE (MB_CANCEL "Non-Food Inventory Control" "Sample program"' FILE EXITWHEN = 'DELETE', EXITIGNOREERR = 'YES', EXIT = 'DELETEPROG "SuperMarket Systems" "Non-Food Inventory Control"' * End of package file for product with five components