home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_1_1994.iso / 00059 / s / install.inf < prev    next >
Text File  |  1993-08-26  |  64KB  |  1,918 lines

  1. ;
  2. ;                       Product Installation System Script
  3. ;
  4. ;                               Lotus Organizer 1.1
  5. ;
  6. ;
  7. ;                       (C) Lotus Development Corporation 1991-93
  8. ;
  9. ;       Jointly developed by Lotus Development Corporation and Threadz Limited
  10. ;
  11. ;
  12. ;       Release Date:           7th May 1993
  13.  
  14.     SYSMESSAGE 1 "Copying %s"
  15.     SYSMESSAGE 2 "Please insert %s into drive %c."
  16.     SYSMESSAGE 3 "Source file %s not found. Continue?"
  17.     SYSMESSAGE 4 "%s already exists. Overwrite?"
  18.     SYSMESSAGE 5 "Error creating %s"
  19.     SYSMESSAGE 6 "Deleting %s"
  20.     SYSMESSAGE 7 "Renaming %s"
  21.     SYSMESSAGE 8 "Cancel"
  22.     SYSMESSAGE 9 "Cannot find/load %s, continue?"
  23.     SYSMESSAGE 10 "Cannot initialize %s, install halted"
  24.     SYSMESSAGE 11 "Cannot query %s for version, install halted"
  25.     SYSMESSAGE 12 "Cannot terminate %s, install halted"
  26.     SYSMESSAGE 13 "Cannot find/load source library %s, install halted"
  27.     SYSMESSAGE 14 "Bad schedule engine library, install halted"
  28.     SYSMESSAGE 15 "Bad organizer network library, install halted"
  29.     SYSMESSAGE 16 "%s does not have calendar information in directory services, continue?"
  30.     SYSMESSAGE 17 "Unable to obtain server connection, cannot copy up %s, continue?"
  31.     SYSMESSAGE 18 "Cannot find target file %s, copy and continue?"
  32.     SYSMESSAGE 19 "Decompression error for file %s (error %d), continue?"
  33.     SYSMESSAGE 20 "Invalid or missing version info for source file %s, continue?
  34.     SYSMESSAGE 21 "Unable to load VER.DLL."
  35.     SYSMESSAGE 22 "Unable to add %s to PATH in AUTOEXEC.BAT file."
  36.     SYSMESSAGE 23 "Unable to load library %s [%d]"
  37.  
  38. ; SAVE/RESTORE values
  39. ;    0 = TRUE if single user (FALSE if Server install)
  40. ;    1 = TRUE if Scheduling installed
  41. ;    2 = TRUE if SETUPDIR was run
  42. ;    3 = TRUE if we needed to update DLLs and couldn't
  43. ;    4 = TRUE if an old version of organizer existed
  44. ;    5 = TRUE if we are doing workstn install without copying
  45.  
  46. #if INSTALL.INF
  47.     CAPTION         Lotus Organizer 1.1 Installation
  48. #elseif UNINSTAL.INF
  49.     CAPTION         Lotus Organizer 1.1 Un-Installation
  50. #elseif WORKSTN.INF
  51.     CAPTION         Lotus Organizer 1.1 Workstation Installation
  52. #elseif SETUPDIR.INF
  53.     CAPTION        Lotus Organizer 1.1 Directory Installation
  54. #else
  55.     GOTO Big_End
  56. #endif
  57.  
  58.  
  59. #if INSTALL.INF or WORKSTN.INF or SETUPDIR.INF
  60. ;
  61. ; Display the copyright notice
  62. ;
  63.     DIALOG WELCOME
  64. #endif
  65.  
  66. ;
  67. ; Initialize some variables
  68. ;
  69. #if SETUPDIR.INF
  70. ; Set the DIRADMIN question to TRUE always 
  71.     EQUAL "" ""
  72.     SAVE 2
  73.     SETDESTDIR      $(STARTDIR)
  74.     SETORGDBDIR    $(DESTDIR)\Users
  75. ; Guess about where maildll's are
  76.     GOTO Diradmin_Start
  77. #else
  78.     EQUAL "" "NOT"
  79.     SAVE 0
  80.     SAVE 1
  81.     SAVE 2
  82.     SAVE 3
  83.     SAVE 4
  84.     SAVE 5
  85. #endif
  86.  
  87.  
  88. #if INSTALL.INF or WORKSTN.INF
  89.  
  90.     EQUALI          $(VIDEOMODE)    CGA
  91.     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."
  92.     IF YES          GOTO Big_End
  93.  
  94.     EQUALI          $(VIDEOMODE)    EGA
  95.     IF NO                   GOTO No_EGA
  96.  
  97.     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?"
  98.     IF NO                   GOTO Big_End
  99.  
  100. :No_EGA
  101.  
  102. #endif ; install or workstn
  103.  
  104.  
  105. #if INSTALL.INF or WORKSTN.INF
  106.  
  107.     WINDOW          ORGTESTCLASS
  108.     IF NO         GOTO No_Threadz_Utils
  109.  
  110.     MESSAGE         Lotus Organizer Test program is running. You need to exit Install, close the Organizer Test program and restart Install.
  111.     GOTO            Big_End
  112. :No_Threadz_Utils
  113.  
  114.  
  115.     WINDOW          TZ_PORG
  116.     IF NO           GOTO Local_Org_Not_Running
  117.  
  118.     MESSAGE         Lotus Organizer is already running. You need to exit Install, close the Organizer and restart Install.
  119.     GOTO            Big_End
  120. :Local_Org_Not_Running
  121.  
  122.     WINDOW          TZ_FIXCLASS
  123.     IF NO                   GOTO Local_Utils_Not_Running
  124.  
  125.     MESSAGE         Lotus Organizer Utilities is running. You need to exit Install, close the Organizer Utilities and restart Install.
  126.     GOTO                    Big_End
  127. :Local_Utils_Not_Running
  128.  
  129. #endif ; install or workstation
  130.  
  131.  
  132. #ifn SETUPDIR.INF
  133.     RESETDISKS
  134.     DISKS   "Lotus Organizer Install Disk"
  135.     DISKS   "Lotus Organizer Administration Disk"
  136.  
  137.     RESETFILES
  138. #endif
  139.  
  140. ;
  141. ; Set the source directory for installation
  142. ;
  143. #if INSTALL.INF
  144.     SETSRCDIR       $(STARTDIR)\Organize
  145.     $(USERDIR) = GETPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize C:\Organize\Organize.Exe
  146.     $(DESTDIR) = LOOSEFILE $(USERDIR)
  147.  
  148. #elseif WORKSTN.INF
  149.     SETSRCDIR       $(STARTDIR)
  150.  
  151. ; Install Version DLL if needed for windows 3.0
  152.     EXIST $(SYSDIR)\Ver.DLL
  153.     IF NO FILES $(SRCDIR)\Ver.DLL        $(SYSDIR)\Ver.DLL    -R 0 1 "Version DLL"
  154.  
  155.  
  156. ; NOTE: Remove the ;;;; from next line to disable copying of the Organizer 
  157. ;    install program to local workstations during Workstation Install.
  158. ;;;;    GOTO No_Local_Copy
  159.  
  160. ;
  161. ; Ask about installing local or using public copy
  162. ;
  163.     INSTALLPUBLIC
  164.     IF NO  GOTO Local_Copy
  165.  
  166. :No_Local_Copy
  167.  
  168.     SETDESTDIR      $(STARTDIR)
  169.  
  170. ; Single-User
  171.     EQUAL "" ""
  172.     SAVE 0
  173. ; No Copy Workstn
  174.     EQUAL "" ""
  175.     SAVE 5
  176.     EXIST $(SRCDIR)\SchedEng.DLL
  177.     SAVE 1
  178.     GOTO Delete_Extra_Stuff
  179.  
  180. :Local_Copy
  181.     $(USERDIR) = GETPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize C:\Organize\Organize.Exe
  182.     $(DESTDIR) = LOOSEFILE $(USERDIR)
  183.  
  184.     GOTO Get_Dirs
  185.  
  186. #else
  187.     SETSRCDIR       $(STARTDIR)
  188.     SETDESTDIR      $(STARTDIR)
  189. #endif
  190.  
  191.  
  192. #if INSTALL.INF
  193.  
  194. ;
  195. ; Ask about installing standalone or scheduling copy
  196. ;
  197.     INSTALLSINGLE
  198.  
  199. #elseif WORKSTN.INF
  200.     EXIST $(SRCDIR)\SchedEng.DLL
  201. #else
  202.     EQUAL "" ""
  203. #endif
  204.     SAVE 0
  205.  
  206.  
  207. ;
  208. ; Get the user to modify the source and destination directories if necessary
  209. ;
  210. :Get_Dirs
  211.  
  212. #if INSTALL.INF
  213.     EXIST $(SRCDIR)\Organize.EYe
  214. #elseif WORKSTN.INF
  215.     EXIST $(SRCDIR)\Organize.Exe
  216. #endif
  217.  
  218. #if INSTALL.INF or WORKSTN.INF
  219.  
  220.     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.
  221.  
  222. #endif
  223. #if INSTALL.INF or WORKSTN.INF
  224. :Get_Dest_Dir
  225.  
  226.     GETDESTDIR Type the path where you want to install Lotus Organizer.\r\rChoose OK to continue installation, or Cancel to exit.
  227.  
  228.     INSTR $(DESTDIR) A:
  229.     IF NO GOTO B_Check
  230.     GOTO Floppy_Question
  231.  
  232. :B_Check
  233.     INSTR   $(DESTDIR) B:
  234.     IF NO GOTO Done_Floppy_Check
  235.  
  236. :Floppy_Question
  237.     QUESTION Are you sure you want to install Lotus Organizer in $(DESTDIR)?
  238.     IF NO GOTO Get_Dirs
  239.  
  240. :Done_Floppy_Check
  241.     EQUALI $(SRCDIR) $(DESTDIR)
  242.     IF NO GOTO Check_Extend
  243.  
  244.     MESSAGE Cannot copy files to the Install Disk.
  245.     GOTO Get_Dirs
  246. #endif ; install workstation
  247.  
  248. :Check_Extend
  249. #if INSTALL.INF or WORKSTN.INF
  250. ;
  251. ; Do this here to check if destination is valid
  252. ;
  253.     MKDIR $(DESTDIR)
  254.     EXIST $(DESTDIR)
  255.     IF YES GOTO Finish_Check_Extend
  256.     MESSAGE The installation path you entered is not valid or the directory could not be created.  Please try again.
  257.     GOTO Get_Dest_Dir
  258. :Finish_Check_Extend
  259. #endif
  260.  
  261.  
  262.  
  263. #if UNINSTAL.INF
  264.  
  265. :Get_Uninstall_Dir
  266.     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.
  267.  
  268.     EXIST $(SRCDIR)\Organize.exe
  269.     IF YES GOTO Uninstall_Dir_OK
  270.     MESSAGE The directory $(SRCDIR) does not contain Lotus Organizer.  Please specify a valid Organizer installation directory.
  271.     GOTO Get_Uninstall_Dir
  272.  
  273. :Uninstall_Dir_OK
  274.     SETDESTDIR $(SRCDIR)
  275.  
  276. #endif
  277.  
  278.  
  279. ; Free space
  280.  
  281. #if INSTALL.INF or WORKSTN.INF
  282.  
  283.     EXIST $(DESTDIR)\Organize.Exe
  284.     SAVE 4
  285.     IF NO GOTO Sched_and_Space_Check
  286. ;
  287. ; If there was, ask them if they want to delete it
  288. ;
  289.     QUESTION A previous version of the Organizer exists. Do you want to delete it?
  290.     IF YES GOTO Attempt_Old_Delete
  291.     MESSAGE Installation terminated
  292.     GOTO Big_End
  293.  
  294. :Attempt_Old_Delete
  295. ;
  296. ;       Attempt to delete Orgdll.dll and then check to see it went, if not 
  297. ;       then another workstation may have this file open, so tell the user
  298. ;
  299.  
  300.     DELETE 1 $(DESTDIR)\OrgDll.Dll $(DESTDIR)\OrgDll.Dll -R 1 "Previous Organizer Program"
  301.     EXIST $(DESTDIR)\OrgDll.Dll
  302.     IF NO GOTO Sched_and_Space_Check
  303.  
  304.     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.
  305.     GOTO Big_End
  306.  
  307. #endif
  308.  
  309.  
  310. :Sched_and_Space_Check
  311. :Delete_Extra_Stuff
  312. #if INSTALL.INF or WORKSTN.INF
  313. ; Delete any random files we previously put in the wrong place
  314. ;
  315.  
  316.     SETINPUTDIR $(WINDIR)
  317. :Delete_PLT
  318.     DELETE 1 $(INPUTDIR)\Org0000.PLT $(INPUTDIR)\Org0000.PLT -R 1 "Previous Organizer Program"
  319.     DELETE 1 $(INPUTDIR)\Org0001.PLT $(INPUTDIR)\Org0001.PLT -R 1 "Previous Organizer Program"
  320.     DELETE 1 $(INPUTDIR)\Org0002.PLT $(INPUTDIR)\Org0002.PLT -R 1 "Previous Organizer Program"
  321.     DELETE 1 $(INPUTDIR)\Org0003.PLT $(INPUTDIR)\Org0003.PLT -R 1 "Previous Organizer Program"
  322.     DELETE 1 $(INPUTDIR)\Org0004.PLT $(INPUTDIR)\Org0004.PLT -R 1 "Previous Organizer Program"
  323.     DELETE 1 $(INPUTDIR)\Org0005.PLT $(INPUTDIR)\Org0005.PLT -R 1 "Previous Organizer Program"
  324.     DELETE 1 $(INPUTDIR)\Org0006.PLT $(INPUTDIR)\Org0006.PLT -R 1 "Previous Organizer Program"
  325.     DELETE 1 $(INPUTDIR)\Org0007.PLT $(INPUTDIR)\Org0007.PLT -R 1 "Previous Organizer Program"
  326.     DELETE 1 $(INPUTDIR)\Org0008.PLT $(INPUTDIR)\Org0008.PLT -R 1 "Previous Organizer Program"
  327.     DELETE 1 $(INPUTDIR)\Org0009.PLT $(INPUTDIR)\Org0009.PLT -R 1 "Previous Organizer Program"
  328.     DELETE 1 $(INPUTDIR)\Org0010.PLT $(INPUTDIR)\Org0010.PLT -R 1 "Previous Organizer Program"
  329.     DELETE 1 $(INPUTDIR)\Org0011.PLT $(INPUTDIR)\Org0011.PLT -R 1 "Previous Organizer Program"
  330.     DELETE 1 $(INPUTDIR)\Org0012.PLT $(INPUTDIR)\Org0012.PLT -R 1 "Previous Organizer Program"
  331.     DELETE 1 $(INPUTDIR)\Org0013.PLT $(INPUTDIR)\Org0013.PLT -R 1 "Previous Organizer Program"
  332.     DELETE 1 $(INPUTDIR)\Org0014.PLT $(INPUTDIR)\Org0014.PLT -R 1 "Previous Organizer Program"
  333.     DELETE 1 $(INPUTDIR)\Org0015.PLT $(INPUTDIR)\Org0015.PLT -R 1 "Previous Organizer Program"
  334.     DELETE 1 $(INPUTDIR)\Org0016.PLT $(INPUTDIR)\Org0016.PLT -R 1 "Previous Organizer Program"
  335.     DELETE 1 $(INPUTDIR)\Org0017.PLT $(INPUTDIR)\Org0017.PLT -R 1 "Previous Organizer Program"
  336.     DELETE 1 $(INPUTDIR)\Org0018.PLT $(INPUTDIR)\Org0018.PLT -R 1 "Previous Organizer Program"
  337.     DELETE 1 $(INPUTDIR)\Org0019.PLT $(INPUTDIR)\Org0019.PLT -R 1 "Previous Organizer Program"
  338.     DELETE 1 $(INPUTDIR)\Org0020.PLT $(INPUTDIR)\Org0020.PLT -R 1 "Previous Organizer Program"
  339.     DELETE 1 $(INPUTDIR)\Org0021.PLT $(INPUTDIR)\Org0021.PLT -R 1 "Previous Organizer Program"
  340.     DELETE 1 $(INPUTDIR)\Org0022.PLT $(INPUTDIR)\Org0022.PLT -R 1 "Previous Organizer Program"
  341.     DELETE 1 $(INPUTDIR)\Org0023.PLT $(INPUTDIR)\Org0023.PLT -R 1 "Previous Organizer Program"
  342.     DELETE 1 $(INPUTDIR)\Org0024.PLT $(INPUTDIR)\Org0024.PLT -R 1 "Previous Organizer Program"
  343.     DELETE 1 $(INPUTDIR)\Org0025.PLT $(INPUTDIR)\Org0025.PLT -R 1 "Previous Organizer Program"
  344.     DELETE 1 $(INPUTDIR)\Org0026.PLT $(INPUTDIR)\Org0026.PLT -R 1 "Previous Organizer Program"
  345.     DELETE 1 $(INPUTDIR)\Org0027.PLT $(INPUTDIR)\Org0027.PLT -R 1 "Previous Organizer Program"
  346.     DELETE 1 $(INPUTDIR)\Org0028.PLT $(INPUTDIR)\Org0028.PLT -R 1 "Previous Organizer Program"
  347.     DELETE 1 $(INPUTDIR)\Org0029.PLT $(INPUTDIR)\Org0029.PLT -R 1 "Previous Organizer Program"
  348.     DELETE 1 $(INPUTDIR)\Org0030.PLT $(INPUTDIR)\Org0030.PLT -R 1 "Previous Organizer Program"
  349.     
  350. ; Cheat to save space
  351.     EQUALI $(INPUTDIR) $(DESTDIR)\Printing
  352.     IF YES GOTO Not_In_Printdir
  353.     SETINPUTDIR $(DESTDIR)\Printing
  354.     GOTO Delete_PLT
  355.     
  356. :Not_In_Printdir
  357.     EXIST $(DESTDIR)\Printing
  358.     IF YES RMDIR $(DESTDIR)\Printing
  359.  
  360.  
  361. ; Jump to bottom if workstn no copy
  362.     RESTORE 5
  363.     IF YES GOTO No_Old_Organizer
  364. #endif
  365.  
  366. :Real_Space_Check
  367. #if INSTALL.INF
  368. ;
  369. ; See if they want to install scheduling
  370. ;
  371.     RESTORE 0
  372.     IF SERVER GOTO Ask_Question
  373.     EQUAL "" "Not"
  374.     GOTO Done_Asking
  375. :Ask_Question
  376. ; If smartsuite, then never do scheduling stuff.
  377.     EXIST $(STARTDIR)\smart.txt
  378.     IF NO GOTO Really_Ask_Question
  379.     EQUAL "" "NOT"
  380.     GOTO Done_Asking
  381. :Really_Ask_Question
  382.     QUESTION Do you want to install Organizer's group scheduling features? (cc:Mail for Windows 1.1 or higher is required.)
  383. #elseif WORKSTN.INF
  384.     EXIST $(SRCDIR)\SchedEng.DLL
  385. #else
  386.     EQUAL "" ""
  387. #endif
  388. :Done_Asking
  389.     SAVE 1
  390.  
  391. #if INSTALL.INF or WORKSTN.INF
  392. ; If scheduling, need lots more space
  393.     RESTORE 1 
  394.     IF YES GOTO Sched_Space_Check
  395.     NEEDSPACE $(DESTDIR) 4000000 "%ld bytes are available on drive %c:. Lotus Organizer requires %ld bytes of disk space. Please select another drive."
  396.     IF NO GOTO Get_Dirs
  397.     GOTO End_Space_Check
  398.  
  399. :Sched_Space_Check
  400. #if INSTALL.INF
  401.     NEEDSPACE $(DESTDIR) 7400000 "%ld bytes are available on drive %c:. Lotus Organizer requires %ld bytes of disk space. Please select another drive."
  402.     IF NO GOTO Get_Dirs
  403. #elseif WORKSTN.INF
  404.     NEEDSPACE $(DESTDIR) 5000000 "%ld bytes are available on drive %c:. Lotus Organizer requires %ld bytes of disk space. Please select another drive."
  405.     IF NO GOTO Get_Dirs
  406. #endif
  407. :End_Space_Check
  408.  
  409. #if INSTALL.INF or WORKSTN.INF
  410. ;
  411. ; Build the destination directories
  412. ;
  413.     MKDIR $(DESTDIR)
  414.     MKDIR $(DESTDIR)\SAMPLE
  415.     MKDIR $(DESTDIR)\ORGFILES
  416.  
  417. #endif ; install or workstation
  418.  
  419.  
  420.  
  421. #if INSTALL.INF or WORKSTN.INF
  422. ; Remove old licensing file
  423.     DELETE 3 $(DESTDIR)\Organizer.v10 $(DESTDIR)\Organizer.v10 -R 1 "Previous Organizer Program"
  424. #endif
  425.  
  426. #if INSTALL.INF
  427. ; Install Version DLL
  428.     RESTORE 0
  429.     IF STANDALONE GOTO Do_StandAlone_Ver
  430.     FILES $(SRCDIR)\Ver.DLL        $(DESTDIR)\Ver.DLL    -R 0 1 "Version DLL"
  431. :Do_StandAlone_Ver
  432.     EXIST $(WINDIR)\Ver.Dll
  433.     IF NO FILES $(SRCDIR)\Ver.DLL        $(WINDIR)\Ver.DLL    -R 0 1 "Version DLL"
  434. #elseif UNINSTAL.INF
  435.     FILES $(SRCDIR)\Ver.DLL        $(DESTDIR)\Ver.DLL    -R 0 1 "Version DLL"
  436. #endif
  437.  
  438. #if INSTALL.INF
  439.  
  440.     FILES   $(SRCDIR)\*.plt                                                         $(DESTDIR)\*.plt                                                                -R 1 1 "Paper Layout Files"
  441.  
  442.  
  443. #elseif WORKSTN.INF
  444.  
  445.     FILES $(SRCDIR)\*.PLT   $(DESTDIR)\*.PLT         -R 0 1 "Paper Layout Files"
  446.  
  447. #elseif UNINSTAL.INF
  448. ; Delete from old place just in case
  449.     FILES   $(SRCDIR)\Printing\*.plt                                                         $(SRCDIR)\Printing\*.plt                                                                -R 1 1 "Paper Layout Files"
  450.  
  451. ; Ditto
  452.     FILES $(WINDIR)\*.plt                                            $(WINDIR)\*.plt                                                 -R 1 1 "Paper Layouts"
  453.     FILES   $(SRCDIR)\*.plt                                                         $(SRCDIR)\*.plt                                                                -R 1 1 "Paper Layout Files"
  454. #endif
  455. :End_Of_Print_Files
  456.  
  457. #if UNINSTAL.INF
  458.     OPENSTATUS    Lotus Organizer Un-Installation
  459. #endif
  460.  
  461.  
  462.  
  463. #if INSTALL.INF
  464. ;
  465. ; Create Directories only if Scheduling install
  466. ;    
  467.  
  468. ; Scheduling being installed?
  469.     RESTORE 1
  470.     IF YES MKDIR $(DESTDIR)\MAILDLLS
  471. #endif
  472.  
  473.  
  474. #if WORKSTN.INF or UNINSTAL.INF
  475.  
  476. ; Just copy the drivers that are needed for this user (the ones currently 
  477. ; installed.)
  478.  
  479.     FILES $(SRCDIR)\OrgNet.DLL $(DESTDIR)\OrgNet.DLL     +R 0 1 "Network Driver"
  480.  
  481.     EXIST $(SRCDIR)\NWCORE.DLL
  482.     IF YES FILES $(SRCDIR)\NW*.DLL                  $(DESTDIR)\NW*.DLL                                              +R 1 1 "Novell 286/386 Netware driver"
  483. ; Copy portable.dll so they can take organizer off lan
  484.     FILES $(SRCDIR)\Portable.DLL           $(DESTDIR)\Portable.DLL                                   -R 0 1 "Portable Lan Driver"
  485.  
  486. #elseif INSTALL.INF
  487.     FILES $(SRCDIR)\Portable\Portable.DLL           $(DESTDIR)\Portable.DLL                                   -R 0 1 "Portable Lan Driver"
  488. ;  If we are doing scheduling install, then we'll copy OrgNet later. 
  489. ;  Otherwise, install the single user driver.
  490.     RESTORE 0
  491.     IF STANDALONE GOTO Do_Single_User
  492.     RESTORE 1
  493.     IF YES GOTO Dont_Do_Single_User
  494.  
  495. :Do_Single_User
  496.     FILES $(SRCDIR)\None\None.DLL                                                      $(DESTDIR)\OrgNet.DLL                                   +R 0 1 "Single User Driver"
  497.  
  498. :Dont_Do_Single_User
  499. #endif
  500.  
  501.  
  502. #if UNINSTAL.INF
  503. ;
  504. ; Determine which extra files need deleting
  505. ;
  506.     FILES $(WINDIR)\orgicn.cfg                                                      $(WINDIR)\orgicn.cfg                                            -R 1 1 "SmartIcons Configuration"
  507.  
  508.     EXIST $(WINDIR)\Organize.Ini
  509.     IF YES QUESTION Do you want to delete your Organizer initialization file (Organize.Ini)?
  510.  
  511.     IF YES FILES   $(WINDIR)\organize.ini                                          $(WINDIR)\Organize.Ini                                  -R 1 1 "Organizer Defaults"
  512.  
  513. ; Delete these cause they might be left around from previous versions
  514.     FILES   $(DESTDIR)\Organize.V11                                         $(DESTDIR)\Organize.V11                                 -R 1 1 "Licence Information"
  515.  
  516.     FILES   $(DESTDIR)\Organize.V10                                         $(DESTDIR)\Organize.V10                                 -R 1 1 "Licence Information"
  517.  
  518.     FILES $(SRCDIR)\NW*.DLL                  $(DESTDIR)\NW*.DLL                                              +R 1 1 "Novell 286/386 Netware driver"
  519.  
  520.     QUESTION Do you want to delete all files in the $(SRCDIR)\\ORGFILES directory (including all .ORG files)?
  521.     IF YES FILES $(SRCDIR)\ORGFILES\*.*                             $(SRCDIR)\ORGFILES\*.*                                  -R 1 1 "Data Files"
  522.  
  523.     EXIST $(SRCDIR)\USERS
  524.     IF NO GOTO Skip_Users_Directory
  525.     QUESTION Do you want to delete all files in the $(SRCDIR)\\USERS directory (including all .ORG files)?
  526.     IF YES FILES $(SRCDIR)\USERS\*.*                             $(SRCDIR)\ORGFILES\*.*                                  -R 1 1 "Data Files"
  527.  
  528. :Skip_Users_Directory
  529.  
  530. #endif ; uninstall
  531.  
  532. #if INSTALL.INF
  533. :Non_Network_Files
  534. ; Make sure the disk1.dsk file is copied so workstn install works
  535.     RESTORE 0
  536.     IF SERVER FILES $(STARTDIR)\Disk1.dsk                                   $(DESTDIR)\Disk1.dsk                                   -R 1 1 "Disk1"
  537. #elseif UNINSTAL.INF
  538.     FILES $(STARTDIR)\Disk1.dsk                                   $(DESTDIR)\Disk1.dsk                                   -R 1 1 "Disk1"    
  539. #endif
  540. #if INSTALL.INF or WORKSTN.INF or UNINSTAL.INF
  541.     FILES $(SRCDIR)\Organize.Exe                                            $(DESTDIR)\Organize.Exe                                         -R 1 1 "Lotus Organizer Program"
  542.     FILES $(SRCDIR)\OrgDll.Dll                                              $(DESTDIR)\OrgDll.Dll                                           -R 1 1 "Lotus Organizer Program"
  543.  
  544.     FILES $(SRCDIR)\TzDll.Dll                                                       $(DESTDIR)\TzDll.Dll                                                    -R 1 1 "Lotus Organizer Library"
  545.     FILES $(SRCDIR)\l1wnet.dll                                                      $(DESTDIR)\l1wnet.dll                                           -R 1 1 "Lotus Organizer Library"
  546.     FILES $(STARTDIR)\ivcw.dll                                                      $(DESTDIR)\ivcw.dll                                                     -R 1 1 "Lotus Organizer Library"
  547.     FILES $(SRCDIR)\OrgUtils.Exe                                            $(DESTDIR)\OrgUtils.Exe                                         -R 1 1 "Lotus Organizer Utilities"
  548.     FILES $(SRCDIR)\Organize.Ini                                            $(DESTDIR)\Organize.Ini                                         -R 1 1 "Lotus Organizer Defaults"
  549.     FILES $(STARTDIR)\Org_IR.DLL                                            $(DESTDIR)\Org_IR.DLL                                           -R 1 1 "Lotus Organizer Defaults"
  550.  
  551.     FILES $(SRCDIR)\ltsicn01.dll                                            $(DESTDIR)\ltsicn01.dll                                         -R 0 1 "SmartIcons Manager"
  552.     FILES $(SRCDIR)\orgicn8.dll                                             $(DESTDIR)\orgicn8.dll                                          -R 0 1 "8514 SmartIcons"
  553.     FILES $(SRCDIR)\orgicnv.dll                                             $(DESTDIR)\orgicnv.dll                                          -R 0 1 "VGA SmartIcons"
  554.     FILES $(SRCDIR)\orgicn.cfg                                                      $(DESTDIR)\orgicn.cfg                                           -R 1 1 "SmartIcons Configuration"
  555.  
  556.     FILES $(SRCDIR)\Organize.Hlp                                            $(DESTDIR)\Organize.Hlp                                         -R 1 1 "Help File"
  557.     FILES $(SRCDIR)\TZAFont.Dll                                             $(DESTDIR)\TZAFont.Dll                                          -R 0 1 "Font Files"
  558.     FILES $(SRCDIR)\TZBFont.Dll                                             $(DESTDIR)\TZBFont.Dll                                          -R 0 1 "Font Files"
  559. #endif 
  560.  
  561.  
  562. ; always install the Uninstall program except for Server install cause
  563. ; it's already there
  564. #if INSTALL.INF
  565. ; install from names on disk
  566.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\UnInstal.Exe                                         -R 1 1 "UnInstall Program"
  567.     FILES $(STARTDIR)\Install.Inf                                            $(DESTDIR)\Install.Inf                                         -R 1 1 "UnInstall Script"
  568. #elseif WORKSTN.INF
  569. ; install from names in install area
  570.     FILES $(STARTDIR)\UnInstal.Exe                                            $(DESTDIR)\UnInstal.Exe                                         -R 1 1 "UnInstall Program"
  571.     FILES $(STARTDIR)\Install.Inf                                            $(DESTDIR)\Install.Inf                                         -R 1 1 "UnInstall Script"
  572. #endif
  573.  
  574.  
  575. #if UNINSTAL.INF
  576.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\Workstn.Exe                                          -R 1 1 "Workstation Install Program"
  577.  
  578.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\Install.Bin                                          -R 0 1 "Workstation Install Program"
  579. #endif
  580.  
  581.  
  582. #if INSTALL.INF
  583.  
  584.     RESTORE 0
  585.     IF STANDALONE GOTO Skip_Install2_Set
  586.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\Workstn.Exe                                          -R 0 1 "Workstation Install Program"
  587.  
  588.     FILES $(STARTDIR)\UnArjw.Dll                                            $(DESTDIR)\UnArjw.Dll                                          -R 0 1 "Workstation Install Program"
  589.  
  590.     RESTORE 1
  591.     IF YES FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\SetupDir.Exe                                          -R 0 1 "Directory Install Program"
  592.  
  593. #elseif UNINSTAL.INF
  594.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\Workstn.Exe                                          -R 0 0 "Workstation Install Program"
  595.  
  596.     FILES $(STARTDIR)\Install.Bin                                            $(DESTDIR)\SetupDir.Exe                                          -R 0 1 "Directory Install Program"
  597.  
  598. #elseif WORKSTN.INF
  599.  
  600. ; Needed to run uninstal.exe
  601.     FILES $(STARTDIR)\UnArjw.Dll                                            $(DESTDIR)\UnArjw.Dll                                          -R 0 1 "Workstation Install Program"
  602.  
  603. #endif
  604. :Skip_Install2_Set
  605.  
  606. #if INSTALL.INF or WORKSTN.INF or UNINSTAL.INF
  607.  
  608.     FILES $(STARTDIR)\Readme.Txt                                            $(DESTDIR)\ReadMe.Txt                                           -R 0 1 "Release Notes"
  609.  
  610.     FILES $(STARTDIR)\Tips.Txt                                            $(DESTDIR)\Tips.Txt                                           -R 0 1 "Release Notes"
  611.  
  612. #endif
  613.  
  614. #if INSTALL.INF or WORKSTN.INF or UNINSTAL.INF
  615.  
  616. ;
  617. ; Sample files
  618. ;
  619.     FILES   $(SRCDIR)\SAMPLE\address.CSV                                          $(DESTDIR)\SAMPLE\address.CSV                                         -R 0 1 "Sample Files"
  620.  
  621.     FILES   $(SRCDIR)\SAMPLE\addrflds.CSV                                          $(DESTDIR)\SAMPLE\addrflds.CSV                                         -R 0 1 "Sample Files"
  622.  
  623.     FILES   $(SRCDIR)\SAMPLE\addrwp.CSV                                          $(DESTDIR)\SAMPLE\addrwp.CSV                                         -R 0 1 "Sample Files"
  624.  
  625.     FILES   $(SRCDIR)\SAMPLE\Almanac.Org                                          $(DESTDIR)\SAMPLE\Almanac.Org                                         -R 0 1 "Sample Files"
  626.     
  627.     FILES   $(SRCDIR)\SAMPLE\sample.BMP                                          $(DESTDIR)\SAMPLE\sample.BMP                                         -R 0 1 "Sample Files"
  628.  
  629.     FILES   $(SRCDIR)\SAMPLE\sample.ORG                                          $(DESTDIR)\SAMPLE\sample.ORG                                         -R 0 1 "Sample Files"
  630.  
  631.     FILES   $(SRCDIR)\SAMPLE\ABC.ORG                                          $(DESTDIR)\SAMPLE\ABC.ORG                                         -R 0 1 "Sample Files"
  632.  
  633.     FILES   $(SRCDIR)\SAMPLE\mailmrg.DOC                                          $(DESTDIR)\SAMPLE\mailmrg.DOC                                         -R 0 1 "Sample Files"
  634.  
  635.     FILES   $(SRCDIR)\SAMPLE\descript.SAM                                          $(DESTDIR)\SAMPLE\descript.SAM                                         -R 0 1 "Sample Files"
  636.  
  637.     FILES   $(SRCDIR)\SAMPLE\mailmrg.SAM                                          $(DESTDIR)\SAMPLE\mailmrg.SAM                                         -R 0 1 "Sample Files"
  638.  
  639.  
  640.     FILES   $(SRCDIR)\SAMPLE\Sample.WK3                                          $(DESTDIR)\SAMPLE\Sample.WK3                                         -R 0 1 "Sample Files"
  641.  
  642.     FILES   $(SRCDIR)\SAMPLE\layout.WMF                                          $(DESTDIR)\SAMPLE\layout.WMF                                         -R 0 1 "Sample Files"
  643.  
  644.     FILES   $(SRCDIR)\SAMPLE\Address.TXT                                          $(DESTDIR)\SAMPLE\Address.TXT                                         -R 0 1 "Sample Files"
  645.  
  646.     FILES   $(SRCDIR)\SAMPLE\MailMrg.WP                                           $(DESTDIR)\SAMPLE\MailMrg.WP                                          -R 0 1 "Sample Files"
  647.  
  648. #endif
  649.  
  650.  
  651. #if INSTALL.INF
  652. ; So that workstation install will work later when copying disk2 files.
  653. ; Was Scheduling installed?
  654.     RESTORE 1
  655.     IF YES FILES $(STARTDIR)\Disk2.dsk    $(DESTDIR)\Disk2.dsk    -R 1 2 "Disk2"
  656. #elseif UNINSTAL.INf
  657.     FILES $(STARTDIR)\Disk2.dsk    $(DESTDIR)\Disk2.dsk    -R 1 2 "Disk2"
  658. #endif
  659.  
  660.  
  661. #if INSTALL.INF
  662. ;
  663. ; No FILE commands should be before this, or if they are, the should not have
  664. ; first argument of 0.   Otherwise, user will have to swap disks unecessarily.
  665. ;
  666.  
  667. ; Doing Scheduling?
  668.     RESTORE 1
  669.     IF NO GOTO No_Network_Stuff
  670.  
  671. ;    FILES $(SRCDIR)\None\None.DLL                                   $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "No Network"
  672.  
  673.     FILES $(SRCDIR)\MSNet\MsNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "MS-NET or 100% compatible"
  674.     FILES $(SRCDIR)\MSNet\MsNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Banyan (MS-NET)"
  675.     FILES $(SRCDIR)\MSNet\MsNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Lan Manager 1.x or 2.0 Basic"
  676.     FILES $(SRCDIR)\LanMan\LanMan.DLL                       $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Lan Manager 2.0 Enhanced"
  677.     FILES $(SRCDIR)\MsNet\MsNet.DLL                       $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Lan Server 3.0"
  678.     FILES $(SRCDIR)\NetWare\NetWare.DLL                     $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Novell Netware 286/386"
  679.     FILES $(SRCDIR)\NetWare\NWBIND.DLL                         $(DESTDIR)\NWBIND.DLL                                              -R 16 2 "Novell Netware 286/386"
  680.     FILES $(SRCDIR)\NetWare\NWCONN.DLL                         $(DESTDIR)\NWCONN.DLL                                              -R 16 2 "Novell Netware 286/386"
  681.     FILES $(SRCDIR)\NetWare\NWCORE.DLL                         $(DESTDIR)\NWCORE.DLL                                              -R 16 2 "Novell Netware 286/386"
  682.     FILES $(SRCDIR)\NetWare\NWDIR.DLL                         $(DESTDIR)\NWDIR.DLL                                              -R 16 2 "Novell Netware 286/386"
  683.     FILES $(SRCDIR)\NetWare\NWMISC.DLL                         $(DESTDIR)\NWMISC.DLL                                              -R 16 2 "Novell Netware 286/386"
  684.     FILES $(SRCDIR)\NetWare\NWSERVER.DLL                         $(DESTDIR)\NWSERVER.DLL                                              -R 16 2 "Novell Netware 286/386"
  685.     FILES $(SRCDIR)\NetWare\NWWRKSTN.DLL                         $(DESTDIR)\NWWRKSTN.DLL                                              -R 16 2 "Novell Netware 286/386"
  686.     FILES $(SRCDIR)\MSNet\MSNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Novell Netware Lite"
  687.     FILES $(SRCDIR)\MSNet\MSNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "DEC 10Net"
  688.     FILES $(SRCDIR)\Pathwork\PathWork.DLL           $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Pathworks"
  689.     FILES $(SRCDIR)\MSNet\MSNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "IBM PC Lan"
  690.     FILES $(SRCDIR)\MSNet\MSNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "LANTastic"
  691.     FILES $(SRCDIR)\MSNet\MSNet.DLL                         $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Torus"
  692.     FILES $(SRCDIR)\Demo\Demo.DLL                                   $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Demo Lan"
  693.     FILES $(SRCDIR)\Portable\Portable.DLL           $(DESTDIR)\OrgNet.DLL                                   -R 16 2 "Portable Lan"
  694.  
  695.     CHOOSE 16 "Select which network driver you want to install"
  696. :No_Network_Stuff
  697. #endif
  698.  
  699. #if WORKSTN.INF
  700. ; Don't copy these if they weren't installed.
  701.  
  702.     EXIST $(SRCDIR)\SchedEng.Dll
  703.     IF NO GOTO Skip_SchedEng
  704. #endif
  705.  
  706. #if UNINSTAL.INF
  707. ; Leftover from previous version    
  708.     FILES $(SRCDIR)\SchedEng.Sys $(DESTDIR)\SchedEng.Sys -R 1 2 "Scheduling Engine"
  709. #endif
  710.  
  711.  
  712. #if INSTALL.INF or WORKSTN.INF
  713.  
  714. ; Scheduling?
  715.     RESTORE 1
  716.     IF NO GOTO Skip_SchedEng
  717. #endif
  718. #if INSTALL.INF or WORKSTN.INF or UNINSTAL.INF
  719. ; Scheduling Engine
  720.     FILES $(SRCDIR)\SchedEng.Dll $(DESTDIR)\SchedEng.Dll    -R 1 2 "Scheduling Engine"
  721.     FILES $(SRCDIR)\SchedEng.ri $(DESTDIR)\SchedEng.ri    -R 1 2 "Scheduling Engine"
  722. #endif
  723. #if INSTALL.INF or UNINSTAL.INF
  724. ; VIM files
  725.     FILES $(SRCDIR)\MailDLLs\CharSet.Dll    $(DESTDIR)\MailDLLs\CharSet.Dll     -R 1 2 "VIM Libraries"
  726.     FILES $(SRCDIR)\MailDLLs\MailEng.Dll    $(DESTDIR)\MailDLLs\MailEng.Dll     -R 1 2 "VIM Libraries"
  727.     FILES $(SRCDIR)\MailDLLs\MemMan.Dll    $(DESTDIR)\MailDLLs\MemMan.Dll      -R 1 2 "VIM Libraries"
  728.     FILES $(SRCDIR)\MailDLLs\VIM.Dll    $(DESTDIR)\MailDLLs\VIM.Dll         -R 1 2 "VIM Libraries"
  729.     FILES $(SRCDIR)\MailDLLs\CCEDIT.Dll    $(DESTDIR)\MailDLLs\CCEDIT.Dll         -R 1 2 "VIM Libraries"
  730.     FILES $(SRCDIR)\MailDLLs\CCUTIL.Dll    $(DESTDIR)\MailDLLs\CCUTIL.Dll         -R 1 2 "VIM Libraries"
  731.     FILES $(SRCDIR)\MailDLLs\CCSMI.Dll    $(DESTDIR)\MailDLLs\CCSMI.Dll         -R 1 2 "VIM Libraries"
  732.     FILES $(SRCDIR)\MailDLLs\CDVIM.Dll    $(DESTDIR)\MailDLLs\CDVIM.Dll         -R 1 2 "VIM Libraries"
  733.     FILES $(SRCDIR)\MailDLLs\SMI.Dll    $(DESTDIR)\MailDLLs\SMI.Dll         -R 1 2 "VIM Libraries"
  734.  
  735. #endif
  736. :Skip_SchedEng
  737.  
  738.  
  739. #if INSTALL.INF
  740. ;
  741. ; Ask user where to put users directory
  742. ;
  743.     RESTORE 1
  744.     IF NO GOTO Skip_UserDir_Stuff
  745.  
  746. :UserDir_Again
  747.     SETORGDBDIR $(DESTDIR)\Users
  748.     $(ORGDBDIR) = GETDIR Type the path where the users' Organizer (.ORG) files will be stored.
  749.     IF NO GOTO Big_End
  750.     MKDIR $(ORGDBDIR)
  751.     EXIST $(ORGDBDIR)
  752.     IF NO MESSAGE Directory $(ORGDBDIR) does not exist or could not be created.  Please try again.
  753.  
  754.     IF NO GOTO UserDir_Again
  755.  
  756. :Skip_UserDir_Stuff
  757. #endif
  758.  
  759.  
  760. ;
  761. ; Copy administrator type stuff.
  762. ;
  763. #if INSTALL.INF
  764.  
  765.     RESTORE 1
  766.     IF NO GOTO Skip_Admin_Stuff
  767.  
  768. :Do_Admin_Dir
  769.     SETUSERDIR $(DESTDIR)\Admin
  770.     $(USERDIR) = GETDIR Where do you wish to install the Organizer administration tools (DIRADMIN, SRVADMIN, AGENT, PWDADMIN)?
  771.     IF NO GOTO Big_End
  772.     
  773.     MKDIR $(USERDIR)
  774.     EXIST $(USERDIR)
  775.     IF NO MESSAGE Directory $(USERDIR) does not exist or could not be created.  Please try again.
  776.     IF NO GOTO Do_Admin_Dir
  777.  
  778. #endif
  779. #if INSTALL.INF
  780.     FILES   $(SRCDIR)\SrvAdmin.exe  $(USERDIR)\DirAdmin.exe -R 1 2 "Directory Administration"
  781.     FILES     $(SRCDIR)\diradmin.pif    $(WINDIR)\diradmin.pif -R 0 2 "Directory Administration"
  782.     FILES   $(SRCDIR)\OrgAdmin.ri    $(USERDIR)\OrgAdmin.ri -R 1 2 "Directory Administration"
  783.     FILES   $(SRCDIR)\SrvAdmin.exe  $(USERDIR)\SrvAdmin.exe -R 1 2 "Server Administration"
  784.     FILES   $(SRCDIR)\SrvAdmin.exe  $(USERDIR)\PwdAdmin.exe -R 1 2 "Password Administration"
  785.     FILES   $(SRCDIR)\Agent.exe     $(USERDIR)\Agent.exe -R 1 2 "Scheduling Agent"
  786.     FILES   $(SRCDIR)\Agent.ri    $(USERDIR)\Agent.ri -R 1 2 "Scheduling Agent"
  787.     FILES   $(SRCDIR)\VIMMsg.ri     $(USERDIR)\VIMMsg.ri -R 1 2 "Scheduling Agent"
  788.  
  789. :Skip_Admin_Stuff
  790. #elseif UNINSTAL.INF
  791. ; These could by anywhere, but we'll guess that they are in Admin directory
  792.     FILES   $(SRCDIR)\SrvAdmin.exe  $(DESTDIR)\Admin\DirAdmin.exe -R 1 2 "Directory Administration"
  793.     FILES     $(SRCDIR)\diradmin.pif    $(WINDIR)\diradmin.pif -R 0 2 "Directory Administration"
  794.     FILES   $(SRCDIR)\diradmin.log     $(DESTDIR)\Admin\diradmin.log -R 1 2 "Directory Administration"
  795.     FILES   $(SRCDIR)\diradmin.err     $(DESTDIR)\Admin\diradmin.err -R 1 2 "Directory Administration"
  796.     FILES   $(SRCDIR)\OrgAdmin.ri    $(DESTDIR)\Admin\OrgAdmin.ri -R 1 2 "Directory Administration"
  797.     FILES   $(SRCDIR)\SrvAdmin.exe  $(DESTDIR)\Admin\SrvAdmin.exe -R 1 2 "Server Administration"
  798.     FILES   $(SRCDIR)\PwdAdmin.exe  $(DESTDIR)\Admin\PwdAdmin.exe -R 1 2 "Password Administration"
  799.     FILES   $(SRCDIR)\Agent.exe     $(DESTDIR)\Admin\Agent.exe -R 1 2 "Scheduling Agent"
  800.     FILES   $(SRCDIR)\Agent.ri    $(DESTDIR)\Admin\Agent.ri -R 1 2 "Scheduling Agent"
  801.     FILES   $(SRCDIR)\VIMMsg.ri     $(DESTDIR)\Admin\VIMMsg.ri -R 1 2 "Scheduling Agent"
  802.  
  803. #endif
  804.  
  805. #if UNINSTAL.INF
  806. ;
  807. ; Delete UNINSTAL.exe last in case they hit exit before finishing
  808. ;
  809.     FILES $(STARTDIR)\UnInstal.Exe                                            $(DESTDIR)\UnInstal.Exe                                         -R 1 1 "UnInstall Program"
  810.     FILES $(STARTDIR)\Install.Inf                                            $(DESTDIR)\Install.Inf                                         -R 1 1 "UnInstall Script"
  811.     FILES $(STARTDIR)\UnArjw.Dll                                            $(DESTDIR)\UnArjw.Dll                                          -R 0 0 "Workstation Install Program"
  812.  
  813. #endif
  814.  
  815. ;
  816. ;; ALL FILES COMMANDS ABOVE THIS;;
  817. ;
  818.  
  819. #if INSTALL.INF or WORKSTN.INF
  820.     OPENSTATUS      Lotus Organizer Installation
  821. #endif
  822.  
  823. ;
  824. ; Check to see if there was an old version of Lotus Organizer around
  825. ; Use a different file then the one we used way up above because we deleted
  826. ; that one.
  827. #if INSTALL.INF or WORKSTN.INF
  828.     EXIST $(DESTDIR)\Organize.Exe
  829. #else
  830.     EQUAL "" ""
  831. #endif
  832.     IF NO GOTO No_Old_Organizer
  833.  
  834. ;
  835. ; Delete the old version of the software
  836. ;
  837. :Delete_Old
  838.     DELETEFILES
  839.  
  840. :No_Old_Organizer
  841.  
  842. ;
  843. ; Perform the installation
  844. ;
  845.  
  846. #if INSTALL.INF
  847. ; we serialize only when doing main install
  848. ;    
  849.     SERIALIZE $(STARTDIR)\Org_ir.Dll
  850. #endif
  851.  
  852.  
  853. #ifn UNINSTAL.INF
  854.     EXPANDFILES
  855.  
  856. #endif
  857.  
  858. #if INSTALL.INF or UNINSTAL.INF or WORKSTN.INF
  859.  
  860.     STATUSPERCENT 100
  861.     CLOSESTATUS
  862.  
  863. #endif
  864.  
  865. ;
  866. ; Do this here because we've now copied the files to disk
  867. ;
  868. :Do_VIM_Things
  869.  
  870. #if INSTALL.INF or WORKSTN.INF
  871.  
  872. ; Copy VIM and mailengine DLL's if appropriate
  873. ;
  874.     $(PATHDIR) = GETPROFILE $(WINDIR)\WIN.INI "cc:Mail" ProgramPath ""
  875. #else
  876.     GOTO No_VIM_Updates
  877. #endif
  878. #if WORKSTN.INF
  879. ; If they don't seem to have cc:Mail installed, don't even bother trying to 
  880. ; update their VIM dlls
  881.     EQUAL $(PATHDIR) ""
  882.     IF YES GOTO No_VIM_Updates
  883. #endif
  884.  
  885. #if WORKSTN.INF
  886. ; Make sure userdir is set to where we want updvim.bat to go
  887.     SETUSERDIR $(PATHDIR)
  888. #endif
  889.  
  890. #if INSTALL.INF or WORKSTN.INF
  891. ; Scheduling?
  892.     RESTORE 1
  893.     IF NO GOTO No_VIM_Updates
  894.  
  895.     RESETFILES
  896. #else
  897.     GOTO No_VIM_Updates
  898. #endif
  899.  
  900. :Check_ccmail_Path
  901. #if INSTALL.INF
  902.     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.
  903. #elseif WORKSTN.INF
  904.     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.
  905. #endif
  906.  
  907. #if INSTALL.INF or WORKSTN.INF
  908.     
  909. ; They want to skip this
  910.     IF NO GOTO No_VIM_Updates
  911.  
  912.     EXIST $(PATHDIR)
  913.     IF YES GOTO Continue_VIM_Updates
  914.     MESSAGE The directory you entered does not exist.  Please specify a valid path to your cc:Mail program directory.
  915.     GOTO Check_ccmail_Path
  916. :Continue_VIM_Updates
  917.  
  918.     OPENSTATUS      Lotus Organizer Installation
  919.  
  920. ; If any DLLs in the existing directory are newer, then don't copy any DLLs
  921. ; But, if any are missing, then update all of them
  922.  
  923.     STATUS Checking VIM DLL Versions
  924. #endif
  925.  
  926. ; This is so we don't have to copy MailDLL directory for workstn install
  927. #if INSTALL.INF
  928.     SETINPUTDIR    $(DESTDIR)
  929. #elseif WORKSTN.INF
  930.     SETINPUTDIR    $(SRCDIR)
  931. #endif
  932.  
  933. #if INSTALL.INF or WORKSTN.INF    
  934. ; INPUTDIR must be set before this
  935.  
  936.     STATUSPERCENT 0
  937.     NEWERDLL2 $(PATHDIR)\MAILENG.DLL $(INPUTDIR)\MailDLLs\MAILENG.DLL
  938.     IF YES GOTO No_VIM_Updates
  939.     STATUSPERCENT 5
  940.     NEWERDLL2 $(PATHDIR)\MEMMAN.DLL    $(INPUTDIR)\MailDLLs\MEMMAN.DLL
  941.     IF YES GOTO No_VIM_Updates
  942.     STATUSPERCENT 10
  943.     NEWERDLL2 $(PATHDIR)\CHARSET.DLL $(INPUTDIR)\MailDLLs\CHARSET.DLL
  944.     IF YES GOTO No_VIM_Updates
  945.     STATUSPERCENT 15
  946.     NEWERDLL2 $(PATHDIR)\VIM.DLL    $(INPUTDIR)\MailDLLs\VIM.DLL
  947.     IF YES GOTO No_VIM_Updates
  948.     STATUSPERCENT 20
  949.     NEWERDLL2 $(PATHDIR)\CCEDIT.DLL    $(INPUTDIR)\MailDLLs\CCEDIT.DLL
  950.     IF YES GOTO No_VIM_Updates
  951.     STATUSPERCENT 25
  952.     NEWERDLL2 $(PATHDIR)\CCUTIL.DLL    $(INPUTDIR)\MailDLLs\CCUTIL.DLL
  953.     IF YES GOTO No_VIM_Updates
  954.     STATUSPERCENT 30
  955.     NEWERDLL2 $(PATHDIR)\CCSMI.DLL    $(INPUTDIR)\MailDLLs\CCSMI.DLL
  956.     IF YES GOTO No_VIM_Updates
  957.     STATUSPERCENT 35
  958.     NEWERDLL2 $(PATHDIR)\CDVIM.DLL    $(INPUTDIR)\MailDLLs\CDVIM.DLL
  959.     IF YES GOTO No_VIM_Updates
  960.     STATUSPERCENT 40
  961.     NEWERDLL2 $(PATHDIR)\SMI.DLL    $(INPUTDIR)\MailDLLs\SMI.DLL
  962.     IF YES GOTO No_VIM_Updates
  963.     STATUSPERCENT 45
  964.  
  965. ; If any of our DLLs are newer than the ones in the existing directory, then 
  966. ; copy them.
  967.  
  968.     NEWERDLL $(INPUTDIR)\MailDLLs\MEMMAN.DLL    $(PATHDIR)\MEMMAN.DLL
  969.     IF YES GOTO DO_VIM_Updates
  970.     STATUSPERCENT 50
  971.     NEWERDLL $(INPUTDIR)\MailDLLs\MAILENG.DLL    $(PATHDIR)\MAILENG.DLL
  972.     IF YES GOTO DO_VIM_Updates
  973.     STATUSPERCENT 55
  974.     NEWERDLL $(INPUTDIR)\MailDLLs\CHARSET.DLL    $(PATHDIR)\CHARSET.DLL
  975.     IF YES GOTO DO_VIM_Updates
  976.     STATUSPERCENT 60
  977.     NEWERDLL $(INPUTDIR)\MailDLLs\VIM.DLL    $(PATHDIR)\VIM.DLL    
  978.     IF YES GOTO DO_VIM_Updates
  979.     STATUSPERCENT 65
  980.     NEWERDLL $(INPUTDIR)\MailDLLs\CCEDIT.DLL    $(PATHDIR)\CCEDIT.DLL
  981.     IF YES GOTO DO_VIM_Updates
  982.     STATUSPERCENT 70
  983.     NEWERDLL $(INPUTDIR)\MailDLLs\CCUTIL.DLL    $(PATHDIR)\CCUTIL.DLL
  984.     IF YES GOTO DO_VIM_Updates
  985.     STATUSPERCENT 75
  986.     NEWERDLL $(INPUTDIR)\MailDLLs\CCSMI.DLL    $(PATHDIR)\CCSMI.DLL    
  987.     IF YES GOTO DO_VIM_Updates
  988.     STATUSPERCENT 80
  989.     NEWERDLL $(INPUTDIR)\MailDLLs\CDVIM.DLL    $(PATHDIR)\CDVIM.DLL    
  990.     IF YES GOTO DO_VIM_Updates
  991.     STATUSPERCENT 85
  992.     NEWERDLL $(INPUTDIR)\MailDLLs\SMI.DLL    $(PATHDIR)\SMI.DLL    
  993.     IF YES GOTO DO_VIM_Updates
  994.     STATUSPERCENT 95
  995.  
  996.     GOTO No_VIM_Updates
  997.  
  998. :DO_VIM_Updates
  999.     STATUSPERCENT 100
  1000. #endif
  1001. #if INSTALL.INF
  1002.  
  1003.     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?
  1004.     IF NO GOTO Big_End
  1005.  
  1006. #elseif WORKSTN.INF
  1007.     ISLOCALDRIVE    $(PATHDIR)
  1008.     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.
  1009.     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.
  1010.  
  1011.     IF NO GOTO No_VIM_Updates
  1012. #endif
  1013. #if INSTALL.INF or WORKSTN.INF
  1014.  
  1015.     DELETE 5 $(USERDIR)\UPDVIM.BAT $(USERDIR)\UPDVIM.BAT -R 1 "VIM Batch File"
  1016.     EQUAL "" "NOT"
  1017.     SAVE 3
  1018.  
  1019. ;
  1020. ; mail engine section
  1021. ;
  1022.  
  1023.     NEWERDLL $(INPUTDIR)\MailDLLs\MAILENG.DLL $(PATHDIR)\MAILENG.DLL
  1024.     IF NO GOTO ME_NoCopy
  1025.  
  1026.     EXIST $(PATHDIR)\MAILENG.DLL
  1027.     IF NO GOTO ME_Copy
  1028.  
  1029.     DELETE 7 $(PATHDIR)\MAILENG.OLD $(PATHDIR)\MAILENG.OLD -R 1 "MailEngine Libraries"
  1030.     RENAME 10 $(PATHDIR)\MAILENG.DLL $(PATHDIR)\MAILENG.OLD -R 0 "Mail Engine Libraries"
  1031.  
  1032.     EXIST $(PATHDIR)\MAILENG.DLL
  1033.     IF YES GOTO ME_Append
  1034. :ME_Copy
  1035.  
  1036.     EXPAND 15 $(INPUTDIR)\MailDLLs\MAILENG.DLL $(PATHDIR)\MAILENG.DLL +R 0 "Mail Engine Libraries" 2
  1037. :ME_Append
  1038.     EXIST $(PATHDIR)\MAILENG.DLL
  1039.     IF YES GOTO ME_NoCopy
  1040.  
  1041. :ME_Append
  1042.  
  1043.     RESTORE 3
  1044.     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.
  1045.     EQUAL "" ""
  1046.     SAVE 3
  1047.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\MAILENG.DLL $(PATHDIR)\MAILENG.DLL"
  1048. :ME_NoCopy
  1049.  
  1050.  
  1051. ;
  1052. ; memory manager section
  1053. ;
  1054.  
  1055.     RESTORE 3
  1056.     IF YES GOTO MEM_Append
  1057.     NEWERDLL  $(INPUTDIR)\MailDLLs\MEMMAN.DLL $(PATHDIR)\MEMMAN.DLL
  1058.     IF NO GOTO MEM_NoCopy
  1059.  
  1060.     EXIST $(PATHDIR)\MEMMAN.DLL
  1061.     IF NO GOTO MEM_Copy
  1062.  
  1063.     DELETE 17 $(PATHDIR)\MEMMAN.OLD $(PATHDIR)\MEMMAN.OLD -R 1 "MailEngine Libraries"
  1064.     RENAME 20 $(PATHDIR)\MEMMAN.DLL $(PATHDIR)\MEMMAN.OLD -R 0  "Mail Engine Libraries"
  1065.  
  1066.     EXIST $(PATHDIR)\MEMMAN.DLL
  1067.     IF YES GOTO MEM_Append
  1068. :MEM_Copy
  1069.  
  1070.     EXPAND 25 $(INPUTDIR)\MailDLLs\MEMMAN.DLL $(PATHDIR)\MEMMAN.DLL +R 0 "Mail Engine Libraries" 2
  1071.     EXIST $(PATHDIR)\MEMMAN.DLL
  1072.     IF YES GOTO MEM_NoCopy
  1073.  
  1074. :MEM_Append
  1075.     
  1076.     RESTORE 3
  1077.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1078.     EQUAL "" ""
  1079.     SAVE 3
  1080.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\MEMMAN.DLL $(PATHDIR)\MEMMAN.DLL"
  1081.  
  1082. :MEM_NoCopy
  1083.  
  1084. ;
  1085. ; character set section
  1086. ;
  1087.  
  1088.     RESTORE 3
  1089.     IF YES GOTO CHAR_Append
  1090.     NEWERDLL   $(INPUTDIR)\MailDLLs\CHARSET.DLL $(PATHDIR)\CHARSET.DLL
  1091.     IF NO GOTO CHAR_NoCopy
  1092.  
  1093.     EXIST $(PATHDIR)\CHARSET.DLL
  1094.     IF NO GOTO CHAR_Copy
  1095.  
  1096.     DELETE 27 $(PATHDIR)\CHARSET.OLD $(PATHDIR)\CHARSET.OLD -R 1 "MailEngine Libraries"
  1097.     RENAME 30 $(PATHDIR)\CHARSET.DLL $(PATHDIR)\CHARSET.OLD -R 0 "Mail Engine Libraries"
  1098.  
  1099.     EXIST $(PATHDIR)\CHARSET.DLL
  1100.     IF YES GOTO CHAR_Append
  1101.  
  1102. :CHAR_Copy
  1103.     EXPAND 35 $(INPUTDIR)\MailDLLs\CHARSET.DLL $(PATHDIR)\CHARSET.DLL +R 0 "Mail Engine Libraries" 2
  1104.     EXIST $(PATHDIR)\CHARSET.DLL
  1105.     IF YES GOTO CHAR_NoCopy
  1106.  
  1107. :CHAR_Append
  1108.     
  1109.     RESTORE 3
  1110.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1111.     EQUAL "" ""
  1112.     SAVE 3
  1113.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\CHARSET.DLL $(PATHDIR)\CHARSET.DLL"
  1114.  
  1115.  
  1116. :CHAR_NoCopy
  1117.  
  1118. ;
  1119. ; vim
  1120. ;
  1121.     RESTORE 3
  1122.     IF YES GOTO VIM_Append
  1123.     NEWERDLL $(INPUTDIR)\MailDLLs\VIM.DLL $(PATHDIR)\VIM.DLL
  1124.     IF NO GOTO VIM_NoCopy
  1125.  
  1126.     EXIST $(PATHDIR)\VIM.DLL
  1127.     IF NO GOTO VIM_Copy
  1128.  
  1129.     DELETE 37 $(PATHDIR)\VIM.OLD $(PATHDIR)\VIM.OLD -R 1 "VIM Library"
  1130.     RENAME 40 $(PATHDIR)\VIM.DLL $(PATHDIR)\VIM.OLD -R 0 "VIM Library"
  1131.  
  1132.     EXIST $(PATHDIR)\VIM.DLL
  1133.     IF YES GOTO VIM_Append
  1134.  
  1135. :VIM_Copy
  1136.  
  1137.     EXPAND 45 $(INPUTDIR)\MailDLLs\VIM.DLL $(PATHDIR)\VIM.DLL +R 0 "VIM Library" 2
  1138.     EXIST $(PATHDIR)\VIM.DLL
  1139.     IF YES GOTO VIM_NoCopy
  1140.  
  1141. :VIM_Append
  1142.     
  1143.     RESTORE 3
  1144.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1145.     EQUAL "" ""
  1146.     SAVE 3
  1147.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\VIM.DLL $(PATHDIR)\VIM.DLL"
  1148.  
  1149. :VIM_NoCopy
  1150.  
  1151.  
  1152. ;
  1153. ; ccedit
  1154. ;
  1155.     RESTORE 3
  1156.     IF YES GOTO CCEDIT_Append
  1157.     NEWERDLL $(INPUTDIR)\MailDLLs\CCEDIT.DLL $(PATHDIR)\CCEDIT.DLL
  1158.     IF NO GOTO CCEDIT_NoCopy
  1159.  
  1160.     EXIST $(PATHDIR)\CCEDIT.DLL
  1161.     IF NO GOTO CCEDIT_Copy
  1162.  
  1163.     DELETE 47 $(PATHDIR)\CCEDIT.OLD $(PATHDIR)\CCEDIT.OLD -R 1 "VIM Library"
  1164.     RENAME 50 $(PATHDIR)\CCEDIT.DLL $(PATHDIR)\CCEDIT.OLD -R 0 "VIM Library"
  1165.     EXIST $(PATHDIR)\CCEDIT.DLL
  1166.     IF YES GOTO CCEDIT_Append
  1167.  
  1168. :CCEDIT_Copy
  1169.  
  1170.     EXPAND 55 $(INPUTDIR)\MailDLLs\CCEDIT.DLL $(PATHDIR)\CCEDIT.DLL +R 0 "VIM Library" 2
  1171.  
  1172.     EXIST $(PATHDIR)\CCEDIT.DLL
  1173.     IF YES GOTO CCEDIT_NoCopy
  1174.  
  1175. :CCEDIT_Append
  1176.     
  1177.     RESTORE 3
  1178.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1179.     EQUAL "" ""
  1180.     SAVE 3
  1181.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\CCEDIT.DLL $(PATHDIR)\CCEDIT.DLL"
  1182.  
  1183. :CCEDIT_NoCopy
  1184.  
  1185.  
  1186. ;
  1187. ; ccutil
  1188. ;
  1189.     RESTORE 3
  1190.     IF YES GOTO ccutil_Append
  1191.     NEWERDLL $(INPUTDIR)\MailDLLs\ccutil.DLL $(PATHDIR)\ccutil.DLL
  1192.     IF NO GOTO ccutil_NoCopy
  1193.  
  1194.     EXIST $(PATHDIR)\ccutil.DLL
  1195.     IF NO GOTO ccutil_Copy
  1196.  
  1197.     DELETE 57 $(PATHDIR)\CCUTIL.OLD $(PATHDIR)\CCUTIL.OLD -R 1 "VIM Library"
  1198.     RENAME 60 $(PATHDIR)\ccutil.DLL $(PATHDIR)\ccutil.OLD -R 0 "VIM Library"
  1199.     EXIST $(PATHDIR)\ccutil.DLL
  1200.     IF YES GOTO ccutil_Append
  1201.  
  1202. :ccutil_Copy
  1203.  
  1204.     EXPAND 65 $(INPUTDIR)\MailDLLs\ccutil.DLL $(PATHDIR)\ccutil.DLL +R 0 "VIM Library" 2
  1205.     EXIST $(PATHDIR)\CCUTIL.DLL
  1206.     IF YES GOTO ccutil_NoCopy
  1207.  
  1208. :ccutil_Append
  1209.     
  1210.     RESTORE 3
  1211.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1212.     EQUAL "" ""
  1213.     SAVE 3
  1214.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\CCUTIL.DLL $(PATHDIR)\CCUTIL.DLL"
  1215.  
  1216.  
  1217. :ccutil_NoCopy
  1218.  
  1219.  
  1220. ;
  1221. ; CCSMI
  1222. ;
  1223.     RESTORE 3
  1224.     IF YES GOTO CCSMI_Append
  1225.     NEWERDLL $(INPUTDIR)\MailDLLs\CCSMI.DLL $(PATHDIR)\CCSMI.DLL
  1226.     IF NO GOTO CCSMI_NoCopy
  1227.  
  1228.     EXIST $(PATHDIR)\CCSMI.DLL
  1229.     IF NO GOTO CCSMI_Copy
  1230.  
  1231.     DELETE 67 $(PATHDIR)\CCSMI.OLD $(PATHDIR)\CCSMI.OLD -R 1 "VIM Library"
  1232.     RENAME 70 $(PATHDIR)\CCSMI.DLL $(PATHDIR)\CCSMI.OLD -R 0 "VIM Library"
  1233.  
  1234.     EXIST $(PATHDIR)\CCSMI.DLL
  1235.     IF YES GOTO CCSMI_Append
  1236.  
  1237. :CCSMI_Copy
  1238.  
  1239.     EXPAND 75 $(INPUTDIR)\MailDLLs\CCSMI.DLL $(PATHDIR)\CCSMI.DLL +R 0 "VIM Library" 2
  1240.     EXIST $(PATHDIR)\CCSMI.DLL
  1241.     IF YES GOTO CCSMI_NoCopy
  1242.  
  1243. :CCSMI_Append
  1244.     
  1245.     RESTORE 3
  1246.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1247.     EQUAL "" ""
  1248.     SAVE 3
  1249.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\CCSMI.DLL $(PATHDIR)\CCSMI.DLL"
  1250.  
  1251. :CCSMI_NoCopy
  1252.  
  1253.  
  1254.  
  1255. ;
  1256. ; CDVIM
  1257. ;
  1258.     RESTORE 3
  1259.     IF YES GOTO CDVIM_Append
  1260.     NEWERDLL $(INPUTDIR)\MailDLLs\CDVIM.DLL $(PATHDIR)\CDVIM.DLL
  1261.     IF NO GOTO CDVIM_NoCopy
  1262.  
  1263.     EXIST $(PATHDIR)\CDVIM.DLL
  1264.     IF NO GOTO CDVIM_Copy
  1265.  
  1266.     DELETE 77 $(PATHDIR)\CDVIM.OLD $(PATHDIR)\CDVIM.OLD -R 1 "VIM Library"
  1267.     RENAME 80 $(PATHDIR)\CDVIM.DLL $(PATHDIR)\CDVIM.OLD -R 0 "VIM Library"
  1268.  
  1269.     EXIST $(PATHDIR)\CDVIM.DLL
  1270.     IF YES GOTO CDVIM_Append
  1271.  
  1272. :CDVIM_Copy
  1273.  
  1274.     EXPAND 85 $(INPUTDIR)\MailDLLs\CDVIM.DLL $(PATHDIR)\CDVIM.DLL +R 0 "VIM Library" 2
  1275.     EXIST $(PATHDIR)\CDVIM.DLL
  1276.     IF YES GOTO CDVIM_NoCopy
  1277.  
  1278. :CDVIM_Append
  1279.     
  1280.     RESTORE 3
  1281.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1282.     EQUAL "" ""
  1283.     SAVE 3
  1284.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\CDVIM.DLL $(PATHDIR)\CDVIM.DLL"
  1285.  
  1286. :CDVIM_NoCopy
  1287.  
  1288.  
  1289. ;
  1290. ; SMI
  1291. ;
  1292.     RESTORE 3
  1293.     IF YES GOTO SMI_Append
  1294.     NEWERDLL $(INPUTDIR)\MailDLLs\SMI.DLL $(PATHDIR)\SMI.DLL
  1295.     IF NO GOTO SMI_NoCopy
  1296.  
  1297.     EXIST $(PATHDIR)\SMI.DLL
  1298.     IF NO GOTO SMI_Copy
  1299.  
  1300.     DELETE 87 $(PATHDIR)\SMI.OLD $(PATHDIR)\SMI.OLD -R 1 "VIM Library"
  1301.     RENAME 90 $(PATHDIR)\SMI.DLL $(PATHDIR)\SMI.OLD -R 0 "VIM Library"
  1302.  
  1303.     EXIST $(PATHDIR)\SMI.DLL
  1304.     IF YES GOTO SMI_Append
  1305.  
  1306. :SMI_Copy
  1307.  
  1308.     EXPAND 95 $(INPUTDIR)\MailDLLs\SMI.DLL $(PATHDIR)\SMI.DLL +R 0 "VIM Library" 2
  1309.     EXIST $(PATHDIR)\SMI.DLL
  1310.     IF YES GOTO SMI_NoCopy
  1311.  
  1312. :SMI_Append
  1313.     
  1314.     RESTORE 3
  1315.     IF NO MESSAGE Unable to update the cc:Mail DLLs.  After you finish the installation, be sure to shutdown your postoffice and run $(USERDIR)\UPDVIM.BAT.
  1316.     EQUAL "" ""
  1317.     SAVE 3
  1318.     APPEND $(USERDIR)\UPDVIM.BAT "COPY $(INPUTDIR)\MailDLLs\SMI.DLL $(PATHDIR)\SMI.DLL"
  1319.  
  1320. :SMI_NoCopy
  1321.  
  1322. #endif
  1323. :No_VIM_Updates
  1324. #if INSTALL.INF or WORKSTN.INF
  1325.     STATUSPERCENT 100
  1326.     CLOSESTATUS
  1327. #endif
  1328.  
  1329.  
  1330. #if WORKSTN.INF
  1331.  
  1332. ; Temporary
  1333. ;    GOTO Skip_VIM_Stuff
  1334.  
  1335. ; Scheduling?
  1336.     RESTORE 1
  1337.     IF NO GOTO Skip_VIM_Stuff
  1338.  
  1339. ;
  1340. ; Switch to where the network dll's are
  1341. ;
  1342.     CD $(SRCDIR)
  1343.  
  1344.     OPENSTATUS Checking Scheduling Information
  1345.     STATUSPERCENT 0
  1346.  
  1347. ;
  1348. ; load the libraries
  1349. ;
  1350.     PRIMELOADS
  1351.     STATUSPERCENT 5
  1352.  
  1353.     LOADMEMMAN    $(SRCDIR)\MailDLLs\MEMMAN.DLL
  1354.     STATUSPERCENT 10
  1355.     LOADMAILENG    $(SRCDIR)\MailDLLs\MAILENG.DLL
  1356.     STATUSPERCENT 20
  1357.     LOADCHARSET    $(SRCDIR)\MailDLLs\CHARSET.DLL
  1358.     STATUSPERCENT 30
  1359.     LOADVIM        $(SRCDIR)\MailDLLs\VIM.DLL
  1360.     STATUSPERCENT 40
  1361.     LOADTHREADZ    $(SRCDIR)\TZDLL.DLL
  1362.     STATUSPERCENT 50
  1363.     LOADORGNET    $(SRCDIR)\ORGNET.DLL
  1364.     STATUSPERCENT 60
  1365.     LOADSCHDENG    $(SRCDIR)\SCHEDENG.DLL
  1366.     STATUSPERCENT 70
  1367. ;
  1368. ; gather login information.  if not, skip the rest
  1369. ;
  1370.     SETUPVIMLOGIN GETVIMLOGINDLG GETVIMPASSWORDDLG 1 1
  1371.     IF NO GOTO VIM_NoNothing
  1372.  
  1373. ;
  1374. ; ask about copying calendar to network.  if not, setup for local
  1375. ;
  1376.     STATUSPERCENT 80
  1377.     COPYUPVIMCAL ORGANIZE.INI
  1378.  
  1379. ; in the case that the info is already there, don't mess with it
  1380.     IF IGNORE GOTO VIM_AllDone
  1381.  
  1382. ; in the case that they don't want to copy up, set for local
  1383.     IF NO GOTO VIM_KeepLocal
  1384.  
  1385. ; in the case that they had no local cal, skip ahead
  1386.     EQUAL $(CALSRC) ""
  1387.     IF YES GOTO VIM_SkipToStartup
  1388.  
  1389. ;
  1390. ; compare the source and destination
  1391. ;
  1392.     STATUSPERCENT 85
  1393.     EQUALI $(CALSRC) $(CALDEST)
  1394.     IF YES GOTO VIM_SkipToStartup
  1395.  
  1396. ;
  1397. ; if no target file to be overwritten skip ahead
  1398. ;
  1399.     EXIST $(CALDEST)
  1400.     IF NO GOTO VIM_NoTarget
  1401.  
  1402. ;
  1403. ; make a backup
  1404. ;
  1405.     STATUSPERCENT 90
  1406.     RENAMEEXT $(CALDEST) OLD -R 0 "Old Network Calendar"
  1407.  
  1408. :VIM_NoTarget
  1409.  
  1410. ;
  1411. ; copy up to network
  1412. ;
  1413.     STATUSPERCENT 95
  1414.     EXPAND 1 $(CALSRC) $(CALDEST) -R 0 "Local Calendar to Network" 0
  1415.  
  1416. :VIM_SkipToStartup
  1417.  
  1418. ;
  1419. ; set startup for network file
  1420. ;
  1421.     STATUSPERCENT 97
  1422.     SETVIMSTARTUP ORGANIZE.INI 1
  1423.  
  1424. ;
  1425. ; all done
  1426. ;
  1427.     GOTO VIM_AllDone
  1428.  
  1429. :VIM_KeepLocal
  1430.  
  1431. ;
  1432. ; set startup for local file
  1433. ;
  1434.     STATUSPERCENT 99
  1435.     SETVIMSTARTUP ORGANIZE.INI 0
  1436.  
  1437. ;
  1438. ; all done
  1439. ;
  1440.     GOTO VIM_AllDone
  1441.  
  1442. :VIM_NoNothing
  1443.     STATUSPERCENT 100
  1444.     CLOSESTATUS
  1445.  
  1446.  
  1447. ;
  1448. ; warn them about later logins
  1449. ;
  1450.     MESSAGE The Organizer will prompt you to login to mail when needed.
  1451.  
  1452. :VIM_AllDone
  1453.  
  1454. ;
  1455. ; logout and close libraries
  1456. ;
  1457.     CLOSEVIMLOGIN
  1458.     FREELOADS
  1459.  
  1460.     STATUSPERCENT 100
  1461.     CLOSESTATUS
  1462. #endif
  1463. :Skip_VIM_Stuff
  1464.  
  1465.  
  1466. #if WORKSTN.INF
  1467. ; If Scheduling, then set path appropriately
  1468.     RESTORE 1
  1469.     IF NO GOTO Skip_PATH_Stuff
  1470.  
  1471.     EQUAL $(PATHDIR) ""
  1472.     IF NO GOTO Do_PATH_Stuff
  1473.     
  1474.     $(PATHDIR) = GETPROFILE $(WINDIR)\WIN.INI "cc:Mail" ProgramPath ""
  1475.     EQUAL $(PATHDIR) ""
  1476.     IF YES GOTO Skip_PATH_Stuff
  1477.  
  1478. :Do_PATH_Stuff
  1479.     ISPATHWRONG $(PATHDIR)
  1480.     IF NO GOTO Skip_PATH_Stuff
  1481.  
  1482.     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?
  1483.  
  1484.     IF NO GOTO Path_Not_Modified
  1485.     INSERTPATH $(PATHDIR)
  1486. ; Has path been changed?
  1487.     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.
  1488.     GOTO Skip_PATH_Stuff
  1489.  
  1490. :Path_Not_Modified
  1491.     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.
  1492.  
  1493. :Skip_PATH_Stuff
  1494. #endif
  1495.  
  1496.  
  1497. #if INSTALL.INF or SETUPDIR.INF
  1498. ;;
  1499. ;; Do Scheduling Specific stuff
  1500. ;;
  1501.  
  1502. ; Assume diradmin was not run
  1503.     EQUAL "" "NOT"
  1504.     SAVE 2
  1505.  
  1506.     RESTORE 1
  1507.     IF NO GOTO Skip_Diradmin_Stuff
  1508. ;
  1509. ; Do DIRADMIN stuff
  1510. ;
  1511.     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?
  1512.  
  1513. #endif
  1514.  
  1515. :Diradmin_Start
  1516. #if SETUPDIR.INF
  1517. ; Make sure we can find diradmin.exe.  $(USERDIR) won't be set.
  1518.  
  1519.     SETUSERDIR $(STARTDIR)\Admin
  1520. :Check_Diradmin
  1521.     EXIST $(USERDIR)\diradmin.exe
  1522.     IF YES GOTO Got_Admin_Dir
  1523.     $(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.
  1524.     IF YES GOTO Check_Diradmin
  1525.     IF NO GOTO Setupdir_Not_Run
  1526.  
  1527. :Got_Admin_Dir
  1528. #endif
  1529. #if INSTALL.INF or SETUPDIR.INF
  1530.  
  1531. ; Set whether we are running diradmin or not
  1532.     SAVE 2
  1533.     IF NO GOTO Skip_Diradmin_Stuff
  1534.  
  1535. ;
  1536. ; Switch to where the network dll's are
  1537. ;
  1538.     CD $(DESTDIR)
  1539.  
  1540. ;
  1541. ; Load the schedule engine
  1542. ;
  1543.     PRIMELOADS
  1544.     LOADMEMMAN    $(DESTDIR)\MailDLLs\MEMMAN.DLL
  1545.     LOADMAILENG    $(DESTDIR)\MailDLLs\MAILENG.DLL
  1546.     LOADCHARSET    $(DESTDIR)\MailDLLs\CHARSET.DLL
  1547.     LOADVIM        $(DESTDIR)\MailDLLs\VIM.DLL
  1548.     LOADTHREADZ    $(DESTDIR)\TZDLL.DLL
  1549.     LOADORGNET    $(DESTDIR)\ORGNET.DLL
  1550.     LOADSCHDENG    $(DESTDIR)\SCHEDENG.DLL
  1551.  
  1552. ;
  1553. ; Login to a PO
  1554. ;
  1555. :Do_DIRADMIN_Login
  1556.     SETUPVIMLOGIN DIRADMIN_LOGIN DIRADMIN_PASSWORD 0 0
  1557.     SAVE 2
  1558.     IF YES GOTO Go_For_Launch
  1559.     FREELOADS
  1560. #endif
  1561. #if INSTALL.INF
  1562.     IF NO GOTO Skip_Diradmin_Stuff
  1563. #elseif SETUPDIR.INF
  1564.     IF NO GOTO Setupdir_Not_Run
  1565. #endif
  1566. #if INSTALL.INF or SETUPDIR.INF
  1567. :Go_For_Launch
  1568. ;
  1569. ; Confirm that the login is to a PO
  1570. ;
  1571.     DIRADMINPOCHECK
  1572.     IF YES GOTO Got_DIRADMIN_Login
  1573.  
  1574. ;
  1575. ; If not a po, complain and try again
  1576. ;
  1577.     MESSAGE You must login as the Post Office.  Please try again.
  1578.     CLOSEVIMLOGIN
  1579.     GOTO Do_DIRADMIN_Login
  1580.  
  1581. ;
  1582. ; Set the caption for DIRADMIN parameters
  1583. ;
  1584. :Got_DIRADMIN_Login
  1585.     CAPTION Directory Setup
  1586.  
  1587. ;
  1588. ; Gather the DIRADMIN parameters
  1589. ;
  1590.     DIRADMINGATHER
  1591.  
  1592. ;
  1593. ; Place the DIRADMIN parameters into a temporary file
  1594. ;
  1595.     DIRADMINLAUNCH
  1596.  
  1597. ; $(USERDIR) should hold the admin directory at this point...    
  1598.     CD $(USERDIR)
  1599.     RUN $(USERDIR)\diradmin.exe @$(INPUTDIR)
  1600.  
  1601. ; Loop until DIRADMIN exits
  1602. :Check_DIRADMIN_Window
  1603.     WINDOWNAME SETUPDIR
  1604.     IF YES GOTO Check_DIRADMIN_Window
  1605.     WINDOWNAME (Inactive SETUPDIR)
  1606.     IF YES GOTO Check_DIRADMIN_Window
  1607.  
  1608. ;
  1609. ; Free the DIRADMIN parameters and delete the temporary file
  1610. ;
  1611.     DIRADMINFREE
  1612.  
  1613. ;
  1614. ; Close the VIM login session
  1615. ;
  1616.     CLOSEVIMLOGIN
  1617.  
  1618. ;
  1619. ; free schedule engine
  1620. ;
  1621.     FREELOADS
  1622.  
  1623. :Skip_Diradmin_Stuff
  1624. #endif
  1625.  
  1626. #if SETUPDIR.INF
  1627.     GOTO End_Of_Setupdir
  1628. #endif
  1629.  
  1630.  
  1631. #if INSTALL.INF
  1632. ;
  1633. ; Skip ALL of this .INI stuff if we are doing a Server install
  1634. ;
  1635.  
  1636. ; Scheduling?
  1637.     RESTORE 0
  1638.     IF SERVER GOTO Finish_Install
  1639. #endif
  1640.  
  1641. #if INSTALL.INF or WORKSTN.INF
  1642.     STATUS Setting .INI File Defaults
  1643. #endif
  1644.  
  1645. #if WORKSTN.INF
  1646. ;
  1647. ; Secretary calendar -- only worry about it if they might be scheduling
  1648. ;
  1649.     EXIST $(SRCDIR)\SchedEng.Dll
  1650.     IF NO GOTO Skip_Secretary
  1651.     QUESTION Will you be managing another user's calendar as well as your own?
  1652.     IF NO GOTO Skip_Secretary
  1653.     WRITEPROFILE $(WINDIR)\Organize.Ini "Settings" "Names" "1"
  1654.  
  1655. :Skip_Secretary
  1656.  
  1657. #endif
  1658. #if INSTALL.INF or WORKSTN.INF
  1659.  
  1660. ;
  1661. ; Check GrayText value for colors
  1662. ;
  1663.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini colors GrayText ""
  1664.     EQUAL "128 128 128" $(USERDIR)
  1665.     IF YES GOTO No_Gray_Text
  1666.     WRITEPROFILE $(WINDIR)\Win.Ini colors GrayText "128 128 128"
  1667.  
  1668. :No_Gray_Text
  1669.  
  1670. ;
  1671. ; Set lotus.ini value
  1672. ;
  1673.     WRITEPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize $(DESTDIR)\Organize.Exe
  1674.  
  1675.  
  1676. ; Do this only for scheduling install
  1677. ;    RESTORE  1
  1678. ;    IF NO GOTO Skip_Sched_Stuff
  1679. ;    WRITEPROFILE $(WINDIR)\Organize.Ini "Settings" "OrgFiles" $(DESTDIR)\Users
  1680.  
  1681. :Skip_Sched_Stuff
  1682.  
  1683. ; Do some mail things so Organizer works better with it
  1684. ; Set DDE flag for WinMail 2.0
  1685.     RESTORE 1
  1686.     IF NO GOTO Skip_WinMail_Stuff
  1687.  
  1688.     ADJDDE $(WINDIR)\win.ini "cc:Mail" "LastUserId" "User0Dir" DDEApps 5
  1689.  
  1690. ; Set LotusMail value because many users don't seem to have this set right
  1691. ; Affects launching of WinMail from Organizer
  1692.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini "LotusMail" "application" ""
  1693.     EQUALI $(USERDIR) "wMail"
  1694.     IF YES GOTO Do_WinMail_Stuff
  1695.  
  1696.     EQUAL $(USERDIR) ""
  1697.     IF NO GOTO Skip_WinMail_Stuff
  1698.  
  1699. :Do_WinMail_Stuff
  1700. ; application = NULL or application == wMail
  1701.     $(INPUTDIR) = GETPROFILE $(WINDIR)\Win.Ini "cc:Mail" "ProgramPath" ""
  1702.     WRITEPROFILE $(WINDIR)\Win.Ini "LotusMail" "program" "$(INPUTDIR)\wMail.exe SendMail"
  1703.  
  1704.  
  1705. :Skip_WinMail_Stuff
  1706.  
  1707. #endif
  1708.  
  1709. #if WORKSTN.INF
  1710. ;
  1711. ; Set save option defaults
  1712. ;
  1713.     $(USERDIR) = GETPROFILE $(WINDIR)\Organize.Ini "Options" "SaveMode" "-1"
  1714.     EQUAL $(USERDIR) "-1" 
  1715.     IF NO GOTO Dont_Set_Save
  1716.  
  1717. ; If scheduling, save after every change. Otherwise, save just when you want.
  1718.     RESTORE 1
  1719.     IF YES WRITEPROFILE $(WINDIR)\Organize.Ini "Options" "SaveMode" "0"
  1720.     IF NO WRITEPROFILE $(WINDIR)\Organize.Ini "Options" "SaveMode" "2"
  1721. #endif
  1722.  
  1723. :Dont_Set_Save
  1724.  
  1725. #if INSTALL.INF or WORKSTN.INF
  1726. ;
  1727. ; Set a .INI parameter to indicate where to find the master Organizer.INI file
  1728. ;    
  1729.     WRITEPROFILE $(WINDIR)\Organize.Ini "Lan" ".INIHome" $(DESTDIR)
  1730. #endif
  1731.  
  1732. #if INSTALL.INF or WORKSTN.INF
  1733. ;
  1734. ; Put the associations into the win.ini
  1735. ;
  1736.     WRITEPROFILE $(WINDIR)\Win.Ini Extensions ORG "$(DESTDIR)\Organize.exe ^.ORG"
  1737.     WRITEPROFILE $(WINDIR)\Win.Ini Extensions ORS "$(DESTDIR)\Organize.exe ^.ORS"
  1738.  
  1739. ;
  1740. ;       Windows 3.1 question to add to StartUp group
  1741. ;
  1742.  
  1743.     EQUAL $(WINVER) 3.10
  1744.     IF NO GOTO Check_Win_Ini
  1745.  
  1746.     QUESTION Do you want Lotus Organizer to start automatically when you start Windows?
  1747.     IF NO GOTO No_Ini
  1748.  
  1749.     PROGMAN [CreateGroup( StartUp )]
  1750.     PROGMAN [ShowGroup( StartUp, 1 )]
  1751. ; Old name
  1752.     PROGMAN [DeleteItem( Organizer )]
  1753.     PROGMAN [ReplaceItem( Lotus Organizer )]
  1754.     PROGMAN [AddItem( $(DESTDIR)\Organize.Exe, "Lotus Organizer", $(DESTDIR)\OrgDll.Dll, 0 )]
  1755.  
  1756.     GOTO No_Ini
  1757.  
  1758. :Check_Win_Ini
  1759. ;
  1760. ; Determine if Lotus Organizer should be loaded from the load= line
  1761. ;
  1762.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini Windows Load ""
  1763.     INSTR $(USERDIR) ORGANIZE
  1764.     IF YES GOTO Replace_Ini
  1765.  
  1766.     QUESTION Do you want Lotus Organizer to start automatically when you start Windows?
  1767.     IF NO GOTO No_Ini
  1768.  
  1769.     WRITEPROFILE $(WINDIR)\Win.Ini Windows Load "$(DESTDIR)\Organize.Exe $(USERDIR)"
  1770.     GOTO No_Ini
  1771.  
  1772. :Replace_Ini
  1773.  
  1774.     $(USERDIR) = REPLACESTRING Organize.Exe $(DESTDIR)\Organize.Exe $(USERDIR)
  1775.     WRITEPROFILE    $(WINDIR)\Win.Ini Windows Load "$(USERDIR)"
  1776.  
  1777. ;
  1778. ; Ask if we should add to the Program Manager
  1779. ;
  1780. :No_Ini
  1781.     QUESTION Do you want Lotus Organizer added to the Lotus Applications Window so you can easily start the program when you run Windows?
  1782.     IF NO GOTO End_Of_Progman
  1783.  
  1784.     PROGMAN [CreateGroup( Lotus Applications )]
  1785.     PROGMAN [ShowGroup( Lotus Applications, 1 )]
  1786. ; Old name
  1787.     PROGMAN [DeleteItem( Organizer )]
  1788.     EQUAL $(WINVER) 3.10
  1789. ; This used to have quotes.  maybe that's why it's failing...
  1790.     IF YES PROGMAN [ReplaceItem( Lotus Organizer )]
  1791.     PROGMAN [AddItem( $(DESTDIR)\Organize.Exe, "Lotus Organizer", $(DESTDIR)\OrgDll.Dll, 0 )]
  1792.  
  1793.  
  1794. :End_Of_Progman
  1795.  
  1796. ;
  1797. ; That's all folks
  1798. ;
  1799.  
  1800. #elseif UNINSTAL.INF
  1801.  
  1802. ;       Kill directories
  1803.  
  1804.  
  1805.     RMDIR $(DESTDIR)\SAMPLE
  1806.     RMDIR $(DESTDIR)\ORGFILES
  1807.     RMDIR $(DESTDIR)\MAILDLLS
  1808.     RMDIR $(DESTDIR)\USERS
  1809.     RMDIR $(DESTDIR)\PRINTING
  1810.     RMDIR $(DESTDIR)\ADMIN
  1811.     RMDIR $(DESTDIR)
  1812.  
  1813.  
  1814. ;       Kill progman items if Win 3.1
  1815.  
  1816.  
  1817.     EQUAL   $(WINVER) 3.10
  1818.     IF YES PROGMAN [ShowGroup( Lotus Applications, 1 )]
  1819.     IF YES PROGMAN [DeleteItem( Organizer )]
  1820.     IF YES PROGMAN [DeleteItem( Lotus Organizer )]
  1821.     IF YES PROGMAN [DeleteItem( Organizer Utilities )]
  1822.     IF YES PROGMAN [DeleteItem( Organizer Administrator )]
  1823.     IF YES PROGMAN [DeleteItem( OrgUtils )]
  1824.     IF YES PROGMAN [DeleteItem( Sample )]
  1825.     IF YES PROGMAN [DeleteItem( Traveler )]
  1826.  
  1827.  
  1828. ;       Check StartUp Group
  1829.  
  1830.  
  1831.     IF YES PROGMAN [ShowGroup( StartUp, 1 )]
  1832.     IF YES PROGMAN [DeleteItem( Organizer )]
  1833.  
  1834.  
  1835. ;       Clean LOTUS.INI
  1836.  
  1837.     WRITEPROFILE $(WINDIR)\Lotus.Ini "Lotus Applications" Organize [NULL]
  1838.  
  1839.  
  1840. ;       Clean WIN.INI Extensions
  1841. ;
  1842.     WRITEPROFILE $(WINDIR)\Win.Ini Extensions ORG [NULL]
  1843.     WRITEPROFILE $(WINDIR)\Win.Ini Extensions ORS [NULL]
  1844.  
  1845.  
  1846. ;       Clean WIN.INI Load= line
  1847.  
  1848.     $(USERDIR) = GETPROFILE $(WINDIR)\Win.Ini Windows Load ""
  1849.     INSTR $(USERDIR) ORGANIZE
  1850.     IF NO GOTO No_Ini_Clean
  1851.  
  1852.     $(USERDIR) = REPLACESTRING Organize.Exe [NULL] $(USERDIR)
  1853.     WRITEPROFILE    $(WINDIR)\Win.Ini Windows Load "$(USERDIR)"
  1854.     
  1855. :No_Ini_Clean
  1856.  
  1857. #endif ;Uninstall
  1858.  
  1859.  
  1860. :Finish_Install
  1861.  
  1862.     STATUSPERCENT 100
  1863.     CLOSESTATUS
  1864.  
  1865. #if INSTALL.INF
  1866. :End_Of_Install
  1867.  
  1868.     RESTORE 0
  1869.     IF SERVER GOTO End_Of_Install2
  1870. #endif
  1871. #if INSTALL.INF or WORKSTN.INF
  1872. ; Standalone
  1873.     MESSAGE    Installation of Lotus Organizer 1.1 was successful.\r\rThank you for purchasing Lotus Organizer.
  1874.     GOTO Big_End
  1875. #endif
  1876.  
  1877. #if INSTALL.INF
  1878. ;
  1879. ; If DIRADMIN was run, then different message
  1880. ;
  1881. :End_Of_Install2
  1882.  
  1883.     RESTORE 1
  1884.     IF YES GOTO End_Of_Install_w_Sched
  1885. ; Server, no Scheduling
  1886.     MESSAGE Installation of Lotus Organizer 1.1 was successful.  Run WORKSTN.EXE to install the Organizer on individual workstations.
  1887.     GOTO Big_End
  1888.  
  1889. :End_Of_Install_w_Sched
  1890.  
  1891.     RESTORE 2
  1892. ; Scheduling, no Diradmin
  1893.     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.
  1894.  
  1895.     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.
  1896.  
  1897. #elseif UNINSTAL.INF
  1898.  
  1899.     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.
  1900.  
  1901. #elseif SETUPDIR.INF
  1902. :End_Of_Setupdir
  1903.     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.
  1904.  
  1905.     GOTO Big_End
  1906.  
  1907. :Setupdir_Not_Run
  1908.     MESSAGE The directory has not been updated.  Please run SETUPDIR again if you would like to update your cc:Mail directory.
  1909.  
  1910. #endif
  1911.  
  1912. :Big_End
  1913. CLOSESTATUS
  1914. ;
  1915.