home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / twainsdk.zip / TWAINTST.PKG < prev    next >
Text File  |  1998-05-08  |  16KB  |  504 lines

  1. *  twaintst.pkg
  2.  
  3. *****************************************************************************
  4. *                          Twain for OS/2                                             
  5. *                                                                                                          
  6. *   COPYRIGHT (C)  1994-1995, SOLUTION TECHNOLOGY INC.,  ALL RIGHTS RESERVED.        
  7. *   LICENSED MATERIALS - PROPRIETARY PROPERTY OF SOLUTION TECHNOLOGY, INC.        
  8. *                                                                               
  9. *   Twain package file                                                     
  10. *****************************************************************************
  11.  
  12. *  10\13\95, Servicelevel=3, VRM 1.0.8
  13. *  - Added Fax Express driver
  14. *  - Added STILIB32.DLL common library
  15. *  - IBM 2456 and B&H 3338 drivers did not load respective .SYS file
  16. *  - Make sure we mark off OS2ASPI.DMD and VASPI.SYS as part of Twain for OS/2
  17. *  - Make sure all CONFIG.SYS changes use search parameters when adding DEVICE statements
  18. *  - Put the ending REM statements in at the same time as we put the beginning REM statements otherwise
  19. *    the end REM statements we add to CONFIG.SYS will be put in before the DEVICE statements because
  20. *    of the way the search mechanism works
  21. *  - Make sure we allow deletion of OS2ASPI.DMD and VASPI.SYS on 'DELETE || RESTORE' instead of 'NEVER'
  22. *  - Added Epson ES-1200C (GT-9000) driver
  23. *  - Must delete the REM statementes with ADDCONFIG statements at END of the PKG file
  24. *  - Renamed IBM subdir to IBM2456 and BH subdir to BH3338
  25. *  - Modified diskgen to make default path \RELEASE so have to change all PWS entries to reflect that change
  26. *  - Restored shared component (now called STiLIB instead of TWAININT) since we're now using a shared install file tree
  27. *  - Shared component still doesn't work. Have to force the issue and install STiLIB separately!
  28. *  - To make shared components work force installation of all products into \STi tree
  29. *  - Only let customer install onto a physical drive; do not let them pick subdirectories
  30. *
  31. *  11\11\95, Servicelevel=0, VRM 1.0.9
  32. *  - Added environment variable TWAIN set to the location of the Twain components (needed for Bill's source manager search)
  33. *  - New Fax Express driver
  34. *  - Fax Express driver does NOT ship with standard Twain Kit. Make sure all Fax Express items are commented out for
  35. *    standard Twain distribution kit.
  36. *  - DESCRIPTION field of PATH gets clipped out when doing DISKGEN. Must reinsert manually with other changes from the
  37. *    file \RELEASE\INSTALL.FIX using SED.
  38. *  - STiLIB is installed now into \STi\DLL subdirectory
  39. *  - Original HP DS restored as new one had problems.
  40. *  - SCANOS2.SYS used by ReView 1.1 HP is now shipping third party SCSI support
  41. *
  42. *  12\6\95, Servicelevel=1, VRM=1.0.9
  43. *
  44. *  - New Fax Express driver
  45. *  - New HP DS with >400 DPI support
  46. *  - Shared components seem to work as best they can so removed any commented out code that dealt with manually 
  47. *    copying those files
  48. *  - Updated shared component VRM
  49. *  - Changed ' End' to 'End' in REM statements
  50. *  - Changed \ to \\ for correct pathing of PKG and READ.ME files
  51. *
  52. *  12\7\95, Servicelevel=2, VRM=1.0.9
  53. *
  54. *  - Found way to create USER INSTALLATION variables to hold the subdirectories where the files go
  55. *  - PKG files go into STi root
  56. *
  57. *  12\22\95, Servicelevel=0, VRM=1.0.10
  58. *
  59. *  - Added Kofax card support
  60. *  - REMmed out the DOS VASPI support
  61. *  - HP 3rd party SCSI was installing HP Native driver and vice versa into CONFIG.SYS
  62. *
  63. *  1\23\96, Servicelevel=1, VRM=1.0.10
  64. *
  65. *  - Do NOT pack TWAIN.DLL or TWAININT.DLL - this way these files can be modified to allow crippling
  66. *
  67. *  1\25\96, Servicelevel=2, VRM=1.0.10
  68. *
  69. *  - TWAININT.DLL in its own separate shared component
  70. *  - Move shared component to beginning of build
  71. *
  72. *  1\26\96, Servicelevel=2, VRM=1.0.10
  73. *
  74. *  - Pack TWAIN.DLL again; we will come up with a unique license administration facility to take
  75. *    care of shareware use in the near future.
  76. *  - STiLIB32.DLL required by Fax Express. TWAININT.PKG renamed back to STiLIB.PKG as these two DLLs
  77. *    now make up STiLIB.
  78. *
  79. *  1\31\96, Servicelevel=3, VRM=1.0.10
  80. *
  81. *  - TWAININT.DLL and STILIB32.DLL are now packed into separate shared components.
  82. *    STILIB32.DLL is only required by FaxExpress (at this time) so it will be INCLUDED when FaxExpress
  83. *    is loaded.
  84. *
  85. *  2\1\96, Servicelevel=3, VRM=1.0.10
  86. *
  87. *  - Do not use READ ONLY attribute
  88. *
  89. *  2\2\96, Servicelevel=4, VRM=1.0.10
  90. *
  91. *  - Do not DELETE on RESTORE during ADDCONFIG EXITWHEN condition
  92. *  - Add UPDATE and RESTORE to EXITWHEN for changing package attributes to hidden
  93. *  - Make sure any READ ONLY attributes cleared on package file
  94. *  - FaxExpress requires STiLIB package; 
  95. *
  96. *  2\5\96, Servicelevel=4, VRM=1.0.10
  97. *
  98. *  - Can't put STiLIB component after (and REQUIREd by) FAXEXP component. Must always be loaded.
  99. *    Installer bug?
  100. *
  101. *  2\6\96, Servicelevel=5, VRM=1.0.10
  102. *
  103. *  - Refresh from .GEN file
  104. *  - Getting error EPFIE134: Cannot access the profile file (have no idea what this is)
  105. *  - Removed REQUIRES field from all selectable components except Fax Express
  106. *
  107. *  2\7\96, Servicelevel=5, VRM=1.0.10
  108. *
  109. *  - Created consumer driver package
  110. *  - Removed high speed drivers
  111. *
  112. *  2\7\96, Servicelevel=6, VRM=1.0.10
  113. *
  114. *  - CONFIG.SYS is not being updated properly
  115. *  - READ.ME not displaying
  116. *  - Cause of all this is the fact that I removed the REQUIRES parameter from the components. It
  117. *    is needed because the selectable components do require the BASE package which is a component!
  118. *
  119. *  3\4\96, Servicelevel=7, VRM=1.0.10
  120. *
  121. *  - Removed all shared components as components since they don't seem to work; kept PKG files intact though
  122. *
  123. *  3\11\96, Servicelevel=TWN95031101, VRM=1.0.10
  124. *
  125. *  - SERVICELEVEL is a cumulative number; only time zero is when first release. Needs to be a unique identifier.
  126. *  - Base TWAIN only requires 'Finish' not 'TWAININT'
  127. *
  128. *  3\12\96, Servicelevel=TWN96031201, VRM=1.0.10
  129. *
  130. *  - Turned shared components back on
  131. *  - STiLIB shared component had wrong "Feature" code; not consistent with other products (Not used in Consumer Pack)
  132. *
  133. *  5\3\96, Servicelevel=TWN96050301, VRM=1.0.10
  134. *
  135. *  - Since Fax Express is a separate product now, there needs to be a way to just install the base Twain
  136. *    components. Made the base component displayable to make this happen.
  137. *
  138. *  5\10\96, Servicelevel=TWN96051001, VRM=1.0.10
  139. *
  140. *  - Only allow DRIVE letter to be selected. Force STi into path.
  141. *  - Added FILEAUX9 variable
  142. *  - Package file goes into root directory now
  143. *
  144. *  9\30\96, Servicelevel=TWN96093001, VRM=1.0.11
  145. *
  146. *  - First official public release
  147. *  - Removed Microtek from package
  148. *
  149. *  10\25\96, Servicelevel=TWNC96102501, VRM=1.0.12
  150. *
  151. *  - Fixed HP Data Source, was returning incorrect model number
  152. *
  153. *  10\29\96, Servicelevel=TWNT96102901, VRM=1.0.12
  154. *
  155. *  - HP Data Source did not perform color on 4c
  156. *  - Created Twain Test package file for SDK from consumer pack
  157. *  - Special TWAININT.DLL required, do not use shared component for now
  158. *
  159. *  10\30\96, Servicelevel=TWNT96103001, VRM=1.0.12
  160. *
  161. *  - Changed TWAIN.PKG to TWAINTST.PKG so attributes get set properly
  162. *
  163. *  10\31\96, Servicelevel=TWNT96103101, VRM=1.0.12
  164. *
  165. *  - STi Logo now red on blue
  166. *
  167.  
  168. SERVICELEVEL
  169.    LEVEL = 'TWNT96103101'
  170.  
  171. *************************************************
  172. *  Default Directories Specification                                 
  173. *************************************************
  174. * Define the default directories and labels to appear in the
  175. * Install - Directories window.
  176.  
  177. PATH
  178.    FILE = 'C:',
  179.    FILELABEL = 'Location of STi Products:',
  180.    DRIVEONLY = 'FILE'
  181.  
  182. * create installation variables
  183.  
  184. FILE
  185.    EXITWHEN = 'ALWAYS',
  186.    EXITIGNOREERR = 'NO',
  187.    EXIT = 'SETVAR FILEAUX9=%EPFIFILEDIR%\STi'
  188.  
  189. FILE
  190.    EXITWHEN = 'ALWAYS',
  191.    EXITIGNOREERR = 'NO',
  192.    EXIT = 'SETVAR FILEAUX2=%FILEAUX9%\TWAIN'
  193.  
  194. FILE
  195.    EXITWHEN = 'ALWAYS',
  196.    EXITIGNOREERR = 'NO',
  197.    EXIT = 'SETVAR FILEAUX1=%FILEAUX9%\DLL'
  198.  
  199. FILE
  200.    EXITWHEN = 'ALWAYS',
  201.    EXITIGNOREERR = 'YES',
  202.    EXIT = 'EXEC BG TW CMD.EXE /C ATTRIB -H -R %EPFIFILEDIR%\twaintst.pkg'
  203.  
  204. FILE
  205.    EXITWHEN = 'ALWAYS',
  206.    EXITIGNOREERR = 'YES',
  207.    EXIT = 'EXEC BG TW CMD.EXE /C ATTRIB -R %FILEAUX2%\read.me'
  208.  
  209. * Begin unpacking and installing files
  210.  
  211. COMPONENT
  212.    NAME = 'Twain Run-Time Libraries and Base Support',
  213.    ID = 'TWAINOS2',
  214.    REQUIRES = 'Finish',
  215.    DISPLAY = 'YES',
  216.    DESCRIPTION = 'This is the Twain for OS/2 Run-time libraries and base system support',
  217.    SIZE = '130000',
  218.    SHARED = 'NO',
  219.    DELETE = 'YES'
  220. *   REQUIRES = 'Finish',
  221.  
  222. PACKFILE
  223.    UNPACK = 'YES',
  224.    SOURCE = 'DRIVE:twain.PA_',
  225.    ID = 'TWAINOS2'
  226.  
  227. FILE
  228.    WHEN = 'OUTOFDATE',
  229.    REPLACEINUSE = 'I U D R ',
  230.    SOURCE = 'DRIVE:read.me',
  231.    PWS = '%FILEAUX2%\read.me',
  232.    DATE = '961028',
  233.    SIZE = '7135'
  234.  
  235. FILE
  236.    WHEN = 'OUTOFDATE',
  237.    REPLACEINUSE = 'I U D R ',
  238.    UNPACK = 'YES',
  239.    SOURCE = 'DRIVE:twain.DL_',
  240.    PACKID = 'TWAINOS2',
  241.    PWS = '%FILEAUX2%\TWAIN.DLL',
  242.    DATE = '961029',
  243.    SIZE = '77900'
  244.  
  245. FILE
  246.    WHEN = 'OUTOFDATE',
  247.    REPLACEINUSE = 'I U D R ',
  248.    UNPACK = 'YES',
  249.    SOURCE = 'DRIVE:twainint.DL_',
  250.    PACKID = 'TWAINOS2',
  251.    PWS = '%FILEAUX2%\TWAININT.DLL',
  252.    DATE = '961029',
  253.    SIZE = '39592'
  254.  
  255. FILE
  256.    WHEN = 'OUTOFDATE',
  257.    REPLACEINUSE = 'I U D R ',
  258.    UNPACK = 'YES',
  259.    SOURCE = 'DRIVE:aspidrv.SY_',
  260.    PACKID = 'TWAINOS2',
  261.    PWS = '%FILEAUX2%\ASPIDRV.SYS',
  262.    DATE = '950819',
  263.    SIZE = '3024'
  264.  
  265. * mark stuff we're installing
  266.  
  267. ADDCONFIG
  268.    ADDSTR = 'REM',
  269.    ADDWHEN = 'INSTALL',
  270.    DELETEWHEN = 'NEVER',
  271.    LOCATION = 'END',
  272.    DELETELINE = 'YES'
  273.  
  274. ADDCONFIG
  275.    ADDSTR = 'REM ***** Start of TWAIN for OS/2 *****',
  276.    ADDWHEN = 'INSTALL',
  277.    DELETEWHEN = 'NEVER',
  278.    LOCATION = 'END',
  279.    DELETELINE = 'YES'
  280.  
  281. * ending mark of stuff we're installing
  282.  
  283. * this REM will be put BEFORE the previous one
  284.  
  285. ADDCONFIG
  286.    ADDSTR = 'REM *****  End of TWAIN for OS/2 *****',
  287.    ADDWHEN = 'INSTALL',
  288.    DELETEWHEN = 'NEVER',
  289.    LOCATION = 'END',
  290.    DELETELINE = 'YES'
  291.  
  292. ADDCONFIG
  293.    ADDSTR = 'REM',
  294.    ADDWHEN = 'INSTALL',
  295.    DELETEWHEN = 'NEVER',
  296.    FILESEARCHPOS = 'AFTER',
  297.    FILESEARCHSTR = 'REM *****  End of TWAIN for OS/2',
  298.    FILESEARCHSTROCC = 'FIRST',
  299.    DELETELINE = 'YES'
  300.  
  301. * make sure we add in OS2ASPI.DMD no matter if we need it or not that way
  302. * if one of our drivers needs it, it's there
  303.  
  304. ADDCONFIG
  305.    VAR = 'BASEDEV',
  306.    ADDSTR = 'OS2ASPI.DMD',
  307.    ADDWHEN = 'INSTALL',
  308.    DELETEWHEN = 'DELETE',
  309.    FILESEARCHPOS = 'BEFORE',
  310.    FILESEARCHSTR = 'REM *****  End of TWAIN for OS/2',
  311.    FILESEARCHSTROCC = 'FIRST',
  312.    UNIQUE = 'YES',
  313.    DELETELINE = 'YES'
  314.  
  315. * give them the DOS ASPI hook too
  316. * but REM it out, let the user unREM it if they want it
  317.  
  318. ADDCONFIG
  319.    VAR = 'REM DEVICE',
  320.    ADDSTR = '%EPFIBOOTDRIVE%:\OS2\MDOS\VASPI.SYS',
  321.    ADDWHEN = 'INSTALL',
  322.    DELETEWHEN = 'DELETE',
  323.    FILESEARCHPOS = 'BEFORE',
  324.    FILESEARCHSTR = 'REM *****  End of TWAIN for OS/2',
  325.    FILESEARCHSTROCC = 'LAST',
  326.    UNIQUE = 'YES',
  327.    DELETELINE = 'YES'
  328.  
  329. * done with base package, now let's install the components
  330.  
  331. *FILE
  332. *   WHEN = 'ALWAYS',
  333. *   REPLACEINUSE = 'I U D R ',
  334. *   UNPACK = 'YES',
  335. *   SOURCE = 'DRIVE:twainint.DL_',
  336. *   VOLUME = 'Twain1',
  337. *   PACKID = 'TWAINOS2',
  338. *   PWS = '%FILEAUX2%\TWAININT.DLL',
  339. *   DATE = '950819',
  340. *   SIZE = '38104'
  341.  
  342. * Add in any shared components now
  343.  
  344. *COMPONENT
  345. *   NAME = 'TWAIN Interface DLL for OS/2',
  346. *   ID = 'TWAININT',
  347. *   DISPLAY = 'NO',
  348. *   SIZE = '50000',
  349. *   SHARED = 'YES',
  350. *   VRM = '010600',
  351. *   NUMBER = '793499-49306',
  352. *   FEATURE = 'TWAININT Common DLL',
  353. *   DELETE = 'YES',
  354. *   PKGFILE = 'TWAININT.PKG'
  355. **   REQUIRES = 'TWAINOS2',
  356.  
  357. *INCLUDE
  358. *   NAME = 'DRIVE:TWAININT.PKG'
  359.  
  360. * Next we install the driver components
  361.  
  362. * Brain Dead Fax Express Test Driver
  363.  
  364. COMPONENT
  365.    NAME = 'SDK Test Driver',
  366.    ID = 'TEST',
  367.    REQUIRES = 'TWAINOS2 STiLIB',
  368.    DISPLAY = 'YES',
  369.    DESCRIPTION = 'This is the SDK Test Driver pack.',
  370.    SIZE = '150000',
  371.    SHARED = 'NO',
  372.    DELETE = 'YES'
  373. *   REQUIRES = 'TWAINOS2',
  374.  
  375. PACKFILE
  376.    UNPACK = 'YES',
  377.    SOURCE = 'DRIVE:test.PA_',
  378.    * VOLUME = 'Twain1',
  379.    ID = 'TEST'
  380.  
  381. FILE
  382.    WHEN = 'OUTOFDATE',
  383.    REPLACEINUSE = 'I U D R ',
  384.    UNPACK = 'YES',
  385.    SOURCE = 'DRIVE:twfxbd.DS_',
  386.    PACKID = 'TEST',
  387.    PWS = '%FILEAUX2%\twfxbd.DS',
  388.    DATE = '961029',
  389.    SIZE = '147296'
  390.  
  391. * Brain Dead Fax Express Test Driver done
  392.  
  393. * add in the STiLIB shared component required by Fax Express
  394.  
  395. *COMPONENT
  396. *   NAME = 'STiLIB for OS/2',
  397. *   ID = 'STiLIB',
  398. *   DISPLAY = 'NO',
  399. *   SIZE = '490000',
  400. *   SHARED = 'YES',
  401. *   VRM = '010004',
  402. *   NUMBER = '793499-49300',
  403. *   FEATURE = 'Common Runtime DLLs',
  404. *   DELETE = 'YES',
  405. *   PKGFILE = 'STiLIB.PKG',
  406. *   REQUIRES = 'TEST'
  407.  
  408. *INCLUDE
  409. *   NAME = 'DRIVE:STILIB.PKG'
  410.  
  411. * Components done, update CONFIG.SYS
  412.  
  413. COMPONENT
  414.    NAME = 'Finish UP',
  415.    ID = 'Finish',
  416.    DISPLAY = 'NO',
  417.    SIZE = '0',
  418.    SHARED = 'NO',
  419.    DELETE = 'YES'
  420. *   REQUIRES = 'TWAINOS2',
  421. *   REQUIRES = 'TWAINOS2 TWAININT',
  422.  
  423. * end of everything, update CONFIG.SYS LIBPATH and DPATH
  424.  
  425. UPDATECONFIG
  426.    VAR = 'LIBPATH',
  427.    ADDSTR = '%FILEAUX2%;',
  428.    ADDWHEN = 'INSTALL',
  429.    DELETEWHEN = 'DELETE',
  430.    LINELOCATION = 'BEGIN'
  431.  
  432. UPDATECONFIG
  433.    VAR = 'SET DPATH',
  434.    ADDSTR = '%FILEAUX2%;',
  435.    ADDWHEN = 'INSTALL',
  436.    DELETEWHEN = 'DELETE',
  437.    LINELOCATION = 'BEGIN'
  438.  
  439. ADDCONFIG
  440.    ADDSTR = 'SET TWAIN=%FILEAUX2%',
  441.    ADDWHEN = 'INSTALL',
  442.    DELETEWHEN = 'DELETE',
  443.    FILESEARCHPOS = 'BEFORE',
  444.    FILESEARCHSTR = 'REM *****  End of TWAIN for OS/2',
  445.    FILESEARCHSTROCC = 'FIRST',
  446.    DELETELINE = 'YES'
  447.  
  448. * now we can go ahead and delete the REM statements from CONFIG.SYS
  449.  
  450. ADDCONFIG
  451.    ADDSTR = 'REM',
  452.    ADDWHEN = 'NEVER',
  453.    DELETEWHEN = 'DELETE',
  454.    FILESEARCHPOS = 'BEFORE',
  455.    FILESEARCHSTR = 'REM ***** Start of TWAIN for OS/2',
  456.    FILESEARCHSTROCC = 'FIRST',
  457.    DELETELINE = 'YES'
  458.  
  459. ADDCONFIG
  460.    ADDSTR = 'REM ***** Start of TWAIN for OS/2 *****',
  461.    ADDWHEN = 'NEVER',
  462.    DELETEWHEN = 'DELETE',
  463.    DELETELINE = 'YES'
  464.  
  465. ADDCONFIG
  466.    ADDSTR = 'REM',
  467.    ADDWHEN = 'NEVER',
  468.    DELETEWHEN = 'DELETE',
  469.    FILESEARCHPOS = 'AFTER',
  470.    FILESEARCHSTR = 'REM *****  End of TWAIN for OS/2',
  471.    FILESEARCHSTROCC = 'FIRST',
  472.    DELETELINE = 'YES'
  473. *LOCATION = 'END',
  474.  
  475. ADDCONFIG
  476.    ADDSTR = 'REM *****  End of TWAIN for OS/2 *****',
  477.    ADDWHEN = 'NEVER',
  478.    DELETEWHEN = 'DELETE',
  479.    DELETELINE = 'YES'
  480.  
  481. * Make the package file hidden
  482.  
  483. FILE
  484.    EXITWHEN = 'INSTALL || UPDATE || RESTORE',
  485.    EXITIGNOREERR = 'YES',
  486.    EXIT = 'EXEC BG TW CMD.EXE /C ATTRIB +H %EPFIFILEDIR%\twaintst.pkg'
  487.  
  488. FILE
  489.    EXITWHEN = 'INSTALL || UPDATE || RESTORE',
  490.    EXITIGNOREERR = 'YES',
  491.    EXIT = 'EXEC BG TW CMD.EXE /C ATTRIB +R %FILEAUX2%\read.me'
  492.  
  493. FILE
  494.    EXITWHEN = 'INSTALL || UPDATE || RESTORE',
  495.    EXITIGNOREERR = 'YES',
  496.    EXIT = 'EXEC FG PM epm.exe %FILEAUX2%\read.me'
  497.  
  498. OPTIONS
  499.    SUCCESSINSMSG = 'All files have been transferred successfully. The installation process has updated your CONFIG.SYS file.  Please reboot your system.',
  500.    SUCCESSUPDMSG = 'All files have been updated successfully.',
  501.    SUCCESSDELMSG = 'All files have been deleted successfully.'
  502.  
  503.  
  504.