home *** CD-ROM | disk | FTP | other *** search
OS/2 install Package | 1998-12-28 | 11.3 KB | 316 lines |
- **********************************************************************
- * See the Software Installer Reference for information on creating a
- * package file.
- **********************************************************************
-
-
- *---------------------------------------------------------------------
- * Service level
- *---------------------------------------------------------------------
- SERVICELEVEL
- LEVEL = '000000'
-
-
- **********************************************************************
-
-
- *---------------------------------------------------------------------
- * Include 1 DISK entry for each diskette needed.
- *
- * The following changes are required:
- * - Change "<Product Name>" in the each NAME keyword to your product
- * name.
- * - Set each VOLUME keyword to a unique value.
- *---------------------------------------------------------------------
- DISK
- NAME = 'DrawIt - Diskette 1',
- VOLUME = ''
-
- **********************************************************************
-
-
- *---------------------------------------------------------------------
- * Default directories
- *---------------------------------------------------------------------
- PATH
- FILE = 'C:/DRAWIT',
- FILELABEL = 'Installation directory'
-
- FILE
- EXIT = 'SETVAR OS2PATH=%EPFIBOOTDRIVE%://OS2'
-
- **********************************************************************
-
-
- *---------------------------------------------------------------------
- * Exit to define your product folder's object ID.
- *
- * The following changes are required:
- * - Set variable FOLDERID to your folder's object ID; be sure to make
- * the value sufficiently unique; do not use "PRODFLDR".
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'ALWAYS',
- EXIT = 'SETVAR FOLDERID=THISFLDR'
-
- **********************************************************************
-
-
- *---------------------------------------------------------------------
- * This component creates a folder on the desktop. You must create
- * the folder in a hidden component to ensure that deleting your
- * product does not delete the folder before the objects within the
- * folder are deleted.
- *---------------------------------------------------------------------
- COMPONENT
- NAME = 'INSFIRST',
- ID = 'INSFIRST',
- DISPLAY = 'NO',
- SIZE = '1000'
-
- *---------------------------------------------------------------------
- * Include a FILE entry to install the catalog file.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of your catalog
- * file.
- *---------------------------------------------------------------------
- FILE
- * VOLUME = 'DRAWIT',
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'NO',
- SOURCE = 'DRIVE: DRW.ICF',
- PWS = 'DRW.ICF',
- DATE = '970101',
- TIME = '1200',
- SIZE = '561699'
-
- *---------------------------------------------------------------------
- * Set variable CATALOG to be the name of the catalog file;
- * the variable is used in EPFISINC.PKG.
- *
- * The following changes are required:
- * - Change "CATALOG.ICF" in the EXIT keyword to the name of your
- * catalog file.
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'INSTALL || UPDATE || RESTORE',
- EXITIGNOREERR = 'NO',
- EXIT = 'SETVAR CATALOG=DRW.ICF'
-
- *---------------------------------------------------------------------
- * Include a FILE entry to install the description file.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of your
- * description file.
- *---------------------------------------------------------------------
- FILE
- * VOLUME = 'DRAWIT',
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'NO',
- SOURCE = 'DRIVE: DRW.DSC',
- PWS = 'DRW.DSC',
- DATE = '970101',
- TIME = '1200',
- SIZE = '1000'
- *---------------------------------------------------------------------
- * Create your product's folder on the desktop.
- *
- * The following changes are required:
- * - Change "<Product Name>" in the EXIT keyword to your product name.
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'INSTALL || UPDATE',
- EXITIGNOREERR = 'NO',
- EXIT = 'CREATEWPSOBJECT WPFolder "DrawIt 2.9"
- <WP_DESKTOP> R "OBJECTID=<%FOLDERID%>"'
- *---------------------------------------------------------------------
- * The included package file will install and register the
- * Installation Utility. You do not need to make any changes to
- * EPFISINC.PKG.
- *---------------------------------------------------------------------
- **INCLUDE
- ** NAME = 'DRIVE: EPFISINC.PKG'
- **********************************************************************
-
- *---------------------------------------------------------------------
- * Include 1 COMPONENT entry for each component.
- *
- * The following changes are required:
- * - Change "Component 1" in the NAME keyword to the name of the
- * component.
- * - Describe the component in the DESCRIPTION keyword.
- *
- * The component must require at least the INSFIRST and DELLAST
- * components.
- *---------------------------------------------------------------------
- COMPONENT
- NAME = 'Drawing package',
- ID = 'DRAWIT',
- REQUIRES = 'INSFIRST DELLAST',
- DISPLAY = 'YES',
- DESCRIPTION = 'The complete drawing program',
- SIZE = '1062699'
-
- *---------------------------------------------------------------------
- * Another FILE entry.
- *
- *---------------------------------------------------------------------
- FILE
- * VOLUME = 'DRAWIT',
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'YES',
- SOURCE = 'DRIVE: DRAWIT.IC_',
- PWS = 'DRAWIT.ICO',
- DATE = '970101',
- TIME = '1200',
- SIZE = '26324'
- *---------------------------------------------------------------------
- * Include 1 FILE entry for each file in the component.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of the file to
- * install.
- *---------------------------------------------------------------------
- FILE
- * VOLUME = 'DRAWIT',
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'YES',
- SOURCE = 'DRIVE: DRAWIT.EX_',
- PWS = 'DRAWIT.EXE',
- DATE = '970101',
- TIME = '1200',
- SIZE = '561966'
-
- *---------------------------------------------------------------------
- * Create a program object in the product folder.
- *
- * The following changes are required:
- * - Change "COMP1A" in the EXIT keyword to the name of the object.
- * - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
- * name of the program to run.
- * - Change "[]" in the EXIT keyword after PARAMETERS to any
- * parameters required to run the object; if no parameters are
- * required, delete "PARAMETERS=[];" from the EXIT keyword.
- * - Change "COMP1A" in the EXIT keyword after OBJECTID to the
- * program's object ID; be sure to make the value sufficiently
- * unique; the value must be enclosed in "<>" characters; do not use
- * "COMP1A" or the value of the FOLDERID variable.
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'INSTALL || UPDATE || RESTORE',
- EXITIGNOREERR = 'NO',
- EXIT = 'CREATEWPSOBJECT WPProgram "DRAWIT"
- <%FOLDERID%> R
- "EXENAME=%EPFIFILEDIR%\DRAWIT.EXE;STARTUPDIR=%EPFIFILEDIR%;OBJECTID=<DRAWIT>;ICON=%EPFIFILEDIR%\DRAWIT.ICO"'
- *---------------------------------------------------------------------
- * Another FILE entry.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of the file to
- * install.
- *---------------------------------------------------------------------
- FILE
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'YES',
- SOURCE = 'DRIVE: DRWFONT.DL_',
- PWS = '%OS2PATH%/DLL/DRWFONT.DLL',
- DATE = '970101',
- TIME = '1200',
- SIZE = '350000'
-
- FILE
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'YES',
- SOURCE = 'DRIVE: DRWPAL.DL_',
- PWS = '%OS2PATH%/DLL/DRWPAL.DLL',
- DATE = '970101',
- TIME = '1200',
- SIZE = '350000'
-
-
- *---------------------------------------------------------------------
- * Delete the program object.
- *
- * The following changes are required:
- * - Change "COMP1A" in the EXIT keyword to the program's object ID;
- * be sure to use the object ID that you gave the object when it was
- * created in the previous FILE entry; the value must be enclosed in
- * "<>" characters.
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'DELETE',
- EXITIGNOREERR = 'YES',
- EXIT = 'DEREGISTERWPSCLASS drwfont'
-
- FILE
- EXITWHEN = 'DELETE',
- EXITIGNOREERR = 'YES',
- EXIT = 'DEREGISTERWPSCLASS dwclrpal'
-
- FILE
- EXITWHEN = 'DELETE',
- EXITIGNOREERR = 'YES',
- EXIT = 'DELETEWPSOBJECT <%FOLDERID%>'
- *---------------------------------------------------------------------
- * Another FILE entry.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of the file to
- * install.
- *---------------------------------------------------------------------
- FILE
- * VOLUME = 'DRAWIT',
- WHEN = 'OUTOFDATE',
- REPLACEINUSE = 'I U D R',
- UNPACK = 'YES',
- SOURCE = 'DRIVE: DRAWIT.HL_',
- PWS = 'DRAWIT.HLP',
- DATE = '970101',
- TIME = '1200',
- SIZE = '98450'
-
-
- *---------------------------------------------------------------------
- * Another FILE entry.
- *
- * The following changes are required:
- * - Change the SOURCE and PWS keywords to the name of the file to
- * install.
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'EXIST',
- EXITIGNOREERR = 'YES',
- EXIT = 'REGISTERWPSCLASS drwfont %OS2PATH%//DLL//DRWFONT.DLL'
-
- FILE
- EXITWHEN = 'INSTALL || UPDATE || RESTORE',
- EXITIGNOREERR = 'NO',
- EXIT = 'CREATEWPSOBJECT drwfont "FontPalette" <%FOLDERID%> R "OBJECTID=<DRWFONT>"'
- *---------------------------------------------------------------------
- FILE
- EXITWHEN = 'EXIST',
- EXITIGNOREERR = 'YES',
- EXIT = 'REGISTERWPSCLASS dwclrpal %OS2PATH%//DLL//DRWPAL.DLL'
-
- FILE
- EXITWHEN = 'INSTALL || UPDATE || RESTORE',
- EXITIGNOREERR = 'NO',
- EXIT = 'CREATEWPSOBJECT dwclrpal "ColorPalette" <%FOLDERID%> R "OBJECTID=<DRWCOLOR>"'
- *---------------------------------------------------------------------
- * Update libpath in config.sys.
- *---------------------------------------------------------------------
- *UPDATECONFIG
- * ADDWHEN = 'INSTALL || UPDATE || RESTORE',
- * DELETEWHEN = DELETE,
- * LINELOCATION = BEGIN,
- * VAR = LIBPATH,
- * ADDSTR = '%EPFIFILEDIR%;'