Installing Deskscan II (ver 2.3.1a) for color scanning with H.P.Scanjet 5p with WINOS2

By Richard Michael Klippstein

Before attempting this installation you will need the following files: In addition to the SJ120EN.EXE file you download from the Hewlett Packard software site, you will probably also want to download the H.P. Copier Software as well as Visioneer's PaperPort OCR & Image fileing software and Corel's "PhotoPaint". These programs will also work when installed using the following procedure. Alternately, if you have the CD shipped with your Scanjet 5p you can create the floppy's for these programs from the CD.
 * SYM416.ADD (20412 bytes) Included with Danmar Systems Imagescan/2 also available from http://www.symbios.com or ftp://ftp.symbios.com
 * OS2ASPI.DMD (11096 bytes) Included with most later versions of Warp 4.0
 * VW32S.SYS (18064 bytes) Included with most later versions of Warp 4.0
 * SCANOS2.SYS (12170 bytes) Included with Danmar Systems ImageScan/2 and I believe its also included in J3 Computer Technology's CopyShop/2.
 * SJIIX.SYS (7534 bytes) Included with Deskscan ver 2.3.1a
 * W32S125.EXE (1270034 bytes) This is WIN32S ver 1.25.142. There are many versions of this software available on the Internet, but this EXACT version is the only one I was able to make work.
 * MSVCRT20.DLL (244736 bytes) Available on the Internet as part of: TWAIN32.ZIP (348665 bytes) ftp://ftp.twain.org/pub/users/twain/WIN32S. When you "Unzip" make sure you read the instructions, so that you get the correct file.
 * HPSM32S.DLL (6144 bytes) These five files are included in the SJ120EN.EXE archive
 * HPSJ16.DLL (3872 bytes) you download from www.hp.com.
 * CTL3DV2.DLL (21648 bytes)
 * CTL3D.DLL (20976 bytes)
 * CTL3D32.DLL (26112 bytes)
 * SJ120EN.EXE (4605024 bytes) Available from www.hp.com

INSTALLATION of WIN32S
(1) If you have Imagescan/2 or Copyshop/2 install as per the included instructions and verify that all options of these programs work correctly. I use Imagescan/2 and can only assume Copyshop/2 has the same drivers. This should result in the following three lines being added to you're OS2 config.sys. If you are not using either of these pieces of software you will have to manually add these entries and the associated files. BASEDEV=OS2ASPI.DMD /ALL BASEDEV=SYM416.ADD (If you don't use the Symbios SCSI card included with your 5p then you should already have a SCSI driver entry and won't need this line) DEVICE= X:\XXX\SCANOS2.SYS (2) Install WIN32S125.EXE ver 1.25.142. Copy this file to a empty directory and run the file, this will explode all the necessary files to the directory. Then go to the program manager for WINOS2 and under "File" choose run and enter the drive and directory and the filename WIN32S125. Example: C:\TEMP\WIN32S125

NOTE: If when installing the WIN32S's you get the following error message "Bindtime Error, cannot load KRNL386.EXE" You probably have windows (W.F.W.G,Win 3.11, or Win95) installed in the same partition and set up in a "Dual Boot" configuration. You will have to remove (Temporarly) any references to any of these directories in you're Autoexec.bat file. After you have WIN32S's installed and have verified that they work (by running the "Freecell" program) you can restore the references to you're windows directories in the autoexec.bat file.

Next you need to verify you have the correct version of WIN32S's (there are about 15 different versions available from different sources on the net). To do this, go to an OS2 "Full Screen" and change to the directory c:\os2\mdos\winos2\win32s and type E WIN32S.EXE. Choose "continue loading" when the warning window appears. You will then have a view of the WIN32S.EXE file (Mostly in hex!) about 2/3 of the way down the screen and on the left you should see the version number (1.25.142) hopefully. Assuming you have the correct version of WIN32S's installed proceed to the next step.

(3) Now you need to edit your OS2 config.sys file: Find the entry: C:\OS2\MDOS\VW32S.SYS Change it to: C:\OS2\MDOS\VW32S.SYS 1,25,110 (the "110" is NOT a typing error!) Save the config.sys file & reboot.

(4) Open to the WINOS2 Program Manager. There should now be a folder labeled "Win32 Applications". Open this folder and run the "Freecell" program. If "Freecell" opens and runs properly, you have WIN32S's sucessfuly installed on you're system and can proceed with the installation of Deskscan II and its associated software.

(5) The next steps assume you have created the floppy's for the software you desire to install. If you havn't done so you need to create them now.

INSTALLING DESKSCAN II ver 2.3.1a
(6) Open the WINOS2 Program Manager and select "File" and then "Run". Insert the floppy for Deskscan II ver 2.3.1a, Disk #1 in Drive A: and type : a:setup Then "Enter". The H.P. Deskscan software assumes you want to install Paperport, and askes for these disks first. You don't need to do this, you can bypass Paperport and go on to the installation of Deskscan, if you prefer. I suggest you go ahead and install Paperport first as the install program attempts to do. It will eventually take you to the "Installation Settings" screen. You need to choose the "Modify" option and tell it you are using a "4p Scanner" and also select "use existing compatible SCSI card" when prompted. Follow the instructions to complete the installation. Choose "Restart windows" when prompted, to complete the installation.

NOW THE "WHOLE WORLD" STARTS TO FALL APART!
If you were lucky the machine restarted windows, and possibly did a "Screen Calibration" and then took you to the WINOS2 Program Manager where you now have two additional folders, one for Deskscan II and one for Paperport. If you weren't lucky, the machine probably "Hung" in which case you nees to do a "Cold Reboot", Reset!! This should bring you're system back up in OS2 and allow you to Open the WINOS2 Program Manager and you should have the two additional Program folders described above. Open the Deskscan folder and "double click" on the Deskscan icon. WINOS2 will attempt to bring up Deskscan but will fail giving you a "MSVCRT20.DLL error". To correct this you need to replace the file: C:\OS2\MDOS\WINOS2\SYSTEM\MSVCRT20.DLL (250368 bytes) with:
 * MSVCRT20.DLL (244736 bytes)

Now attempt to run Deskscan again. This time you should get an Error saying "Can't find HPSM32S.DLL. You need to copy this file into the C:\OS2\MDOS\WINOS2\SYSTEM directory. Now, attempt once again, to run Deskscan! This time you should get an Error saying "Can't find HPSJ16.DLL. You also need to copy this file to the C:\OS2\MDOS\WINOS2\SYSTEM directory. Now once again attempt to run Deskscan and you should get an error "Can't find a Scanner". This is corrected by entering the location of SJIIX.SYS in the "PROPERTIES  WINOS2   SESSION   WIN OS2 properties   DOS_DEVICE". Example: D:\DESKSCAN\SJIIX.SYS

This same entry needs to be made in the H.P.Copy software if you elected to install it. Now when you run Deskscan it should finally come up correctly and work correctly (thinking it is connected to a Scanjet 4p).

NOTE #1: When installing the previous three files and attempting to restart Deskscan, the system might "Hang" necessitating Cold Reboots. (Seems to depend on the system, the weather, and the position of the moon!)

NOTE #2: After you have installed the above files successfully and when you attempt to start Deskscan (and more commonly when you try to start Paperport) you might get a "Winshield Error" there are two different ways of resolving this problem.

A: In the WIN/OS2 Settings section of the properties folder, turn off the "Win Clipboard" for all programs associated with H.P. scanning.

B: Alternatively you can modify the line in the [Boot] section of the WINOS2 System.ini file from: drivers = mmsystem.dll winmm16.dll paprport to: drivers = mmsystem.dll winmm16.dll

MAKING PAPERPORT WORK!
In the WINOS2 program Manager, open the Paperport group, and click on the Paperport Icon. Paperport will attempt to start and you might (or might not) get a "Winshield Error (see note #2 above) and then possibly a "Screen profiling" test program. If you do, follow the instructions and continue to attempt to run Paperport. You might get the message "Paperport not complete  Restart windows to complete". Go ahead and restart windows and see if you get the same message again. If you do, you then need to exit WINOS2 and run the program PPUPDATE.BAT in the C:\OS2\MDOS\WINOS2 directory. Now go back to the WINOS2 Program Manager and run Paperport again. Now you will probably get a "Sharing Violation on Drive C:" error message. You now need to install/replace the following three files in the C:\OS2\MDOS\WINOS2\SYSTEM directory with: Lastly you need to change to the directory where you installed Paperport, find the file MAXOPTS.INI which is located in PAPRPORT\DATA directory and verify that the line in the [config] section "Set Twain Enabled = 1" is set to "1" and not "0"!
 * CTL3DV2.DLL (21648 bytes)
 * CTL3D32.DLL (26112 bytes)
 * CTL3D.DLL (20976 bytes)

(12) Now, Finally! Deskscan 3.2.1a, Paperport, H.P.Copy Utility, and Corel "Photo Paint" should all work!!

NOW FOR THE BAD NEWS!
I've been unsuccessful at finding the solution to make "TWAIN32" work in WINOS2 with Paperport & Corel "Photo Paint"! This is not an unsolvable problem, I just not been able to come up with the right combination to make it work. If you try to "Select" or "Acquire" a scanning device from either of these programs you will get a "Sharing Violation". This is not a big problem as you have the ability to "Import" images in both programs as well as the ability to print to Paperport as an option under the Printer Setup options in the "File" heading in the program.

For those of you knowledgeable on Twain and Twunking, WINOS2 "locks" the file TWUNK_32.EXE, which in turns gives the WINOS2 "Sharing Error"! This can be observed by viewing the TWAIN.LOG file. I'm suspicious of the MSVCRT20.DLL of which there are at least 12 different versions available on the net and its common knowledge some of these contain "bugs". I would appreciate anyone who has any information, ideas, rumors, suggestion, or outright lies (I'm desperate!)to communicate what information they have on this subject to me.