home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1999 April / PCO0499.ISO / filesbbs / os2 / drawit29.arj / DRAWIT29.ZIP / DRW.PKG < prev    next >
Encoding:
OS/2 install Package  |  1998-12-28  |  11.3 KB  |  316 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   = 'DrawIt - Diskette 1',
  27.    VOLUME = ''
  28.  
  29. **********************************************************************
  30.  
  31.  
  32. *---------------------------------------------------------------------
  33. *  Default directories
  34. *---------------------------------------------------------------------
  35. PATH
  36.    FILE      = 'C:/DRAWIT',
  37.    FILELABEL = 'Installation directory'
  38.  
  39. FILE
  40.    EXIT          = 'SETVAR OS2PATH=%EPFIBOOTDRIVE%://OS2'
  41.  
  42. **********************************************************************
  43.  
  44.  
  45. *---------------------------------------------------------------------
  46. *  Exit to define your product folder's object ID.
  47. *
  48. *  The following changes are required:
  49. *  - Set variable FOLDERID to your folder's object ID; be sure to make
  50. *    the value sufficiently unique; do not use "PRODFLDR".
  51. *---------------------------------------------------------------------
  52. FILE
  53.    EXITWHEN = 'ALWAYS',
  54.    EXIT     = 'SETVAR FOLDERID=THISFLDR'
  55.  
  56. **********************************************************************
  57.  
  58.  
  59. *---------------------------------------------------------------------
  60. *  This component creates a folder on the desktop.  You must create
  61. *  the folder in a hidden component to ensure that deleting your
  62. *  product does not delete the folder before the objects within the
  63. *  folder are deleted.
  64. *---------------------------------------------------------------------
  65. COMPONENT
  66.    NAME    = 'INSFIRST',
  67.    ID      = 'INSFIRST',
  68.    DISPLAY = 'NO',
  69.    SIZE    = '1000'
  70.  
  71. *---------------------------------------------------------------------
  72. *  Include a FILE entry to install the catalog file.
  73. *
  74. *  The following changes are required:
  75. *  - Change the SOURCE and PWS keywords to the name of your catalog
  76. *    file.
  77. *---------------------------------------------------------------------
  78. FILE
  79. *  VOLUME        = 'DRAWIT',
  80.    WHEN          = 'OUTOFDATE',
  81.    REPLACEINUSE  = 'I U D R',
  82.    UNPACK        = 'NO',
  83.    SOURCE        = 'DRIVE: DRW.ICF',
  84.    PWS           = 'DRW.ICF',
  85.    DATE          = '970101',
  86.    TIME          = '1200',
  87.    SIZE          = '561699'
  88.  
  89. *---------------------------------------------------------------------
  90. *  Set variable CATALOG to be the name of the catalog file;
  91. *  the variable is used in EPFISINC.PKG.
  92. *
  93. *  The following changes are required:
  94. *  - Change "CATALOG.ICF" in the EXIT keyword to the name of your
  95. *    catalog file.
  96. *---------------------------------------------------------------------
  97. FILE
  98.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  99.    EXITIGNOREERR = 'NO',
  100.    EXIT          = 'SETVAR CATALOG=DRW.ICF'
  101.  
  102. *---------------------------------------------------------------------
  103. *  Include a FILE entry to install the description file.
  104. *
  105. *  The following changes are required:
  106. *  - Change the SOURCE and PWS keywords to the name of your
  107. *    description file.
  108. *---------------------------------------------------------------------
  109. FILE
  110. *  VOLUME        = 'DRAWIT',
  111.    WHEN          = 'OUTOFDATE',
  112.    REPLACEINUSE  = 'I U D R',
  113.    UNPACK        = 'NO',
  114.    SOURCE        = 'DRIVE: DRW.DSC',
  115.    PWS           = 'DRW.DSC',
  116.    DATE          = '970101',
  117.    TIME          = '1200',
  118.    SIZE          = '1000'
  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 "DrawIt 2.9"
  129.                     <WP_DESKTOP> R  "OBJECTID=<%FOLDERID%>"'
  130. *---------------------------------------------------------------------
  131. *  The included package file will install and register the
  132. *  Installation Utility.  You do not need to make any changes to
  133. *  EPFISINC.PKG.
  134. *---------------------------------------------------------------------
  135. **INCLUDE
  136. ** NAME = 'DRIVE: EPFISINC.PKG'
  137. **********************************************************************
  138.  
  139. *---------------------------------------------------------------------
  140. *  Include 1 COMPONENT entry for each component.
  141. *
  142. *  The following changes are required:
  143. *  - Change "Component 1" in the NAME keyword to the name of the
  144. *    component.
  145. *  - Describe the component in the DESCRIPTION keyword.
  146. *
  147. *  The component must require at least the INSFIRST and DELLAST
  148. *  components.
  149. *---------------------------------------------------------------------
  150. COMPONENT
  151.    NAME        = 'Drawing package',
  152.    ID          = 'DRAWIT',
  153.    REQUIRES    = 'INSFIRST DELLAST',
  154.    DISPLAY     = 'YES',
  155.    DESCRIPTION = 'The complete drawing program',
  156.    SIZE        = '1062699'
  157.  
  158. *---------------------------------------------------------------------
  159. *  Another FILE entry.
  160. *
  161. *---------------------------------------------------------------------
  162. FILE
  163. *  VOLUME       = 'DRAWIT',
  164.    WHEN         = 'OUTOFDATE',
  165.    REPLACEINUSE = 'I U D R',
  166.    UNPACK       = 'YES',
  167.    SOURCE       = 'DRIVE: DRAWIT.IC_',
  168.    PWS          = 'DRAWIT.ICO',
  169.    DATE         = '970101',
  170.    TIME         = '1200',
  171.    SIZE         = '26324'
  172. *---------------------------------------------------------------------
  173. *  Include 1 FILE entry for each file in the component.
  174. *
  175. *  The following changes are required:
  176. *  - Change the SOURCE and PWS keywords to the name of the file to
  177. *    install.
  178. *---------------------------------------------------------------------
  179. FILE
  180. *  VOLUME        = 'DRAWIT',
  181.    WHEN          = 'OUTOFDATE',
  182.    REPLACEINUSE  = 'I U D R',
  183.    UNPACK        = 'YES',
  184.    SOURCE        = 'DRIVE: DRAWIT.EX_',
  185.    PWS           = 'DRAWIT.EXE',
  186.    DATE          = '970101',
  187.    TIME          = '1200',
  188.    SIZE          = '561966'
  189.  
  190. *---------------------------------------------------------------------
  191. *  Create a program object in the product folder.
  192. *
  193. *  The following changes are required:
  194. *  - Change "COMP1A" in the EXIT keyword to the name of the object.
  195. *  - Change "COMP1A.EXE" in the EXIT keyword after EXENAME to the
  196. *    name of the program to run.
  197. *  - Change "[]" in the EXIT keyword after PARAMETERS to any
  198. *    parameters required to run the object; if no parameters are
  199. *    required, delete "PARAMETERS=[];" from the EXIT keyword.
  200. *  - Change "COMP1A" in the EXIT keyword after OBJECTID to the
  201. *    program's object ID; be sure to make the value sufficiently
  202. *    unique; the value must be enclosed in "<>" characters; do not use
  203. *    "COMP1A" or the value of the FOLDERID variable.
  204. *---------------------------------------------------------------------
  205. FILE
  206.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  207.    EXITIGNOREERR = 'NO',
  208.    EXIT          = 'CREATEWPSOBJECT WPProgram "DRAWIT"
  209.                    <%FOLDERID%> R
  210.                    "EXENAME=%EPFIFILEDIR%\DRAWIT.EXE;STARTUPDIR=%EPFIFILEDIR%;OBJECTID=<DRAWIT>;ICON=%EPFIFILEDIR%\DRAWIT.ICO"'
  211. *---------------------------------------------------------------------
  212. *  Another FILE entry.
  213. *
  214. *  The following changes are required:
  215. *  - Change the SOURCE and PWS keywords to the name of the file to
  216. *    install.
  217. *---------------------------------------------------------------------
  218. FILE
  219.    WHEN         = 'OUTOFDATE',
  220.    REPLACEINUSE = 'I U D R',
  221.    UNPACK       = 'YES',
  222.    SOURCE       = 'DRIVE: DRWFONT.DL_',
  223.    PWS          = '%OS2PATH%/DLL/DRWFONT.DLL',
  224.    DATE         = '970101',
  225.    TIME         = '1200',
  226.    SIZE         = '350000'
  227.  
  228. FILE
  229.    WHEN         = 'OUTOFDATE',
  230.    REPLACEINUSE = 'I U D R',
  231.    UNPACK       = 'YES',
  232.    SOURCE       = 'DRIVE: DRWPAL.DL_',
  233.    PWS          = '%OS2PATH%/DLL/DRWPAL.DLL',
  234.    DATE         = '970101',
  235.    TIME         = '1200',
  236.    SIZE         = '350000'
  237.  
  238.  
  239. *---------------------------------------------------------------------
  240. *  Delete the program object.
  241. *
  242. *  The following changes are required:
  243. *  - Change "COMP1A" in the EXIT keyword to the program's object ID;
  244. *    be sure to use the object ID that you gave the object when it was
  245. *    created in the previous FILE entry; the value must be enclosed in
  246. *    "<>" characters.
  247. *---------------------------------------------------------------------
  248. FILE
  249.    EXITWHEN      = 'DELETE',
  250.    EXITIGNOREERR = 'YES',
  251.    EXIT          = 'DEREGISTERWPSCLASS drwfont'
  252.  
  253. FILE
  254.    EXITWHEN      = 'DELETE',
  255.    EXITIGNOREERR = 'YES',
  256.    EXIT          = 'DEREGISTERWPSCLASS dwclrpal'
  257.  
  258. FILE
  259.    EXITWHEN      = 'DELETE',
  260.    EXITIGNOREERR = 'YES',
  261.    EXIT          = 'DELETEWPSOBJECT <%FOLDERID%>'
  262. *---------------------------------------------------------------------
  263. *  Another FILE entry.
  264. *
  265. *  The following changes are required:
  266. *  - Change the SOURCE and PWS keywords to the name of the file to
  267. *    install.
  268. *---------------------------------------------------------------------
  269. FILE
  270. *  VOLUME       = 'DRAWIT',
  271.    WHEN         = 'OUTOFDATE',
  272.    REPLACEINUSE = 'I U D R',
  273.    UNPACK       = 'YES',
  274.    SOURCE       = 'DRIVE: DRAWIT.HL_',
  275.    PWS          = 'DRAWIT.HLP',
  276.    DATE         = '970101',
  277.    TIME         = '1200',
  278.    SIZE         = '98450'
  279.  
  280.  
  281. *---------------------------------------------------------------------
  282. *  Another FILE entry.
  283. *
  284. *  The following changes are required:
  285. *  - Change the SOURCE and PWS keywords to the name of the file to
  286. *    install.
  287. *---------------------------------------------------------------------
  288. FILE
  289.    EXITWHEN      = 'EXIST',
  290.    EXITIGNOREERR = 'YES',
  291.    EXIT          = 'REGISTERWPSCLASS drwfont %OS2PATH%//DLL//DRWFONT.DLL'
  292.  
  293. FILE
  294.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  295.    EXITIGNOREERR = 'NO',
  296.    EXIT          = 'CREATEWPSOBJECT drwfont "FontPalette" <%FOLDERID%> R "OBJECTID=<DRWFONT>"'
  297. *---------------------------------------------------------------------
  298. FILE
  299.    EXITWHEN      = 'EXIST',
  300.    EXITIGNOREERR = 'YES',
  301.    EXIT          = 'REGISTERWPSCLASS dwclrpal %OS2PATH%//DLL//DRWPAL.DLL'
  302.  
  303. FILE
  304.    EXITWHEN      = 'INSTALL || UPDATE || RESTORE',
  305.    EXITIGNOREERR = 'NO',
  306.    EXIT          = 'CREATEWPSOBJECT dwclrpal "ColorPalette" <%FOLDERID%> R "OBJECTID=<DRWCOLOR>"'
  307. *---------------------------------------------------------------------
  308. *  Update libpath in config.sys.
  309. *---------------------------------------------------------------------
  310. *UPDATECONFIG
  311. *   ADDWHEN       = 'INSTALL || UPDATE || RESTORE',
  312. *   DELETEWHEN    = DELETE,
  313. *   LINELOCATION  = BEGIN,
  314. *   VAR           = LIBPATH,
  315. *   ADDSTR        = '%EPFIFILEDIR%;'
  316.