home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / npru209.zip / NPRU.PKG < prev    next >
Text File  |  2000-05-15  |  6KB  |  167 lines

  1. **********************************************************************
  2. *  See the Software Installer Reference for information on creating a
  3. *  package file.
  4. **********************************************************************
  5.  
  6. *---------------------------------------------------------------------
  7. *  Service level
  8. *---------------------------------------------------------------------
  9. SERVICELEVEL
  10.    LEVEL = '000000'
  11.  
  12. *---------------------------------------------------------------------
  13. *  Default directories
  14. *---------------------------------------------------------------------
  15. PATH
  16.    FILE = 'C:/NPRU',
  17.    FILELABEL = 'NPRU directory: ',
  18.    DESCRIPTION = 'Check with your administrator for the correct directory to specify for the NPRU program files:'
  19.  
  20. **********************************************************************
  21.  
  22. *---------------------------------------------------------------------
  23. *  Exit to define your product folder's object ID.
  24. *
  25. *  The following changes are required:
  26. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  27. *    the value sufficiently unique; do not use "PRODFLDR".
  28. *---------------------------------------------------------------------
  29. FILE
  30.    EXITWHEN = 'ALWAYS',
  31.    EXITIGNOREERR = 'NO',
  32.    EXIT = 'SETVAR FOLDERID=NPRU'
  33.  
  34. **********************************************************************
  35.  
  36. *---------------------------------------------------------------------
  37. *  This component creates a folder on the desktop.  You must create
  38. *  the folder in a hidden component to ensure that deleting your
  39. *  product does not delete the folder before the objects within the
  40. *  folder are deleted.
  41. *---------------------------------------------------------------------
  42. COMPONENT
  43.    NAME = 'INSFIRST',
  44.    ID = 'INSFIRST',
  45.    DISPLAY = 'NO',
  46.    SIZE = '10000',
  47.    SHARED = 'NO',
  48.    DELETE = 'YES'
  49.  
  50. *---------------------------------------------------------------------
  51. *  Include a FILE entry to install the catalog file.
  52. *---------------------------------------------------------------------
  53. FILE
  54.    WHEN = 'OUTOFDATE',
  55.    REPLACEINUSE = 'I U D R',
  56.    SOURCE = 'DRIVE:NPRU.ICF',
  57.    PWS = 'NPRU.ICF',
  58.    SIZE = '2149'
  59.  
  60. *---------------------------------------------------------------------
  61. *  Set variable CATALOG to be the name of the catalog file;
  62. *  the variable is used in EPFISINC.PKG.
  63. *
  64. *  The following changes are required:
  65. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  66. *    catalog file.
  67. *---------------------------------------------------------------------
  68. FILE
  69.    EXITWHEN = 'INSTALL || UPDATE || RESTORE',
  70.    EXITIGNOREERR = 'NO',
  71.    EXIT = 'SETVAR CATALOG=NPRU.ICF'
  72.  
  73. *---------------------------------------------------------------------
  74. *  Include a FILE entry to install the description file.
  75. *---------------------------------------------------------------------
  76. FILE
  77.    WHEN = 'OUTOFDATE',
  78.    REPLACEINUSE = 'I U D R',
  79.    SOURCE = 'DRIVE:NPRU.DSC',
  80.    PWS = 'NPRU.DSC',
  81.    SIZE = '1387'
  82.  
  83. *---------------------------------------------------------------------
  84. *  Create your product's folder on the desktop.
  85. *
  86. *  The following changes are required:
  87. *  - Change "PRODUCT" in the EXIT keyword to your product name.
  88. *---------------------------------------------------------------------
  89. *FILE
  90. *   EXITWHEN      = 'INSTALL || UPDATE',
  91. *   EXITIGNOREERR = 'NO',
  92. *   EXIT          = 'CREATEWPSOBJECT WPFolder "NPRU"
  93. *                   <WP_DESKTOP> R
  94. *                   "OBJECTID=<%FOLDERID%>;"'
  95. *---------------------------------------------------------------------
  96. *  The included package file will install and register the
  97. *  Installation Utility.  You do not need to make any changes to
  98. *  EPFISINC.PKG.
  99. *---------------------------------------------------------------------
  100. * INCLUDE
  101. *   NAME = 'DRIVE: EPFISINC.PKG'
  102. **********************************************************************
  103. *---------------------------------------------------------------------
  104. *  Another component.
  105. *---------------------------------------------------------------------
  106. *---------------------------------------------------------------------
  107. *  Include 1 COMPONENT entry for each component.
  108. *
  109. *  The following changes are required:
  110. *  - Change "Component 1" in the NAME keyword to the name of the
  111. *    component.
  112. *  - Describe the component in the DESCRIPTION keyword.
  113. *
  114. *  The component must require at least the INSFIRST and DELLAST
  115. *  components.
  116. *---------------------------------------------------------------------
  117. COMPONENT
  118.    NAME = 'IBM Network Printer Resource Utility',
  119.    ID = 'IBMNPRU',
  120.    REQUIRES = 'INSFIRST DELLAST',
  121.    DISPLAY = 'YES',
  122.    DESCRIPTION = 'The OS/2 IBM NPRU provides for administration of PCL and PostScript printing resources, such as fonts and overlays.  Please read the READ.ME file on the installation diskette before installing the IBM NPRU.',
  123.    SIZE = '340000',
  124.    SHARED = 'NO',
  125.    DELETE = 'YES'
  126.  
  127. *---------------------------------------------------------------------
  128. *  Include 1 FILE entry for each file in the component.
  129. *---------------------------------------------------------------------
  130. FILE
  131.    WHEN = 'OUTOFDATE',
  132.    REPLACEINUSE = 'I U D R',
  133.    UNPACK = 'YES',
  134.    SOURCE = 'DRIVE:HELP.PK_',
  135.    PWS = 'NPRU.HLP',
  136.    DATE = '960603',
  137.    TIME = '0935',
  138.    SIZE = '30517'
  139.  
  140. FILE
  141.    WHEN = 'OUTOFDATE',
  142.    REPLACEINUSE = 'I U D R',
  143.    UNPACK = 'YES',
  144.    SOURCE = 'DRIVE:NPRU.PK_',
  145.    PWS = 'NPRU.EXE',
  146.    DATE = '960603',
  147.    TIME = '0935',
  148.    SIZE = '274566'
  149.  
  150. *---------------------------------------------------------------------
  151. *  Create a program object in the product folder.
  152. *---------------------------------------------------------------------
  153. FILE
  154.    EXITWHEN = 'INSTALL || UPDATE || RESTORE',
  155.    EXITIGNOREERR = 'NO',
  156.    EXIT = 'CREATEWPSOBJECT WPProgram "NPRU" <WP_DESKTOP> R "PROGTYPE=PM;EXENAME=%EPFIFILEDIR%//NPRU.EXE;STARTUPDIR=%EPFIFILEDIR%;OBJECTID=<NPRU>;"'
  157.  
  158. *---------------------------------------------------------------------
  159. *  Delete the program object.
  160. *---------------------------------------------------------------------
  161. FILE
  162.    EXITWHEN = 'DELETE',
  163.    EXITIGNOREERR = 'YES',
  164.    EXIT = 'DELETEWPSOBJECT <NPRU>'
  165.  
  166. **********************************************************************
  167.