Build instructions for PGP Plugin for Groupwise
-----------------------------------------------

1. Build requirements

   The following third-party tools are needed

   - Inprise Delphi version 4

   - Installshield 3.0

2. Preparing the build environment

   - Install Delphi 4.

   - Copy the files from lib\delphi2 directory are ole2.dcu and 
     oleauto.dcu to parent directory (lib)

   - Install installshield.

   - Create clients\standaloneinstall\data directory.

   - Create 5552, 6052, 5555, and 6055 directories under 
     clients\standaloneinstall\data directory.

   - Create clients\standaloneinstall\data\uninstall\tempstuff 
     directory.

3. Pre-building wpcom32.pas component

    - Select Component | Install Component

    - Select "Install Into New Package" tab.

    - Click "Browse" on the "Unit File Directory" and then find 
      wpcom32.pas
    
    - Specify name for the package. 

    Note: If the package is already present then delete it first 
          using Project | Options.

4. Building and compiling the code

   - Select File | Open Project and select pgpicon.dpr

   - Select Project | Options and select Directories/Conditionals tab. 

   - Set "Output Directory" to clients\standaloneinstall\data\5552
     and set "Conditional Defines" to GW52

   - Select Project | Build (you may get an error that is ok)

   - Select Project | Compile

   - Select "Output Directory" to clients\standaloneinstall\data\6052
     and set "Conditional Defines" to PGP6;GW52

   - Select Project | Build and then Project | Compile

   - Select "Output Directory" to clients\standaloneinstall\data\5555
     and set "Conditional Defines" to blank

   - Select Project | Build and then Project | Compile

   - Select "Output Directory" to clients\standaloneinstall\data\6055
     and set "Conditional Defines" to PGP6

   - Select Project | Build and then Project | Compile.

   Repeat all above steps for pgpgw32.dpr and sendtph.dpr

5. Building the installer

   - Copy readme.txt from the "clients" directory to the 
     clients\stanaloneinstall\data directory.

   - cd to clients\standaloneinstall\uninstall directory.

   - Edit build.bat and change installshield path to where installshield
     is installed.

   - Run build.bat (if it doesn't build everything run it one more
     time)

   - Start ExeBuilder

   - Press Browse and select clients\standaloneinstall\uninstall\disk1
     as source directory.

   - Check "Compress" and "Create a 32 bit self extracting EXE" options.

   - Save uninstaller executable in clients\standaloneinstall\data
     and rename "setupex.exe" to "uninstall.exe"

   - cd to clients\standaloneinstall directory. Edit build.bat file 
     and change installshield path to where installshield is 
     installed.

   - Run build.bat file. This will create Disk 1, 2 and 3 in the
     clients\standaloneinstall\data diretcory.

   - Create "SingleInstall" directory under clients\standaloneinstall
     directory. Copy Disk 1, 2, and 3 from data directory to the
     clients\standaloneinstall\SingleInstall directory.

   - Start ExeBuilder.

   - Select clients\standaloneinstall\SingleInstall directory.

   - Check "Compress" and "Create a 32 bit self-extracting EXE" options.

   - Select next and set the Target Directory where you need self 
     extracting exe. 

   - Press "finish" button. It will create setupex.exe in the target
     diretcory. Rename it to GWplugin.exe

End of build instructions.

