IF YES MESSAGE "Your monitor has a CGA display. Lotus Organizer requires a VGA display to operate. Please upgrade your hardware before installing the product."
IF YES GOTO Big_End
EQUALI $(VIDEOMODE) EGA
IF NO GOTO No_EGA
QUESTION "Your monitor has an EGA display. Lotus Organizer requires a VGA display to operate. If you install Lotus Organizer on this system, you may experience some display problems. Do you want to continue installation?"
IF NO GOTO Big_End
:No_EGA
#endif ; install or workstn
#if INSTALL.INF or WORKSTN.INF
WINDOW ORGTESTCLASS
IF NO GOTO No_Threadz_Utils
MESSAGE Lotus Organizer Test program is running. You need to exit Install, close the Organizer Test program and restart Install.
GOTO Big_End
:No_Threadz_Utils
WINDOW TZ_PORG
IF NO GOTO Local_Org_Not_Running
MESSAGE Lotus Organizer is already running. You need to exit Install, close the Organizer and restart Install.
GOTO Big_End
:Local_Org_Not_Running
WINDOW TZ_FIXCLASS
IF NO GOTO Local_Utils_Not_Running
MESSAGE Lotus Organizer Utilities is running. You need to exit Install, close the Organizer Utilities and restart Install.
GOTO Big_End
:Local_Utils_Not_Running
#endif ; install or workstation
#ifn SETUPDIR.INF
RESETDISKS
DISKS "Lotus Organizer Install Disk"
DISKS "Lotus Organizer Administration Disk"
RESETFILES
#endif
;
; Set the source directory for installation
;
#if INSTALL.INF
SETSRCDIR $(STARTDIR)\Organize
$(USERDIR) = GETPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize C:\Organize\Organize.Exe
$(DESTDIR) = LOOSEFILE $(USERDIR)
#elseif WORKSTN.INF
SETSRCDIR $(STARTDIR)
; Install Version DLL if needed for windows 3.0
EXIST $(SYSDIR)\Ver.DLL
IF NO FILES $(SRCDIR)\Ver.DLL $(SYSDIR)\Ver.DLL -R 0 1 "Version DLL"
; NOTE: Remove the ;;;; from next line to disable copying of the Organizer
; install program to local workstations during Workstation Install.
;;;; GOTO No_Local_Copy
;
; Ask about installing local or using public copy
;
INSTALLPUBLIC
IF NO GOTO Local_Copy
:No_Local_Copy
SETDESTDIR $(STARTDIR)
; Single-User
EQUAL "" ""
SAVE 0
; No Copy Workstn
EQUAL "" ""
SAVE 5
EXIST $(SRCDIR)\SchedEng.DLL
SAVE 1
GOTO Delete_Extra_Stuff
:Local_Copy
$(USERDIR) = GETPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize C:\Organize\Organize.Exe
$(DESTDIR) = LOOSEFILE $(USERDIR)
GOTO Get_Dirs
#else
SETSRCDIR $(STARTDIR)
SETDESTDIR $(STARTDIR)
#endif
#if INSTALL.INF
;
; Ask about installing standalone or scheduling copy
;
INSTALLSINGLE
#elseif WORKSTN.INF
EXIST $(SRCDIR)\SchedEng.DLL
#else
EQUAL "" ""
#endif
SAVE 0
;
; Get the user to modify the source and destination directories if necessary
;
:Get_Dirs
#if INSTALL.INF
EXIST $(SRCDIR)\Organize.EYe
#elseif WORKSTN.INF
EXIST $(SRCDIR)\Organize.Exe
#endif
#if INSTALL.INF or WORKSTN.INF
IF NO GETSRCDIR Is the Lotus Organizer Install disk in the directory shown below?\rIf Yes, choose OK.\rIf No, retype the path and choose OK.\r\rTo stop installation, choose Cancel or press ESC.
#endif
#if INSTALL.INF or WORKSTN.INF
:Get_Dest_Dir
GETDESTDIR Type the path where you want to install Lotus Organizer.\r\rChoose OK to continue installation, or Cancel to exit.
INSTR $(DESTDIR) A:
IF NO GOTO B_Check
GOTO Floppy_Question
:B_Check
INSTR $(DESTDIR) B:
IF NO GOTO Done_Floppy_Check
:Floppy_Question
QUESTION Are you sure you want to install Lotus Organizer in $(DESTDIR)?
IF NO GOTO Get_Dirs
:Done_Floppy_Check
EQUALI $(SRCDIR) $(DESTDIR)
IF NO GOTO Check_Extend
MESSAGE Cannot copy files to the Install Disk.
GOTO Get_Dirs
#endif ; install workstation
:Check_Extend
#if INSTALL.INF or WORKSTN.INF
;
; Do this here to check if destination is valid
;
MKDIR $(DESTDIR)
EXIST $(DESTDIR)
IF YES GOTO Finish_Check_Extend
MESSAGE The installation path you entered is not valid or the directory could not be created. Please try again.
GOTO Get_Dest_Dir
:Finish_Check_Extend
#endif
#if UNINSTAL.INF
:Get_Uninstall_Dir
GETSRCDIR Is Lotus Organizer located in the directory shown below?\rIf Yes, choose OK.\rIf No, retype the path and choose OK.\r\rIf you do not want to remove Lotus Organizer from your hard drive,\rchoose Cancel or press ESC.
EXIST $(SRCDIR)\Organize.exe
IF YES GOTO Uninstall_Dir_OK
MESSAGE The directory $(SRCDIR) does not contain Lotus Organizer. Please specify a valid Organizer installation directory.
GOTO Get_Uninstall_Dir
:Uninstall_Dir_OK
SETDESTDIR $(SRCDIR)
#endif
; Free space
#if INSTALL.INF or WORKSTN.INF
EXIST $(DESTDIR)\Organize.Exe
SAVE 4
IF NO GOTO Sched_and_Space_Check
;
; If there was, ask them if they want to delete it
;
QUESTION A previous version of the Organizer exists. Do you want to delete it?
IF YES GOTO Attempt_Old_Delete
MESSAGE Installation terminated
GOTO Big_End
:Attempt_Old_Delete
;
; Attempt to delete Orgdll.dll and then check to see it went, if not
; then another workstation may have this file open, so tell the user
MESSAGE Another user on your network is currently running Lotus Organizer. You need to exit Install, make sure that no one else is running the Organizer, then restart Install.
GOTO Big_End
#endif
:Sched_and_Space_Check
:Delete_Extra_Stuff
#if INSTALL.INF or WORKSTN.INF
;
; Delete any random files we previously put in the wrong place
; If they don't seem to have cc:Mail installed, don't even bother trying to
; update their VIM dlls
EQUAL $(PATHDIR) ""
IF YES GOTO No_VIM_Updates
#endif
#if WORKSTN.INF
; Make sure userdir is set to where we want updvim.bat to go
SETUSERDIR $(PATHDIR)
#endif
#if INSTALL.INF or WORKSTN.INF
; Scheduling?
RESTORE 1
IF NO GOTO No_VIM_Updates
RESETFILES
#else
GOTO No_VIM_Updates
#endif
:Check_ccmail_Path
#if INSTALL.INF
GETPATH Install checks the versions of your cc:Mail DLLs (Dynamic Link Libraries) to ensure that the Organizer and cc:Mail can work together correctly. Make sure that the path to your current cc:Mail program is correctly listed below.
#elseif WORKSTN.INF
GETPATH To ensure that the Organizer and cc:Mail work together correctly, Install must access your cc:Mail program directory. Make sure that this is the correct path.
#endif
#if INSTALL.INF or WORKSTN.INF
; They want to skip this
IF NO GOTO No_VIM_Updates
EXIST $(PATHDIR)
IF YES GOTO Continue_VIM_Updates
MESSAGE The directory you entered does not exist. Please specify a valid path to your cc:Mail program directory.
GOTO Check_ccmail_Path
:Continue_VIM_Updates
OPENSTATUS Lotus Organizer Installation
; If any DLLs in the existing directory are newer, then don't copy any DLLs
; But, if any are missing, then update all of them
STATUS Checking VIM DLL Versions
#endif
; This is so we don't have to copy MailDLL directory for workstn install
QUESTION You must update the cc:Mail DLLs and your post office may need to be shut down to do this.\r\rIf your post office is not shutdown, you can\r Exit Install, shut down the post office and\r restart Install\ror\r Continue Install, and if instructed to,\r shut down the post office later and\r run UPDVIM.BAT in the\r $(USERDIR) directory\r to update the DLLs.\r\rContinue the install?
IF NO GOTO Big_End
#elseif WORKSTN.INF
ISLOCALDRIVE $(PATHDIR)
IF NO MESSAGE The cc:Mail DLLs in the network directory $(PATHDIR) are out of date. Please contact your administrator to update them to the newest versions.
IF YES MESSAGE You must update the cc:Mail DLLs and cc:Mail must not be running to do this. If cc:Mail is currently running, switch to it and exit cc:Mail before continuing the installation.
IF NO MESSAGE Unable to update the cc:Mail DLLs. After you finish the installation, be sure to shutdown your postoffice and run\r$(USERDIR)\UPDVIM.BAT.
QUESTION Lotus Organizer requires that your cc:Mail program path be in your path. Install will modify your AUTOEXEC.BAT file to add the cc:Mail program path to your PATH statement, or you can make the change yourself. Do you want Install to modify your AUTOEXEC.BAT file?
IF NO GOTO Path_Not_Modified
INSERTPATH $(PATHDIR)
; Has path been changed?
IF YES MESSAGE The PATH in your AUTOEXEC.BAT file has been modified to include the cc:Mail Program Path. You must reboot your workstation before running Lotus Organizer in order for Scheduling features to work properly.
GOTO Skip_PATH_Stuff
:Path_Not_Modified
MESSAGE After you complete the Lotus Organizer installation, remember to add your cc:Mail program path ($(PATHDIR)) to the PATH statement in your autoexec.bat file and reboot your workstation.
:Skip_PATH_Stuff
#endif
#if INSTALL.INF or SETUPDIR.INF
;;
;; Do Scheduling Specific stuff
;;
; Assume diradmin was not run
EQUAL "" "NOT"
SAVE 2
RESTORE 1
IF NO GOTO Skip_Diradmin_Stuff
;
; Do DIRADMIN stuff
;
QUESTION The SETUPDIR utility adds scheduling information to the cc:Mail Directory. You must run this utility to allow users to schedule meetings with the Organizer. Do you want to set up the directory now?
#endif
:Diradmin_Start
#if SETUPDIR.INF
; Make sure we can find diradmin.exe. $(USERDIR) won't be set.
SETUSERDIR $(STARTDIR)\Admin
:Check_Diradmin
EXIST $(USERDIR)\diradmin.exe
IF YES GOTO Got_Admin_Dir
$(USERDIR) = GETDIR Type the path to your Organizer administration tools. This is the directory that you specified for the administration tools when you installed Organizer on the server.
WRITEPROFILE $(WINDIR)\Win.Ini Windows Load "$(USERDIR)"
:No_Ini_Clean
#endif ;Uninstall
:Finish_Install
STATUSPERCENT 100
CLOSESTATUS
#if INSTALL.INF
:End_Of_Install
RESTORE 0
IF SERVER GOTO End_Of_Install2
#endif
#if INSTALL.INF or WORKSTN.INF
; Standalone
MESSAGE Installation of Lotus Organizer 1.1 was successful.\r\rThank you for purchasing Lotus Organizer.
GOTO Big_End
#endif
#if INSTALL.INF
;
; If DIRADMIN was run, then different message
;
:End_Of_Install2
RESTORE 1
IF YES GOTO End_Of_Install_w_Sched
; Server, no Scheduling
MESSAGE Installation of Lotus Organizer 1.1 was successful. Run WORKSTN.EXE to install the Organizer on individual workstations.
GOTO Big_End
:End_Of_Install_w_Sched
RESTORE 2
; Scheduling, no Diradmin
IF NO MESSAGE Installation of Lotus Organizer 1.1 on the server was successful. Run SETUPDIR or DIRADMIN to add scheduling information to the cc:Mail Directory. See the Administrator's Guide for instructions.\r\rSee the README.TXT file for recent information about Lotus Organizer 1.1.
IF YES MESSAGE Installation of Lotus Organizer 1.1 on the server was successful. Run WORKSTN.EXE to install Lotus Organizer on individual workstations.\r\rSee the README.TXT file for recent information about Lotus Organizer 1.1.
#elseif UNINSTAL.INF
MESSAGE Lotus Organizer has been removed from your system. If you removed it from a network drive, or SHARE is loaded, the $(SRCDIR) directory and the UNINSTAL.EXE program still exist. These can be deleted using the Windows File Manager.
#elseif SETUPDIR.INF
:End_Of_Setupdir
MESSAGE Installation of Lotus Organizer 1.1 scheduling information into the directory was successful.\r\rSee the README.TXT file for recent information about Lotus Organizer 1.1.
GOTO Big_End
:Setupdir_Not_Run
MESSAGE The directory has not been updated. Please run SETUPDIR again if you would like to update your cc:Mail directory.