home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / redb1d.zip / RED.PKG < prev    next >
Text File  |  1996-03-22  |  9KB  |  273 lines

  1. **********************************************************************
  2. *  See the Software Installer Reference for information on creating a
  3. *  package file.
  4. **********************************************************************
  5.  
  6.  
  7. *---------------------------------------------------------------------
  8. *  Service level
  9. *---------------------------------------------------------------------
  10. SERVICELEVEL
  11.    LEVEL = '000000'
  12.  
  13.  
  14. **********************************************************************
  15.  
  16.  
  17. *---------------------------------------------------------------------
  18. *  Include 1 DISK entry for each diskette needed.
  19. *
  20. *  The following changes are required:
  21. *  - Change "<Product Name>" in the each NAME keyword to your product
  22. *    name.
  23. *  - Set each VOLUME keyword to a unique value.
  24. *---------------------------------------------------------------------
  25. DISK
  26.    NAME   = 'RED - Diskette 1',
  27.    VOLUME = 'RED001'
  28.  
  29. **********************************************************************
  30.  
  31.  
  32. *---------------------------------------------------------------------
  33. *  Default directories
  34. *---------------------------------------------------------------------
  35. PATH
  36.    FILE      = 'C:/RED',
  37.    FILELABEL = 'Installation directory'
  38.  
  39.  
  40. **********************************************************************
  41.  
  42.  
  43. *---------------------------------------------------------------------
  44. *  Exit to define your product folder's object ID.
  45. *
  46. *  The following changes are required:
  47. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  48. *    the value sufficiently unique; do not use "PRODFLDR".
  49. *---------------------------------------------------------------------
  50. FILE
  51.    EXITWHEN = 'ALWAYS',
  52.    EXIT     = 'SETVAR FOLDERID=RED_FOLD'
  53.  
  54.  
  55. **********************************************************************
  56.  
  57.  
  58. *---------------------------------------------------------------------
  59. *  This component creates a folder on the desktop.  You must create
  60. *  the folder in a hidden component to ensure that deleting your
  61. *  product does not delete the folder before the objects within the
  62. *  folder are deleted.
  63. *---------------------------------------------------------------------
  64. COMPONENT
  65.    NAME    = 'INSFIRST',
  66.    ID      = 'INSFIRST',
  67.    DISPLAY = 'NO',
  68.    SIZE    = '1000'
  69.  
  70. *---------------------------------------------------------------------
  71. *  Include a FILE entry to install the catalog file.
  72. *
  73. *  The following changes are required:
  74. *  - Change the SOURCE and PWS keywords to the name of your catalog
  75. *    file.
  76. *---------------------------------------------------------------------
  77. FILE
  78.    VOLUME        = 'RED001',
  79.    WHEN          = 'OUTOFDATE',
  80.    REPLACEINUSE  = 'I U D R',
  81.    UNPACK        = 'NO',
  82.    SOURCE        = 'DRIVE: RED.ICF',
  83.    PWS           = 'RED.ICF',
  84.    DATE          = '960323',
  85.    TIME          = '0001',
  86.    SIZE          = '1000'
  87.  
  88. *---------------------------------------------------------------------
  89. *  Set variable CATALOG to be the name of the catalog file;
  90. *  the variable is used in EPFISINC.PKG.
  91. *
  92. *  The following changes are required:
  93. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  94. *    catalog file.
  95. *---------------------------------------------------------------------
  96. FILE
  97.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  98.    EXITIGNOREERR = 'NO',
  99.    EXIT          = 'SETVAR CATALOG=RED.ICF'
  100.  
  101. *---------------------------------------------------------------------
  102. *  Include a FILE entry to install the description file.
  103. *
  104. *  The following changes are required:
  105. *  - Change the SOURCE and PWS keywords to the name of your
  106. *    description file.
  107. *---------------------------------------------------------------------
  108. FILE
  109.    VOLUME        = 'PROD001',
  110.    WHEN          = 'OUTOFDATE',
  111.    REPLACEINUSE  = 'I U D R',
  112.    UNPACK        = 'NO',
  113.    SOURCE        = 'DRIVE: RED.DSC',
  114.    PWS           = 'RED.DSC',
  115.    DATE          = '960323',
  116.    TIME          = '0001',
  117.    SIZE          = '1000'
  118.  
  119. *---------------------------------------------------------------------
  120. *  Create your product's folder on the desktop.
  121. *
  122. *  The following changes are required:
  123. *  - Change "<Product Name>" in the EXIT keyword to your product name.
  124. *---------------------------------------------------------------------
  125. FILE
  126.    EXITWHEN      = 'INSTALL || UPDATE',
  127.    EXITIGNOREERR = 'NO',
  128.    EXIT          = 'CREATEWPSOBJECT WPFolder "RED"
  129.                    <WP_DESKTOP> R
  130.                    "OBJECTID=<%FOLDERID%>;"'
  131.  
  132. *---------------------------------------------------------------------
  133. *  The included package file will install and register the
  134. *  Installation Utility.  You do not need to make any changes to
  135. *  EPFISINC.PKG.
  136. *---------------------------------------------------------------------
  137. INCLUDE
  138.    NAME = 'DRIVE: EPFISINC.PKG'
  139.  
  140.  
  141. **********************************************************************
  142.  
  143.  
  144. *---------------------------------------------------------------------
  145. *  Include 1 COMPONENT entry for each component.
  146. *
  147. *  The following changes are required:
  148. *  - Change "Component 1" in the NAME keyword to the name of the
  149. *    component.
  150. *  - Describe the component in the DESCRIPTION keyword.
  151. *
  152. *  The component must require at least the INSFIRST and DELLAST
  153. *  components.
  154. *---------------------------------------------------------------------
  155. COMPONENT
  156.    NAME        = 'RED',
  157.    ID          = 'COMP1',
  158.    REQUIRES    = 'INSFIRST DELLAST',
  159.    DISPLAY     = 'YES',
  160.    DESCRIPTION = 'RED Version 1.0',
  161.    SIZE        = '10000'
  162.  
  163. *---------------------------------------------------------------------
  164. *  Include 1 FILE entry for each file in the component.
  165. *
  166. *  The following changes are required:
  167. *  - Change the SOURCE and PWS keywords to the name of the file to
  168. *    install.
  169. *---------------------------------------------------------------------
  170. FILE
  171.    VOLUME        = 'RED001',
  172.    WHEN          = 'OUTOFDATE',
  173.    REPLACEINUSE  = 'I U D R',
  174.    UNPACK        = 'YES',
  175.    SOURCE        = 'DRIVE: redb1.ex_',
  176.    PWS           = 'redb1.EXE',
  177.    DATE          = '960323',
  178.    TIME          = '1200',
  179.    SIZE          = '128000'
  180.  
  181. FILE
  182.    VOLUME        = 'RED001',
  183.    WHEN          = 'OUTOFDATE',
  184.    REPLACEINUSE  = 'I U D R',
  185.    UNPACK        = 'YES',
  186.    SOURCE        = 'DRIVE: License.do_',
  187.    PWS           = 'license.doc',
  188.    DATE          = '960323',
  189.    TIME          = '1200',
  190.    SIZE          = '4700'
  191.  
  192. FILE
  193.    VOLUME        = 'RED001',
  194.    WHEN          = 'OUTOFDATE',
  195.    REPLACEINUSE  = 'I U D R',
  196.    UNPACK        = 'YES',
  197.    SOURCE        = 'DRIVE: RED.HL_',
  198.    PWS           = 'RED.HLP',
  199.    DATE          = '960323',
  200.    TIME          = '1200',
  201.    SIZE          = '21000'
  202.  
  203. FILE
  204.    VOLUME        = 'RED001',
  205.    WHEN          = 'OUTOFDATE',
  206.    REPLACEINUSE  = 'I U D R',
  207.    UNPACK        = 'YES',
  208.    SOURCE        = 'DRIVE: RED.IN_',
  209.    PWS           = 'RED.INF',
  210.    DATE          = '960323',
  211.    TIME          = '1200',
  212.    SIZE          = '19000'
  213.  
  214. FILE
  215.    VOLUME        = 'RED001',
  216.    WHEN          = 'OUTOFDATE',
  217.    REPLACEINUSE  = 'I U D R',
  218.    UNPACK        = 'YES',
  219.    SOURCE        = 'DRIVE: RED.IC_',
  220.    PWS           = 'RED.ICO',
  221.    DATE          = '960323',
  222.    TIME          = '1200',
  223.    SIZE          = '900'
  224.  
  225. FILE
  226.    VOLUME        = 'RED001',
  227.    WHEN          = 'OUTOFDATE',
  228.    REPLACEINUSE  = 'I U D R',
  229.    UNPACK        = 'YES',
  230.    SOURCE        = 'DRIVE: vrobj.dl_',
  231.    PWS           = 'vrobj.dll',
  232.    DATE          = '960323',
  233.    TIME          = '1200',
  234.    SIZE          = '901000'
  235. *---------------------------------------------------------------------
  236. *  Create a program object in the product folder.
  237. *
  238. *  The following changes are required:
  239. *  - Change "COMP1A" in the EXIT keyword to the name of the object.
  240. *  - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
  241. *    name of the program to run.
  242. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  243. *    parameters required to run the object; if no parameters are
  244. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  245. *  - Change "COMP1A" in the EXIT keyword after OBJECTID to the
  246. *    program's object ID; be sure to make the value sufficiently
  247. *    unique; the value must be enclosed in "<>" characters; do not use
  248. *    "COMP1A" or the value of the FOLDERID variable.
  249. *---------------------------------------------------------------------
  250. FILE
  251.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  252.    EXITIGNOREERR = 'NO',
  253.    EXIT          = 'CREATEWPSOBJECT WPProgram "RED"
  254.                    <%FOLDERID%> R
  255.                    "EXENAME=%EPFIFILEDIR%\redb1.exe;STARTUPDIR=%EPFIFILEDIR%;OBJECTID=<COMP1A>;"'
  256.  
  257. *---------------------------------------------------------------------
  258. *  Delete the program object.
  259. *
  260. *  The following changes are required:
  261. *  - Change "COMP1A" in the EXIT keyword to the program's object ID;
  262. *    be sure to use the object ID that you gave the object when it was
  263. *    created in the previous FILE entry; the value must be enclosed in
  264. *    "<>" characters.
  265. *---------------------------------------------------------------------
  266. FILE
  267.    EXITWHEN      = 'DELETE',
  268.    EXITIGNOREERR = 'YES',
  269.    EXIT          = 'DELETEWPSOBJECT <RED>'
  270.  
  271. *---------------------------------------------------------------------
  272.  
  273.