home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / smxdemo / demo.inf < prev    next >
Text File  |  1993-07-13  |  11KB  |  427 lines

  1. ;; Script for smx Demo Disk
  2.  
  3. DefineVariables
  4.   Directory [InstalDir] := C:\SMXDEMO
  5. EndDefineVariables
  6.  
  7. Do Setup
  8.  
  9. :Main
  10. If FileExists [InstallFromDrive]:\continue.x
  11.   DeleteFiles from [InstallFromDrive]:\ Quietly
  12.     continue.x
  13.   EndDeleteFiles
  14.   GoTo SkipOpeningMsgs
  15. EndIf
  16.  
  17. Dialog 1800
  18.   Welcome to the smx Demos!
  19. EndDialog
  20.  
  21. Dialog 4400
  22.   smx is a Registered Trademark of Micro Digital Inc.
  23.  
  24.   286smx, smx++, smxDLM, smxEMS, smxFile, smxProbe,
  25.   and smxWindows are Trademarks of Micro Digital Inc.
  26. EndDialog
  27.  
  28. Dialog PressAKey
  29.   .cNotice to CD Users
  30.  
  31.   The smx demos are designed to be run from a 
  32.   diskette.  This is due to the need to reboot
  33.   in a controlled manner. If running from a CD, 
  34.   please stop now (Ctrl-X), and perform the 
  35.   following steps:
  36.  
  37.   .i1. Format a High Density, bootable diskette:
  38.  
  39.   .cformat a:/s
  40.  
  41.   .i2. Copy all Demo files to it, preserving 
  42.   .i   subdirectories. Example:
  43.  
  44.   .cxcopy /s/v e:\smxdir\*.*  a:\ 
  45. EndDialog
  46.  
  47. Dialog PressAKey
  48.   Please observe the following instructions for 
  49.   running these demos:
  50.  
  51.   .i1. THE DEMO DISK MUST BE RUN FROM DRIVE A:.
  52.  
  53.   .i2. LEAVE THE DISK IN DRIVE A: FOR THE ENTIRE
  54.   .i   TIME YOU ARE RUNNING THE DEMOS.
  55.  
  56.   .i3. DO NOT WRITE-PROTECT THE DISK.
  57.  
  58.   Some of the demos require rebooting the computer,
  59.   and, in some cases, a file is written onto the
  60.   Demo Disk to control rebooting.  If your A: drive
  61.   is 3 1/2", exit (Ctrl-X) and follow the instruc-
  62.   tions in the read.me file on the Demo Disk.
  63. EndDialog
  64.  
  65. Dialog PressAKey
  66.   Select the demos you wish to run from the menu
  67.   which will appear shortly.
  68.  
  69.   Before running, each demo is decompressed onto 
  70.   your hard disk. You can run the demos directly 
  71.   from your hard disk, once installed, if you wish.
  72.  
  73.   .cNOTE
  74.   Do not try to run the .exe files on the floppy. 
  75.   These are self-decompressing files, not the 
  76.   actual demos.
  77. EndDialog
  78.  
  79. Dialog PressAKey
  80.   Demo files are copied into C:\SMXDEMO.
  81.  
  82.   If you lack space on C: or want files placed
  83.   somewhere else, exit now (Ctrl-X).  Then
  84.   change demo.inf and autoexec.bat on the demo
  85.   disk to use a different disk or directory.
  86. EndDialog
  87. :SkipOpeningMsgs
  88. CreateDirectoryIfNecessary [InstalDir]
  89. ChangeDirectoryTo [InstalDir]
  90. Do DemoMenu
  91.  
  92.  
  93. Procedure DemoMenu
  94.   SetBottomLineTo "  Copyright (c) 1992-93 Micro Digital, Inc.  "
  95.  
  96. :Beginning
  97.   TextBox @XY(Center, 18)
  98.     Use  to select, Enter to start demo.
  99.     .cPgDn to see all choices.
  100.   EndTextBox
  101.  
  102.   GetMenuChoice @xy(Center,6) UseHeader " smx Demos "
  103.     Multitasking Example                (PCdemo)
  104.     Debugger & Text Windowing Package   (smxProbe & smxWindows)
  105.     File Manager                        (smxFile)
  106.     smx Class Library                   (smx++)
  107.     Dynamic Load Modules                (smxDLM)
  108.     16-bit Protected Mode               (286smx)
  109.     Extended Memory Services            (smxEMS)
  110.     Slide Show                          (smx)
  111.     Exit
  112.   EndGetMenuChoice
  113.  
  114.   InCase Choice is
  115.     =1:  Do PCdemo
  116.     =2:  Do WinDemo
  117.     =3:  Do smxFILE
  118.     =4:  Do smxPP
  119.     =5:  Do DLM
  120.     =6:  Do 286demo
  121.     =7:  Do EMS
  122.     =8:  Do Slideshow
  123.     =9:  Do Quit
  124.   EndInCase
  125.  
  126.   ClearScreen
  127.   GoTo Beginning
  128. EndProcedure
  129.  
  130.  
  131.  
  132. Procedure PCdemo
  133.   ClearScreen
  134.   Do Root
  135.   If DirectoryExists [InstalDir]\pcdemo
  136.   Else
  137.     Do LeadIn
  138.     OSCommand [InstallFromDrive]:\pcdemo\pcdemo -d Quietly
  139.   EndIf
  140.   ChangeDirectoryTo [InstalDir]\pcdemo
  141.   ClearScreen
  142.   BrowseFile pcdemo.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  143.   Run pcdemolt.exe NoFrame NoPrompt
  144.   Do Trailer
  145. EndProcedure
  146.  
  147.  
  148. Procedure WinDemo
  149.   ClearScreen
  150.   Do Root
  151.   If DirectoryExists [InstalDir]\windemo
  152.   Else
  153.     Do LeadIn
  154.     OSCommand [InstallFromDrive]:\windemo\windemo -d Quietly
  155.   EndIf
  156.   ChangeDirectoryTo [InstalDir]\windemo
  157.   ClearScreen
  158.   BrowseFile windemo.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  159.   Run windemo.exe NoFrame NoPrompt
  160.   Do Trailer
  161. EndProcedure
  162.  
  163. Procedure smxPP
  164.   ClearScreen
  165.   Do Root
  166.   If DirectoryExists [InstalDir]\smxpp
  167.   Else
  168.     Do LeadIn
  169.     OSCommand [InstallFromDrive]:\smxpp\smxpp -d Quietly
  170.   EndIf
  171.   ChangeDirectoryTo [InstalDir]\smxpp
  172.   ClearScreen
  173.   BrowseFile smxpp.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  174.   ChangeDirectoryTo [InstalDir]\smxpp\ddemopp
  175.   Run ddemolt.exe NoFrame NoPrompt
  176.   Do Trailer
  177. EndProcedure
  178.  
  179. Procedure smxFILE
  180.   ClearScreen
  181.   Do Root
  182.   If DirectoryExists [InstalDir]\file
  183.   Else
  184.     Do LeadIn
  185.     OSCommand [InstallFromDrive]:\file\file -d Quietly
  186.   EndIf
  187.   ChangeDirectoryTo [InstalDir]\file
  188.   ClearScreen
  189.   BrowseFile file.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  190.  
  191.   GetMenuChoice
  192.     Run with BIOS Drivers
  193.     Run with Our IDE and Floppy Drivers
  194.          ; Do NOT select this option unless you have an IDE drive!
  195.   EndGetMenuChoice
  196.   InCase Choice is
  197.     =1:  GoTo BIOS
  198.     =2:  GoTo OurDriver
  199.   EndInCase
  200.  
  201. :BIOS  
  202.   CreateFile [InstallFromDrive]:\file.x
  203.   Dialog PressAKey
  204.     In order for the File Manager demo to run, it is nec-
  205.     essary to reboot your computer.  The demo will begin 
  206.     automatically after booting from the Demo Disk.
  207.   EndDialog
  208.   GoTo EndOurDriver
  209.  
  210. :OurDriver
  211.   CreateFile [InstallFromDrive]:\filed.x
  212.   Dialog PressAKey
  213.     In order for the File Manager demo to run, it is nec-
  214.     essary to reboot your computer.  The demo will begin 
  215.     automatically after booting from the Demo Disk.
  216.  
  217.     AFTER YOU ARE DONE RUNNING THE FILE MANAGER DEMO WITH 
  218.     OUR DRIVERS, REBOOT AGAIN.  This is necessary because 
  219.     our drivers bypass the BIOS.  When the demo completes, 
  220.     the BIOS takes over, but it gets confused about what 
  221.     has happened in the interim.
  222.   EndDialog
  223. :EndOurDriver
  224.   Dialog 30000
  225.     .cReboot Your Computer Now.
  226.  
  227.     The File Manager demo will begin automatically
  228.     after rebooting.
  229.   EndDialog
  230.   Do Trailer
  231. EndProcedure
  232.  
  233.  
  234. Procedure DLM
  235.   ClearScreen
  236.   Do Root
  237.   If DirectoryExists [InstalDir]\dlm
  238.   Else
  239.     Do LeadIn
  240.     OSCommand [InstallFromDrive]:\dlm\dlm -d Quietly
  241.   EndIf
  242.   ChangeDirectoryTo [InstalDir]\dlm
  243.   ClearScreen
  244.   BrowseFile dlm.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  245.   Dialog PressAKey
  246.     You can load and run the following DLM's 
  247.     while running this demo:
  248.  
  249.     .i   1. msg
  250.     .i   2. prempt
  251.     .i   3. sleep
  252.  
  253.     You can also unload and reload these DLM's.
  254.   EndDialog
  255.   Run dlm.exe NoFrame NoPrompt
  256.   Do Trailer
  257. EndProcedure
  258.  
  259. Procedure 286demo
  260.   ClearScreen
  261.   Do Root
  262.   If DirectoryExists [InstalDir]\286
  263.   Else
  264.     Do LeadIn
  265.     OSCommand [InstallFromDrive]:\286\286 -d Quietly
  266.   EndIf
  267.   ChangeDirectoryTo [InstalDir]\286
  268.   ClearScreen
  269.   BrowseFile 286.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  270.   CreateFile [InstallFromDrive]:\286.x
  271.   Dialog 60000
  272.     286Demo cannot be run from within this instal
  273.     utility.  If you reboot your computer from the
  274.     Demo Disk, 286Demo will begin automatically.
  275.  
  276.     Before you reboot, though, you must make sure
  277.     that the Phar Lap 286|DOS Extender is installed
  278.     on your system.
  279.  
  280.     Exit now, using Ctrl-X, to add the path to run286
  281.     to the path statement in autoexec.bat on the Demo 
  282.     Disk.  Then reboot.
  283.   EndDialog
  284.   Do Trailer
  285. EndProcedure
  286.  
  287. Procedure EMS
  288.   ClearScreen
  289.   Do Root
  290.   If DirectoryExists [InstalDir]\ems
  291.   Else
  292.     Do LeadIn
  293.     OSCommand [InstallFromDrive]:\ems\ems -d Quietly
  294.   EndIf
  295.   ChangeDirectoryTo [InstalDir]\ems
  296.   ClearScreen
  297.   BrowseFile ems.doc WhiteOnMagenta UseHeader ".L Press Esc to Start Demo "
  298.   CreateFile [InstallFromDrive]:\ems.x
  299.   Dialog PressAKey
  300.     Memory Managers such as DPMI servers and HIMEM.SYS
  301.     conflict with smxEMS.  When running an smxEMS
  302.     application, it is necessary to remove all other
  303.     memory managers.  In order to accomplish this for
  304.     the demo, just reboot your computer from the Demo
  305.     Disk.  This will ensure that none of the memory 
  306.     managers you normally use will be running.
  307.   EndDialog
  308.   Dialog 30000
  309.     Reboot Your Comp