home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / redb1d.zip / package.pkg < prev    next >
Text File  |  1995-04-24  |  13KB  |  356 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   = '<Product Name> - Diskette 1',
  27.    VOLUME = 'PROD001'
  28.  
  29. DISK
  30.    NAME   = '<Product Name> - Diskette 2',
  31.    VOLUME = 'PROD002'
  32.  
  33.  
  34. **********************************************************************
  35.  
  36.  
  37. *---------------------------------------------------------------------
  38. *  Default directories
  39. *---------------------------------------------------------------------
  40. PATH
  41.    FILE      = 'C:/PRODNAME',
  42.    FILELABEL = 'Installation directory'
  43.  
  44.  
  45. **********************************************************************
  46.  
  47.  
  48. *---------------------------------------------------------------------
  49. *  Exit to define your product folder's object ID.
  50. *
  51. *  The following changes are required:
  52. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  53. *    the value sufficiently unique; do not use "PRODFLDR".
  54. *---------------------------------------------------------------------
  55. FILE
  56.    EXITWHEN = 'ALWAYS',
  57.    EXIT     = 'SETVAR FOLDERID=PRODFLDR'
  58.  
  59.  
  60. **********************************************************************
  61.  
  62.  
  63. *---------------------------------------------------------------------
  64. *  This component creates a folder on the desktop.  You must create
  65. *  the folder in a hidden component to ensure that deleting your
  66. *  product does not delete the folder before the objects within the
  67. *  folder are deleted.
  68. *---------------------------------------------------------------------
  69. COMPONENT
  70.    NAME    = 'INSFIRST',
  71.    ID      = 'INSFIRST',
  72.    DISPLAY = 'NO',
  73.    SIZE    = '1000'
  74.  
  75. *---------------------------------------------------------------------
  76. *  Include a FILE entry to install the catalog file.
  77. *
  78. *  The following changes are required:
  79. *  - Change the SOURCE and PWS keywords to the name of your catalog
  80. *    file.
  81. *---------------------------------------------------------------------
  82. FILE
  83.    VOLUME        = 'PROD001',
  84.    WHEN          = 'OUTOFDATE',
  85.    REPLACEINUSE  = 'I U D R',
  86.    UNPACK        = 'NO',
  87.    SOURCE        = 'DRIVE: CATALOG.ICF',
  88.    PWS           = 'CATALOG.ICF',
  89.    DATE          = '950101',
  90.    TIME          = '1200',
  91.    SIZE          = '1000'
  92.  
  93. *---------------------------------------------------------------------
  94. *  Set variable CATALOG to be the name of the catalog file;
  95. *  the variable is used in EPFISINC.PKG.
  96. *
  97. *  The following changes are required:
  98. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  99. *    catalog file.
  100. *---------------------------------------------------------------------
  101. FILE
  102.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  103.    EXITIGNOREERR = 'NO',
  104.    EXIT          = 'SETVAR CATALOG=CATALOG.ICF'
  105.  
  106. *---------------------------------------------------------------------
  107. *  Include a FILE entry to install the description file.
  108. *
  109. *  The following changes are required:
  110. *  - Change the SOURCE and PWS keywords to the name of your
  111. *    description file.
  112. *---------------------------------------------------------------------
  113. FILE
  114.    VOLUME        = 'PROD001',
  115.    WHEN          = 'OUTOFDATE',
  116.    REPLACEINUSE  = 'I U D R',
  117.    UNPACK        = 'NO',
  118.    SOURCE        = 'DRIVE: DESCR.DSC',
  119.    PWS           = 'DESCR.DSC',
  120.    DATE          = '950101',
  121.    TIME          = '1200',
  122.    SIZE          = '1000'
  123.  
  124. *---------------------------------------------------------------------
  125. *  Create your product's folder on the desktop.
  126. *
  127. *  The following changes are required:
  128. *  - Change "<Product Name>" in the EXIT keyword to your product name.
  129. *---------------------------------------------------------------------
  130. FILE
  131.    EXITWHEN      = 'INSTALL || UPDATE',
  132.    EXITIGNOREERR = 'NO',
  133.    EXIT          = 'CREATEWPSOBJECT WPFolder "<Product Name>"
  134.                    <WP_DESKTOP> R
  135.                    "OBJECTID=<%FOLDERID%>;"'
  136.  
  137. *---------------------------------------------------------------------
  138. *  The included package file will install and register the
  139. *  Installation Utility.  You do not need to make any changes to
  140. *  EPFISINC.PKG.
  141. *---------------------------------------------------------------------
  142. INCLUDE
  143.    NAME = 'DRIVE: EPFISINC.PKG'
  144.  
  145.  
  146. **********************************************************************
  147.  
  148.  
  149. *---------------------------------------------------------------------
  150. *  Include 1 COMPONENT entry for each component.
  151. *
  152. *  The following changes are required:
  153. *  - Change "Component 1" in the NAME keyword to the name of the
  154. *    component.
  155. *  - Describe the component in the DESCRIPTION keyword.
  156. *
  157. *  The component must require at least the INSFIRST and DELLAST
  158. *  components.
  159. *---------------------------------------------------------------------
  160. COMPONENT
  161.    NAME        = 'Component 1',
  162.    ID          = 'COMP1',
  163.    REQUIRES    = 'INSFIRST DELLAST',
  164.    DISPLAY     = 'YES',
  165.    DESCRIPTION = 'Description of Component 1',
  166.    SIZE        = '10000'
  167.  
  168. *---------------------------------------------------------------------
  169. *  Include 1 FILE entry for each file in the component.
  170. *
  171. *  The following changes are required:
  172. *  - Change the SOURCE and PWS keywords to the name of the file to
  173. *    install.
  174. *---------------------------------------------------------------------
  175. FILE
  176.    VOLUME        = 'PROD001',
  177.    WHEN          = 'OUTOFDATE',
  178.    REPLACEINUSE  = 'I U D R',
  179.    UNPACK        = 'YES',
  180.    SOURCE        = 'DRIVE: COMP1A.EX_',
  181.    PWS           = 'COMP1A.EXE',
  182.    DATE          = '950101',
  183.    TIME          = '1200',
  184.    SIZE          = '1000'
  185.  
  186. *---------------------------------------------------------------------
  187. *  Create a program object in the product folder.
  188. *
  189. *  The following changes are required:
  190. *  - Change "COMP1A" in the EXIT keyword to the name of the object.
  191. *  - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
  192. *    name of the program to run.
  193. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  194. *    parameters required to run the object; if no parameters are
  195. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  196. *  - Change "COMP1A" in the EXIT keyword after OBJECTID to the
  197. *    program's object ID; be sure to make the value sufficiently
  198. *    unique; the value must be enclosed in "<>" characters; do not use
  199. *    "COMP1A" or the value of the FOLDERID variable.
  200. *---------------------------------------------------------------------
  201. FILE
  202.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  203.    EXITIGNOREERR = 'NO',
  204.    EXIT          = 'CREATEWPSOBJECT WPProgram "COMP1A"
  205.                    <%FOLDERID%> R
  206.                    "EXENAME=COMP1A.EXE;STARTUPDIR=%EPFIFILEDIR%;PARAMETERS=[];OBJECTID=<COMP1A>;"'
  207.  
  208. *---------------------------------------------------------------------
  209. *  Delete the program object.
  210. *
  211. *  The following changes are required:
  212. *  - Change "COMP1A" in the EXIT keyword to the program's object ID;
  213. *    be sure to use the object ID that you gave the object when it was
  214. *    created in the previous FILE entry; the value must be enclosed in
  215. *    "<>" characters.
  216. *---------------------------------------------------------------------
  217. FILE
  218.    EXITWHEN      = 'DELETE',
  219.    EXITIGNOREERR = 'YES',
  220.    EXIT          = 'DELETEWPSOBJECT <COMP1A>'
  221.  
  222. *---------------------------------------------------------------------
  223. *  Another FILE entry.
  224. *
  225. *  The following changes are required:
  226. *  - Change the SOURCE and PWS keywords to the name of the file to
  227. *    install.
  228. *---------------------------------------------------------------------
  229. FILE
  230.    VOLUME       = 'PROD001',
  231.    WHEN         = 'OUTOFDATE',
  232.    REPLACEINUSE = 'I U D R',
  233.    UNPACK       = 'YES',
  234.    SOURCE       = 'DRIVE: COMP1B.EX_',
  235.    PWS          = 'COMP1B.EXE',
  236.    DATE         = '950101',
  237.    TIME         = '1200',
  238.    SIZE         = '1000'
  239.  
  240.  
  241. **********************************************************************
  242.  
  243.  
  244. *---------------------------------------------------------------------
  245. *  Another component.
  246. *
  247. *  The following changes are required:
  248. *  - Change "Component 2" in the NAME keyword to the name of the
  249. *    component.
  250. *  - Describe the component in the DESCRIPTION keyword.
  251. *
  252. *  The component must require at least the INSFIRST and DELLAST
  253. *  components.
  254. *---------------------------------------------------------------------
  255. COMPONENT
  256.    NAME        = 'Component 2',
  257.    ID          = 'COMP2',
  258.    REQUIRES    = 'INSFIRST DELLAST',
  259.    DISPLAY     = 'YES',
  260.    DESCRIPTION = 'Description of Component 2',
  261.    SIZE        = '10000'
  262.  
  263. *---------------------------------------------------------------------
  264. *  Another FILE entry.
  265. *
  266. *  The following changes are required:
  267. *  - Change the SOURCE and PWS keywords to the name of the file to
  268. *    install.
  269. *---------------------------------------------------------------------
  270. FILE
  271.    VOLUME        = 'PROD001',
  272.    WHEN          = 'OUTOFDATE',
  273.    REPLACEINUSE  = 'I U D R',
  274.    UNPACK        = 'YES',
  275.    SOURCE        = 'DRIVE: COMP2A.EX_',
  276.    PWS           = 'COMP2A.EXE',
  277.    DATE          = '950101',
  278.    TIME          = '1200',
  279.    SIZE          = '1000'
  280.  
  281. *---------------------------------------------------------------------
  282. *  Create another program object in the product folder.
  283. *
  284. *  The following changes are required:
  285. *  - Change "COMP2A" in the EXIT keyword to the name of the object.
  286. *  - Change "COMP2A.EXE" in the EXIT keyword after EXENAME to the
  287. *    name of the program to run.
  288. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  289. *    parameters required to run the object; if no parameters are
  290. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  291. *  - Change "COMP2A" in the EXIT keyword after OBJECTID to the
  292. *    program's object ID; be sure to make the value sufficiently
  293. *    unique; the value must be enclosed in "<>" characters; do not use
  294. *    "COMP2A".
  295. *---------------------------------------------------------------------
  296. FILE
  297.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  298.    EXITIGNOREERR = 'NO',
  299.    EXIT          = 'CREATEWPSOBJECT WPProgram "COMP2A"
  300.                    <%FOLDERID%> R
  301.                    "EXENAME=COMP2A.EXE;STARTUPDIR=%EPFIFILEDIR%;PARAMETERS=[];OBJECTID=<COMP2A>;"'
  302.  
  303. *---------------------------------------------------------------------
  304. *  Delete the program object.
  305. *
  306. *  The following changes are required:
  307. *  - Change "COMP2A" in the EXIT keyword to the program's object ID;
  308. *    be sure to use the object ID that you gave the object when it was
  309. *    created in the previous FILE entry; the value must be enclosed in
  310. *    "<>" characters; do not use "COMP2A".
  311. *---------------------------------------------------------------------
  312. FILE
  313.    EXITWHEN      = 'DELETE',
  314.    EXITIGNOREERR = 'YES',
  315.    EXIT          = 'DELETEWPSOBJECT <COMP2A>'
  316.  
  317. *---------------------------------------------------------------------
  318. *  Another FILE entry.
  319. *
  320. *  The following changes are required:
  321. *  - Change the SOURCE and PWS keywords to the name of the file to
  322. *    install.
  323. *---------------------------------------------------------------------
  324. FILE
  325.    VOLUME       = 'PROD001',
  326.    WHEN         = 'OUTOFDATE',
  327.    REPLACEINUSE = 'I U D R',
  328.    UNPACK       = 'YES',
  329.    SOURCE       = 'DRIVE: COMP2B.EX_',
  330.    PWS          = 'COMP2B.EXE',
  331.    DATE         = '950101',
  332.    TIME         = '1200',
  333.    SIZE         = '1000'
  334.  
  335.  
  336. **********************************************************************
  337.  
  338.  
  339. *---------------------------------------------------------------------
  340. *  This component deletes the product folder; it must be the last
  341. *  COMPONENT entry in the package file.
  342. *
  343. *  No changes are required to any entry in this component.
  344. *---------------------------------------------------------------------
  345. COMPONENT
  346.    NAME    = 'DELLAST',
  347.    ID      = 'DELLAST',
  348.    DISPLAY = 'NO',
  349.    SIZE    = '0'
  350.  
  351. FILE
  352.    EXITWHEN      = 'DELETE',
  353.    EXITIGNOREERR = 'YES',
  354.    EXIT          = 'DELETEWPSOBJECT <%FOLDERID%>'
  355.  
  356.