home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / modem / cim213.zip / CIM213.EXE / INSTALL.DAT < prev    next >
Text File  |  1993-05-12  |  20KB  |  866 lines

  1. /*
  2.  *
  3.  *  Copyright (c) 1990-1992
  4.  *  by CompuServe Incorporated, Columbus, Ohio
  5.  *
  6.  *  The information in this software  is  subject  to  change  without
  7.  *  notice  and  should not be construed as a commitment by CompuServe
  8.  *  Incorporated.
  9.  *
  10.  */
  11.  
  12. @DefineProject
  13.     @Name       = "CompuServe Information Manager"
  14.     @Version    = "2.1.3"
  15.     @Subdir     = "\\CSERVE\\"
  16.     @OutDrive   = C
  17. @EndProject
  18.  
  19. @DefineVars
  20.     @QString @OEMBatchName = ""
  21.     @QString @Online = "Y"
  22. @EndVars
  23.  
  24. :Start
  25.  
  26. @Display
  27.     @scrCls
  28.  
  29.           @Name INSTALLATION 
  30.  
  31.     Welcome to CompuServe.  This program will install version @Version
  32.     of the @Name.
  33.  
  34.     You can stop the installation at any time by pressing the ESC key.
  35.  
  36.     @scrPause
  37.  
  38. @EndDisplay
  39.  
  40.  
  41. :Install
  42.  
  43. @Call HardDisk
  44.  
  45. @call GetInstallDisk
  46.  
  47. @Display
  48.     @scrCls
  49. @EndDisplay
  50.  
  51. @Position 2 4
  52.  
  53. @DefineDisk
  54.     @Label = "Original Diskette 1"
  55.  
  56.     @BeginLib CIM01.LIB
  57.  
  58.     @if ("@Online" == "")
  59.  
  60.         @File CIMUTIL.EXE 
  61.         @OUT5M doscim\\CIMUTIL.EXE
  62.     
  63.         @File TUTORIAL.BAT 
  64.         @OUT5M doscim\\TUTORIAL.BAT
  65.     
  66.         @File COLOR.BAT 
  67.         @OUT5M doscim\\COLOR.BAT
  68.  
  69.     @Endif
  70.  
  71.     @File CIM.MNU   
  72.         @OUT5M doscim\\NEWCIM.MNU
  73.  
  74.     @File CIM.ICO   
  75.         @OUT5M doscim\\CIM.ICO
  76.  
  77.     @File CIM.PIF
  78.         @OUT5M doscim\\CIM.PIF
  79.  
  80.     @File DOSCIM.GRP
  81.         @OUT5M doscim\\DOSCIM.GRP
  82.  
  83.     @File README.EXE
  84.         @OUT5M doscim\\README.EXE
  85.  
  86.     /* Don't overwrite an existing quotes.dat file */
  87.     @If (@Exists "@OutDrive:@SubDir\\support\\QUOTES.DAT")
  88.     @Else
  89.         @File QUOTES.DAT
  90.         @OUT5M support\\QUOTES.DAT
  91.     @Endif
  92.  
  93.     @If (20 [! @Option)
  94.         /* Copy the new version Favorites without clobbering */
  95.         /* the old one */
  96.  
  97.         @File FAVORITE.DAT
  98.         @OUT5M support\\FAVORITE.DAN
  99.     @Else
  100.         /* ensure that we write out Favorites if it does not exist */
  101.  
  102.         @If (@Exists "@OutDrive:@SubDir\\support\\FAVORITE.DAT")
  103.         @Else
  104.         @File FAVORITE.DAT
  105.             @OUT5M support\\FAVORITE.DAT
  106.         @Endif
  107.     @Endif
  108.  
  109.     @if ("@Online" == "")
  110.     @EndLib
  111.     @endif
  112. @If (@DiskSize @InDrive < 500000) 
  113. @EndDisk
  114.  
  115. @DefineDisk
  116.     @Label = "Original Diskette 2"
  117. @Endif
  118.  
  119.     @if ("@Online" == "")
  120.     @BeginLib CIM02.LIB    
  121.     @endif
  122.  
  123.     @if ("@Online" == "")
  124.  
  125.         @File CIMUTIL.HLP
  126.         @OUT5M doscim\\CIMUTIL.HLP
  127.  
  128.     @Endif
  129.  
  130.     @File CIM.HLP
  131.         @OUT5M doscim\\CIM.HLP
  132.  
  133.     @File scripts.exe
  134.         @Out5M scripts\\scripts.exe
  135.  
  136.     @if ("@Online" == "")
  137.  
  138.         @If (31 [! @Option)
  139.         @File signup.idx
  140.         @Out5M doscim\\signup.idx
  141.         
  142.         @File signup.dgs
  143.         @Out5M doscim\\signup.dgs
  144.         
  145.         @File signup.exe
  146.         @Out5M doscim\\signup.exe
  147.         
  148.         @File signup.ICO   
  149.         @OUT5M doscim\\signup.ICO
  150.         
  151.         @File signup.PIF
  152.         @OUT5M doscim\\signup.PIF
  153.         
  154.         @File DOSCIMS.GRP
  155.         @OUT5M doscim\\DOSCIM.GRP
  156.         
  157.         @Endif
  158.  
  159.     @Endif
  160.     
  161.     @File MOVECIM.EXE
  162.         @Out5M doscim\MOVECIM.EXE
  163.     
  164.     @File MAKEINI.EXE
  165.         @Out5M MAKCMINI.EXE
  166.     
  167.     @File CIM.1 
  168.         @OUT5M doscim\\NEWCIM.EXE
  169.  
  170.     @if ("@Online" == "")
  171.     @EndLib
  172.     @endif
  173.  
  174. @If (@DiskSize @InDrive < 1200000) 
  175.   @EndDisk
  176.   /* are we installing from 360s or 720s? */
  177.   @If (@DiskSize @InDrive < 500000) 
  178.       @DefineDisk
  179.       @Label = "Original Diskette 3"
  180.   @Else
  181.       @DefineDisk
  182.       @Label = "Original Diskette 2"
  183.   @Endif
  184. @Endif
  185.  
  186.     @if ("@Online" == "")
  187.     @BeginLib CIM03.LIB    
  188.     @endif
  189.  
  190.     @File CIM.2 
  191.         @AppendTo doscim\\NEWCIM.EXE 
  192.  
  193.     @EndLib
  194.  
  195. @EndDisk
  196.  
  197. @Finish
  198.  
  199. @if ("@Online" != "")
  200.     @If (@Exists "@InputDir\\cim01.lib")
  201.     @System "del @InputDir\\cim01.lib"
  202.     @EndIf          
  203.     @If (@Exists "@InputDir\\install.exe")
  204.     @System "del @InputDir\\install.exe"
  205.     @EndIf          
  206.     @If (@Exists "@InputDir\\install.dat")
  207.     @System "del @InputDir\\install.dat"
  208.     @EndIf          
  209.     @If (@Exists "@InputDir\\disk.id")
  210.     @System "del @InputDir\\disk.id"
  211.     @EndIf          
  212.     @If (@Exists "@InputDir\\readme.now")
  213.     @System "del @InputDir\\readme.now"
  214.     @EndIf          
  215. @endif
  216.  
  217.   /* Check if we need to write out a special batch file to invoke CIM */
  218.  
  219. @if ("@OEMBatchName" != "")
  220.   @ChDrive @OutDrive
  221.   @ChDir "\\"
  222.   @System "echo \@echo off > @OEMBatchName"
  223.   @System "echo rem NOTE:  This batch file needs be located >> @OEMBatchName"
  224.   @System "echo rem        in a directory specified by your >> @OEMBatchName"
  225.   @System "echo rem        PATH environment variable to work. >> @OEMBatchName"
  226.   @System "echo @OutDrive: >> @OEMBatchName"
  227.   @System "echo CD @Subdir\\doscim >> @OEMBatchName"
  228.   @System "echo CIM >> @OEMBatchName"
  229. @Endif
  230.  
  231.  
  232.   /* Write out a batch file to delete the old version of CIM */
  233.  
  234. @ChDrive @OutDrive
  235. @ChDir "@SubDir\\scripts"
  236.  
  237. /* preserve the old connect script files */
  238.  
  239. @If (@Exists "CONNECT.SCR")
  240.     @If (@Exists "CONNECT.ols")
  241.     @System "del *.ols"
  242.     @EndIf          
  243.  
  244.     @System "ren *.scr *.ols"
  245. @EndIf      
  246.  
  247. /* preserve the old modem database file */
  248.  
  249. @If (@Exists "MODEM.DB")
  250.     @If (@Exists "OLDMODEM.DB")
  251.     @System "del oldmodem.db"
  252.     @EndIf          
  253.  
  254.     @System "ren modem.db oldmodem.db"
  255. @EndIf
  256.  
  257. /* unpack scripts and modem database */
  258.  
  259. @System "scripts > NUL"
  260. @System "del scripts.exe"
  261.  
  262. @ChDir "..\\support"
  263.  
  264. /* preserve favorites if user got a new copy to replace the old */
  265. @If (@Exists "FAVORITE.DAN")
  266.     @If (@Exists "FAVORITE.ODT")
  267.     @System "del favorite.odt"
  268.     @EndIf          
  269.  
  270.     @If (@Exists "FAVORITE.DAT")
  271.     @System "ren favorite.dat *.odt"
  272.     @EndIf      
  273.     
  274.    @System "ren favorite.dan *.dat"
  275. @EndIf      
  276.  
  277. @ChDir "..\\doscim"
  278.  
  279. /* preserve MNU files (CIM.MNU and OLDCIM.MNU) */
  280.  
  281. @If (@Exists "OLDCIM.MNU")
  282.     @System "del OLDCIM.MNU"
  283. @EndIf      
  284.  
  285. @If (@Exists "CIM.MNU")
  286.     @System "ren CIM.MNU OLDCIM.MNU" 
  287. @EndIf      
  288.  
  289. @If (@Exists "NEWCIM.MNU")
  290.     @System "ren NEWCIM.MNU CIM.MNU"    
  291. @EndIf      
  292.  
  293. /* preserve CIM EXE files (CIM.EXE and OLDCIM.EXE) */
  294.  
  295. @If (@Exists "OLDCIM.EXE")
  296.     @System "del OLDCIM.EXE"
  297. @EndIf      
  298.  
  299. @If (@Exists "CIM.EXE")
  300.     @System "ren CIM.EXE OLDCIM.EXE" 
  301. @EndIf      
  302.  
  303. @If (@Exists "NEWCIM.EXE")
  304.     @System "ren NEWCIM.EXE CIM.EXE"    
  305. @EndIf
  306.  
  307. /* Create a "yes" response file and unpack the self-extracting exe's */
  308. @System "echo y > yes"
  309. @System "echo y >> yes"
  310. @System "echo y >> yes"
  311. @System "echo y >> yes"
  312. @System "echo y >> yes"
  313. @System "echo y >> yes"
  314. @System "echo y >> yes"
  315. @System "echo y >> yes"
  316. @System "echo y >> yes"
  317. @System "echo y >> yes"
  318. @System "echo y >> yes"
  319. @System "echo y >> yes"
  320. @System "echo y >> yes"
  321.  
  322. @If (@Exists "SIGNUP.EXE")
  323.     @System "SIGNUP < yes > NUL"
  324.     @System "del SIGNUP.EXE"
  325. @EndIf
  326.  
  327. @system "README < yes > NUL"
  328. @system "del README.EXE"
  329. @System "del yes"
  330.  
  331. @System "echo \@echo off > DELOLCIM.BAT"                                                     
  332. @System "echo echo This batch file will delete your old version of the >> DELOLCIM.BAT"
  333. @System "echo echo COMPUSERVE INFORMATION MANAGER software.  If you do >> DELOLCIM.BAT"
  334. @System "echo echo NOT wish to proceed, press CTRL+C or CTRL+BREAK now, >> DELOLCIM.BAT"
  335. @System "echo echo followed by the letter 'Y'. >> DELOLCIM.BAT"
  336. @System "echo echo . >> DELOLCIM.BAT"
  337. @System "echo pause >> DELOLCIM.BAT"
  338. @System "echo del oldcim.exe >> DELOLCIM.BAT"
  339. @System "echo del cim01.ovl >> DELOLCIM.BAT"
  340. @System "echo del cim02.ovl >> DELOLCIM.BAT"
  341. @System "echo del cim.cfg >> DELOLCIM.BAT"
  342. @System "echo del ..\\scripts\\*.ols >> DELOLCIM.BAT"
  343.  
  344.  
  345. @ChDir ".."
  346.  
  347. /* Create a new CIS.INI if we don't have one already and if an old CIM.CFG */
  348. /* file exists */
  349.  
  350. @If (@Exists "CIM.CFG")
  351.     @if (@Exists "CIS.INI")
  352.     /* do nothing */
  353.     @else
  354.     @System "MAKCMINI > NUL"
  355.     @EndIf
  356. @EndIf
  357. @System "del MAKCMINI.EXE > NUL"
  358.  
  359. @ChDir ".\\scripts"
  360.  
  361. @if (@Exists "CONNECT.OLS")
  362.     @Display
  363.     @scrCls
  364.  
  365.        The latest versions of the CompuServe Information Manager's
  366.        connect script files have been installed into the Script
  367.        subdirectory.  Existing files with the '.SCR' extension were
  368.        detected and have been renamed with the extension '.OLS'.  Any
  369.        existing 'MODEM.DB' file has been renamed with the extension
  370.        '*.ODB'.  If you customized any of the old files, you will
  371.        have to make the same changes to the new scripts and modem
  372.        database.
  373.  
  374.     @scrPause
  375.  
  376.     @EndDisplay
  377. @Endif
  378.  
  379. @ChDir "..\\doscim"
  380.  
  381. @Display
  382.  
  383.     @scrCLS
  384.  
  385.     Installation Completed!
  386.  
  387.     The CompuServe Information Manager has been successfully installed.
  388.  
  389.     You can start the Information Manager from a DOS prompt by changing
  390.     to the @OutDrive:@CIMDIR directory and then typing the command:
  391.  
  392.     CIM
  393.  
  394.     @scrPause
  395.  
  396. @EndDisplay
  397.  
  398. @Goto Finish
  399.  
  400. @EndFinish
  401.  
  402. /*
  403.  * Now we need to handle an abort from the installation, the user has
  404.  * chosen to return to DOS, so we perform the abort and terminate the
  405.  * application.
  406.  */
  407.  
  408. :NoMoveExit
  409. @Display
  410.     @scrCLS
  411.  
  412.    You have chosen to end the installation without converting to the
  413.    new subdirectory organization.  CIM.EXE will now be accessible in
  414.    the DOSCIM subdirectory, which is subordinate to the directory
  415.    where you installed this version of the CompuServe Information
  416.    Manager.
  417.  
  418.    Please note that the contents of your "old" Filing Cabinet will not
  419.    be available in CIM 2.1 until you convert to the new subdirectory
  420.    organization.  To do the conversion from DOS, run MOVECIM.EXE.
  421.  
  422.    Note:  If you file any messages with the newly installed version of
  423.       CIM, RUNNING MOVECIM will overwrite these messages with the 
  424.       contents of your version 2.0 Filing Cabinet.   For this reason,
  425.       we strongly recommend that you run MOVECIM.EXE before using 
  426.       the new version of CIM. 
  427.  
  428.     @scrPause
  429. @EndDisplay
  430.  
  431.  
  432. :NormalExit
  433. @Display
  434.     @scrCLS
  435.  
  436.     @Name setup completed!
  437.  
  438.     Press ENTER to return to DOS.
  439.  
  440.     @scrPause
  441. @EndDisplay
  442.  
  443.  
  444.  
  445. :Abort
  446. @Exit
  447.  
  448.  
  449. /*
  450.  * Now we need to define the code necessary to handle the various types
  451.  * of installations.  The first is the hard disk installation, where we
  452.  * need to obtain the drive and the directory.  Here we need to verify
  453.  * that enough disk storage exists to complete the installation.
  454.  */
  455.  
  456. :HardDisk
  457.  
  458. @FixedDisk = (1)
  459.  
  460. @GetOutDrive
  461.     @SetColor Black Grey
  462.     @Supress A
  463.     @Supress B
  464.     @scrCLS
  465.  
  466.     The menu below lists all of your hard disk drives.  Select the drive on
  467.     which you want to install the CompuServe Information Manager and press
  468.     ENTER to continue.  If you have only one disk drive press ENTER.
  469.  
  470.     On the next screen you will be prompted for the installation directory.
  471.  
  472.  
  473. @EndOutDrive
  474. @Position 8 1
  475.  
  476. @If (@DiskFree @OutDrive < 2000000)
  477.     @GetOption
  478.     @scrCLS
  479.  
  480.     The CompuServe Information Manager can only be installed on a hard
  481.     drive with 2,000,000 or more bytes of free disk.  You may exit to 
  482.     free more disk space or select another drive to receive the program.
  483.  
  484.     Your drive @OutDrive: has only @DiskFree @OutDrive bytes available.
  485.  
  486.     @SetColor Black Grey
  487.     @Position 14 1
  488.     @Option 90 = " Select New Drive "
  489.     @Option 92 = "  Return to DOS   "
  490.     @EndOption
  491.  
  492.     @If (90 [= @Option)
  493.     @Goto HardDisk
  494.     @Endif
  495.     @Goto Abort
  496. @Else
  497.     @Display
  498.     @scrCLS
  499.     @EndDisplay
  500.  
  501.     @GetSubdir
  502.     The CompuServe Information Manager will be installed on the @OutDrive: drive
  503.     in a subdirectory called DOSCIM, which will be created by default under
  504.     the directory CSERVE (see diagram).  The new directory structure outlined
  505.     below will allow you to use common data contained in the Filing Cabinet,
  506.     In Basket, Address Book, and Session Settings with other CompuServe
  507.     communications software programs such as the CompuServe Information
  508.     Manager for Windows (WinCIM).
  509.     
  510.     C:\CSERVE\
  511.      ├──── DOSCIM          DOS CIM executables & help, Browse menu
  512.      ├──── SCRIPTS         Script files, modem database
  513.      ├──── FCABINET        Filing Cabinet, In Basket, Out Basket
  514.      ├──── SUPPORT         Support files (*.DAT)
  515.      ├──── DOWNLOAD        Default download subdirectory
  516.      └──── GIF             Default GIF download subdirectory
  517.  
  518.     To choose a directory other than CSERVE, edit the path listed below.  
  519.     Be sure to include the complete directory path, omitting the drive name.
  520.  
  521.     @Prompt = " @Name Directory "
  522.     @Position 20 6
  523.     @EndSubdir
  524.  
  525. @DefineVars
  526.     @QString @CIMDIR = "@Subdir\\DOSCIM"
  527. @EndVars
  528.  
  529. @Endif
  530.  
  531.  
  532.  
  533. @If (@GoodSubDir != 1)
  534.     @GetOption
  535.     @scrCLS
  536.  
  537.  
  538.  
  539.     You do not appear to have full read/write access to the drive and 
  540.     directory specified, which is required for installation.
  541.  
  542.     @SetColor Black Grey
  543.     @Position 10 1
  544.     @Option 93 = " Select New Drive "
  545.     @Option 94 = "  Return to DOS   "
  546.     @EndOption
  547.  
  548.     @If (93 [= @Option)
  549.     @Goto HardDisk
  550.     @Endif
  551.     @Goto Abort
  552. @Endif
  553.  
  554.  
  555.  
  556. @Position 10 1
  557. @GetOption
  558.     @scrCLS
  559.  
  560.     The CompuServe Information Manager will be installed 
  561.     under the following directory:
  562.  
  563.                 @OutDrive:@SubDir
  564. @Position 8 1
  565.     @SetColor Black Grey
  566.     @Option 90 = " Continue the Installation "
  567.     @Option 89 = " Change Drive or Directory "
  568.     @Option 91 = "      Return to DOS        "
  569. @EndOption
  570.  
  571. @If (89 [= @Option)
  572.     @Goto HardDisk
  573. @Elseif (91 [= @Option)
  574.     @Goto Abort
  575. @Endif
  576.  
  577. @Call Exists
  578.  
  579. @Return
  580.  
  581. /*
  582.  * Now we need to determine if the user is already a member or if they
  583.  * want to sign up a new account.  If they are already a member we just
  584.  * return.  Otherwise we run CIMUTIL in signup mode.
  585.  */
  586.  
  587. :Signup
  588.  
  589.     @ChDrive @OutDrive
  590.     @ChDir "@CIMDIR"
  591.  
  592.     @Call Wait
  593.     @If (@VideoCard == 'M')
  594.     @Execute "CIMUTIL.EXE", "-NOEMM -SIGNUP -MONO" 
  595.     @Goto Signup_Err1
  596.     @Else
  597.     @Execute "CIMUTIL.EXE", "-NOEMM -SIGNUP"
  598.     @Goto Signup_Err2
  599.     @Endif
  600.  
  601. @Return
  602.  
  603. :MoveFiles
  604.  
  605.     @ChDrive @OutDrive
  606.     @ChDir "@CIMDIR"
  607.  
  608.     @Call Wait
  609.     @Execute "MOVECIM", "@SubDir @SubDir" 
  610.     @Goto Move_Err1
  611.  
  612. @Return
  613.  
  614. :GetInstallDisk
  615.  
  616. @Display
  617. @scrCLS
  618.   @If (@DiskSize @InDrive < 5000000) 
  619.     @If (@Exists "@Indrive:CIM01.LIB")
  620.     @Else
  621.  
  622.     Please re-insert the disk labelled 
  623.     
  624.     Original Diskette 1
  625.     
  626.     into the @InDrive: Drive.
  627.     
  628.     @scrPause
  629.     @EndDisplay
  630.     @goto GetInstallDisk
  631.     @Endif
  632.   @Endif
  633. @Enddisplay
  634. @Return
  635.  
  636. /*
  637.  * Now we need to put together a small routine to display the please
  638.  * wait message for during the time we are spawning to another program.
  639.  * This is because the spawn can take a while.
  640.  */
  641.  
  642. :Wait
  643. @Display
  644. @scrCLS
  645. @Position 10 30 Please Wait ...
  646. @EndDisplay
  647. @Return
  648.  
  649. /*
  650.  * Now we need to determine if the application is already installed
  651.  * or if this is the first time we are installing this application in
  652.  * this directory.
  653.  */
  654.  
  655. :Exists
  656.  
  657. @Display
  658. @scrCLS
  659. @EndDisplay
  660.  
  661. @if (@Exists "@OutDrive:@SubDir\\support\\favorite.dat")
  662.     @GetOption
  663.  
  664.     A previous version of the Favorite Places database exists in your
  665.     support directory.  You can keep this file or replace it with a
  666.     new Favorite Places supplied with this version of CIM.
  667.  
  668.     @SetColor Black Grey
  669.     @Option 20 = "Save Your Favorite Places"
  670.     @Option 21 = " Use New Favorite Places "
  671.     @Option 22 = "     Return to DOS       "
  672.     @EndOption
  673.  
  674.     @if (22 [= @Option)
  675.     @Goto Abort
  676.     @Endif
  677.     @Position 5 1
  678. @Endif
  679.  
  680. @if ("@Online" == "")
  681.  
  682.     @GetOption
  683.     @scrCls
  684.  
  685.     If you are already a CompuServe member and do not plan to create
  686.     a new CompuServe account, you do not need to copy the Signup files to
  687.     your disk drive.  If you would like to become a member, or setup a
  688.     new account, these files are required.
  689.  
  690.     @If (@Exists "@OutDrive:@SubDir\\DOSCIM\\CIM.EXE")
  691.     @Default (2)
  692.     @Endif
  693.  
  694.     @If (@Exists "@OutDrive:@SubDir\\CIM.EXE")
  695.     @Default (2)
  696.     @Endif
  697.  
  698.     @SetColor Black Grey
  699.     @Option 30 = "     Copy the Signup Files    "
  700.     @Option 31 = " Do not Copy the Signup Files "
  701.     @Option 32 = "         Return to DOS         "
  702.     @EndOption
  703.  
  704.     @If (32 [= @Option)
  705.     @Goto Abort
  706.     @Endif
  707.  
  708. @Endif
  709.  
  710. @Return
  711.  
  712. /*
  713.  * Now we are ready to finish up, in this case the user has installed
  714.  * the Information manager.
  715.  */
  716.  
  717. :Finish
  718.  
  719. @if (30 [= @Option)
  720.  
  721.     @GetOption
  722.     @scrCls
  723.  
  724.     If you have not previously accessed CompuServe, you should first
  725.     sign up a new membership.  To do this, you will need your new
  726.     agreement number and serial number which you can find in your
  727.     accompanying documentation.
  728.  
  729.     You can begin the sign up process by selecting "Sign Up a New 
  730.     Membership" below, or by typing
  731.  
  732.         SIGNUP
  733.  
  734.     from a DOS prompt in the @OutDrive:@CIMDIR directory.
  735.  
  736.     @SetColor Black Grey
  737.     @Option 51 = " Sign Up a New Membership "
  738.     @Option 71 = "      Return to DOS       "
  739.     @EndOption
  740.  
  741.     @If (71 [= @Option)
  742.     @Goto NormalExit
  743.     @Elseif (51 [= @Option)
  744.     @Goto Signup
  745.     @Endif
  746.  
  747. @ElseIf (@Exists "@OutDrive:@SubDir\\CIM.EXE")
  748.     @If (@Exists "@OutDrive:@SubDir\\FAVORITE.DAT")
  749.     /* Installed over top an older version of CIM */
  750.     /* Present option of using old data files and filing cabinet */
  751.  
  752.     @GetOption
  753.         @scrCls
  754.  
  755.     The version of the CompuServe Information Manager (CIM) that
  756.     you are installing utilizes a new subdirectory organization.
  757.     This new organization allows other CompuServe communications software
  758.     for DOS machines to share Filing Cabinet, In Basket, Out Basket,
  759.     Connect scripts, and other data files with DOS CIM.
  760.       
  761.     We strongly recommend that you reorganize your DOS CIM files now
  762.     by selecting REORGANIZE FILES below.  Otherwise, you will not be
  763.     able to access the contents of your existing Filing Cabinet, Address
  764.     Book, and other data files.                                                 
  765.  
  766.  
  767.  
  768.         @SetColor Black Grey
  769.         @Option 52 = " Reorganize Files "
  770.         @Option 72 = " End Installation "
  771.     @EndOption
  772.  
  773.     @If (72 [= @Option)
  774.         @Goto NoMoveExit
  775.     @Elseif (52 [= @Option)
  776.         @Goto MoveFiles
  777.     @Endif
  778.  
  779.     @EndIf
  780.  
  781. @ElseIf ("@Online" != "")
  782.     @Display
  783.     @scrCls
  784.  
  785.     If you were using a version of CIM prior to 2.1 and want to use the
  786.     contents of your old Filing Cabinet, Address Book, Favorite Places,
  787.     and other data files, please read the contents of README.TXT in
  788.     the DOSCIM subdirectory.
  789.  
  790.     @scrPause
  791.     @EndDisplay
  792.  
  793. @EndIf
  794.  
  795. @Goto Abort
  796.  
  797. :Signup_Err1
  798.  
  799. @Display
  800.     @scrCls
  801.  
  802.     The install program was unable to run the Signup program directly
  803.     due to your system configuration.
  804.  
  805.     In order to sign up with CompuServe, please enter the following 
  806.     command exactly as it appears at the dos command line:
  807.  
  808.  
  809.     CIMUTIL -SIGNUP -MONO 
  810.  
  811.  
  812.  
  813.     Press ENTER to return to DOS.
  814.  
  815.     @scrPause
  816. @EndDisplay
  817. @Exit
  818.  
  819.  
  820. :Signup_Err2
  821.  
  822. @Display
  823.     @scrCls
  824.  
  825.     The install program was unable to run the Signup program directly
  826.     due to your system configuration.
  827.  
  828.     In order to sign up with CompuServe, please enter the following 
  829.     command exactly as it appears at the dos command line:
  830.  
  831.  
  832.     CIMUTIL -SIGNUP 
  833.  
  834.  
  835.  
  836.     Press ENTER to return to DOS.
  837.  
  838.     @scrPause
  839. @EndDisplay
  840.  
  841. @Exit
  842.  
  843. :Move_Err1
  844.  
  845. @Display
  846.     @scrCls
  847.  
  848.     The install program was unable to run the Movecim program directly
  849.     due to your system configuration.
  850.  
  851.     In order to reorganize your files to use the new directory structure,
  852.     please enter the following command exactly as it appears at the 
  853.     dos command line:
  854.  
  855.  
  856.     MOVECIM @SubDir @SubDir 
  857.  
  858.  
  859.  
  860.     Press ENTER to return to DOS.
  861.  
  862.     @scrPause
  863. @EndDisplay
  864. @Exit
  865.  
  866.