INSTALLATION NOTES FOR PMVIEW 2000
==================================

PMView 2000 is a new product. You can install it and use it in parallel
with an older version of PMView. However, you MUST NOT install PMView 
2000 in the same directory. If you want to keep the existing version 
of PMView, you must install PMView 2000 in a different directory. If 
you want to upgrade your current version and you wish to use the same 
directory, then you should FIRST uninstall the existing version and 
then install PMView 2000.

IMPORTANT: There seems to be a problem with some file system drivers
(VFAT) and PMView's installer. If the installer won't start and you're 
using either EXT2.IFS, FAT32.IFS, or VFAT-OS2.IFS make sure to deactivate 
these during installation.

Installation from harddisk
--------------------------
Create a temporary directory and copy (or unzip) all the 
files to that directory. Then run INSTALL.EXE

UNZIP NOTE: Some of the older UNZIP programs for OS/2 are not working
correctly. If you get an error during unpacking of the files, or
if you get an error during the installation claiming one of the
files is corrupt, please try using this unpacker:

ftp://ftp.cdrom.com/pub/os2/archiver/unzip532.exe


Installation from diskette
--------------------------
STEP 1: Create the installation diskettes. (Skip to step 2 if PMView 
   was delivered to you on diskettes).

   Create a temporary directory on your harddisk and unzip the PMView 
   ZIP archive. Format three diskettes and give them the volume labels 
   PMVIEW1, PMVIEW2, and PMVIEW3 respectively. Copy the files PMVIEW1.@,
   PMVIEW2.@, and PMVIEW3.@ to the disk with the corresponding label.
   Finally copy all other files to the disk labelled PMVIEW1.

   NOTE: It is essential that you label the disks PMVIEW1, PMVIEW2,
   and PMVIEW3. If you fail to do this, the installer will not accept 
   the disks and keep asking you for "PMView - Diskette 1".

STEP 2: Install PMView

    Insert the first PMView diskette (PMVIEW1) and run INSTALL.EXE


Installation to a network
-------------------------
Create a temporary directory and copy (or unzip) all the 
files to that directory. Then run INSTALL.EXE
Note that the Installer will not let the SOM DLL path point 
to a network drive. You need to specify a local drive. After
installing, please read README.TXT for more advice on
network installation issues.

Installation error EPFIE602
---------------------------
The user may receive the message "EPFIE602 An error occurred while 
attempting to create a directory. Ensure that you have write access 
to a drive with adequate disk space."

This error may occur if INSTALL.EXE cannot distinguish hard drives on 
the workstation. In this case you need to set the EPFINSTDIR environment
variable before running INSTALL.EXE.

For instance, if OS/2 is installed on the D: drive you should set
EPFINSTDIR as follows:

SET EPFINSTDIR=D:\OS2\SYSTEM
  
NB! If you don't have enough disk space on this drive you may use another
drive and/or directory

Installation error EPFIE610
---------------------------

There seems to be a problem with some file system drivers (VFAT) and 
PMView's installer. If the installer gives you error EPFIE610 and 
you're using either EXT2.IFS, FAT32.IFS, VFAT-OS2.IPF or some other 
add-on file system, make sure to deactivate these during installation 
of PMView.


LAST RESORT IN CASE THE INSTALLER WON'T START
=============================================

Under special circumstances you may run into the problem that the installer
(INSTALL.EXE) refuses to start. In this case you can use the REXX script below
to install PMView 'manually'. PLease edit the two installation directories 
before running the script.

----------- Cut here ----------- PMV2INST.CMD ----------- Cut here -----------
/* PMV2INST.CMD */

/* REXX program for 'last resort' installation of PMView 2000 */

Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
Call SysLoadFuncs

/* Make sure that these two directories already exist. They will not
   be created by this REXX script! */

PMViewDIR = 'C:\PMVIEW20'
SOMObjDIR = 'C:\PMVIEW20' /* This must NOT be a network/removable drive! */

/* Create sub-directories */
'mkdir '||PMViewDIR||'\filters'
'mkdir '||PMViewDIR||'\dragdrop'

/* Create the PMView folder on the desktop */
Call SysCreateObject 'WPFolder','PMView 2000','<WP_DESKTOP>','OBJECTID=<PMVIEW20FOLDER>','U'

/* Delete and deregister the PMVDDrop object (just in case it is installed already) */
Call SysDestroyObject '<PMVDDrop>'
call SysDeregisterObjectClass 'PMVDDrop'

/* Unpack the files in PMVIEW1.@ */
'unpack pmview1.@ '||PMViewDIR||' /N:pmv20uic.msg'
'unpack pmview1.@ '||PMViewDIR||' /N:pmv4.msg'
'unpack pmview1.@ '||PMViewDIR||' /N:pmv4c01e.msg'
'unpack pmview1.@ '||PMViewDIR||' /N:pmv20htk.dll'
'unpack pmview1.@ '||SOMObjDIR||' /N:pmvddrop.dll'
'unpack pmview1.@ '||PMViewDIR||' /N:makedefv.exe'
'unpack pmview1.@ '||PMViewDIR||' /N:register.exe'
'unpack pmview1.@ '||PMViewDIR||' /N:register.dat'
'unpack pmview1.@ '||PMViewDIR||' /N:lxlite.exe'
'unpack pmview1.@ '||PMViewDIR||' /N:lxlite.cfg'

/* Unpack unlock.exe and run it with 'pmview.exe' as parameter. This  */
/* will unlock a running copy of PMView and lets us update pmview.exe */
/* without requiring a reboot                                         */
'unpack pmview1.@ '||PMViewDIR||' /N:unlock.exe'
'if exist '||PMViewDIR||'\pmview.exe '||PMViewDIR||'\unlock.exe '||PMViewDIR||'\pmview.exe'

/* Unpack pmview.exe in PMVIEW2.@ */
'unpack pmview2.@ '||PMViewDIR||' /N:pmview.exe'

/* Unpack the files in PMVIEW3.@ */
'unpack pmview3.@ '||PMViewDIR||' /N:pmview.hlp'
'unpack pmview3.@ '||PMViewDIR||' /N:readme.txt'
'unpack pmview3.@ '||PMViewDIR||' /N:trouble.txt'
'unpack pmview3.@ '||PMViewDIR||' /N:twain.txt'
'unpack pmview3.@ '||PMViewDIR||' /N:order.txt'
'unpack pmview3.@ '||PMViewDIR||' /N:ordform.txt'
'unpack pmview3.@ '||PMViewDIR||'\dragdrop /N:instdd.cmd'
'unpack pmview3.@ '||PMViewDIR||'\dragdrop /N:uninstdd.cmd'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour3.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour4.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour5.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour6.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour7.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:contour_.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:diagonal.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi3.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi4.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi5.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi6.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossi7.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:embossin.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien3.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien4.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien5.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien6.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradien7.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:gradient.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:high_pa1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:high_pa2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:high_pa3.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:high_pas.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:horizon1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:horizont.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:laplaci1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:laplaci2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:laplacia.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:low_pas1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:low_pas2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:low_pas3.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:low_pas4.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:low_pass.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:prewitt1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:prewitt_.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:sobel_ho.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:sobel_ve.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:vertica1.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:vertica2.flt'
'unpack pmview3.@ '||PMViewDIR||'\filters /N:vertical.flt'

/* Store the program location in OS2.INI */
call Sysini 'USER', 'PMView 2.0', 'Installer\ProgramPath', PMViewDIR

/* Create a PMView program object in the PMView folder */
Call SysCreateObject 'WPProgram','PMView 2000','<PMVIEW20FOLDER>','EXENAME='||PMViewDIR||'\pmview.exe;STARTUPDIR='||PMViewDIR||';OBJECTID=<PMVIEW20>;CCVIEW=YES','U'

/* Create an object for the readme.txt file */
Call SysCreateObject 'WPShadow','readme.txt','<PMVIEW20FOLDER>','SHADOWID='||PMViewDIR||'\readme.txt;OBJECTID=<PMVIEW20README>','U'

/* Create an object for the trouble.txt file */
Call SysCreateObject 'WPShadow','trouble.txt','<PMVIEW20FOLDER>','SHADOWID='||PMViewDIR||'\trouble.txt;OBJECTID=<PMVIEW20TROUBLESHOOTING>','U'

/* Create an object for the twain.txt file */
Call SysCreateObject 'WPShadow','twain.txt','<PMVIEW20FOLDER>','SHADOWID='||PMViewDIR||'\twain.txt;OBJECTID=<PMVIEW20TWAININFO>','U'

/* Register and create the PMVDDrop object with WPS */
call SysRegisterObjectClass 'PMVDDrop', SOMObjDir||'\pmvddrop.dll'
Call SysCreateObject 'PMVDDrop','PMVDDrop','<WP_DESKTOP>','NOTVISIBLE=YES;OBJECTID=<PMVDDrop>','U'

/* Set PMView as default viewer */
PMViewDir||'\makedefv.exe'

/*  Run register.exe */
PMViewDir||'\register.exe /Q'

/* Run lxlite.exe to compress the executable */
PMViewDir||'\lxlite.exe /YUR /C- /I- '||PMViewDir||'\pmview.exe'

/* Delete files no longer needed */
'del '||PMViewDIR||'\lxlite.*'
'del '||PMViewDIR||'\register.*'
'del '||PMViewDIR||'\unlock.exe'

/* Done! */

return
/* End of PMV2INST.CMD */
