home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR9 / UNST13.ZIP / GOODSOFT < prev    next >
Text File  |  1993-08-16  |  11KB  |  431 lines

  1. ;************************************************************************
  2. ; Universal INSTALL Demo Script File                                         
  3. ; This script uses most of the more advanced features of Universal INSTALL.  
  4. ;
  5. ; We use this script for creating the demo installation routine
  6. ;                                                                                                     
  7. ;************************************************************************
  8. ;
  9. KeepLogFile =install.log
  10. [Setup main screen]
  11.   ClearScreen
  12.   BackplaneType Teal =▒
  13.   TopBar Red on Gray =Universal INSTALL Demonstration
  14.   BottomBar Black on Gray =Press F1 for more information
  15. ;--------
  16. ;
  17. ;--------
  18. [Intro Window]
  19.   BuildWindow
  20.     WindowColor =White
  21.     Border =Blue
  22.     StartRow =Center
  23.     StartColumn =Center
  24.     ColumnMargin =1
  25.     RowMargin =8
  26.     PopUp =No
  27.     ShadowType =Big
  28.     TopTitle =Welcome!
  29.     BottomTitle =Press ENTER to continue, ESC to quit
  30.   EndWindow
  31.   BuildWindow
  32.     WindowColor =Gray
  33.     StartRow =Window+1
  34.     StartColumn =Center
  35.     ShadowType =Small
  36.     ColumnMargin =8
  37.     RowMargin =0
  38.     Text White 1,7  =┌───────────────┐
  39.     Text White 1,8  =│               │
  40.     Text White 1,9  =└───────────────┘
  41.     Text Blue  4,8  =Version 1.30
  42.   EndWindow
  43.   BuildWindow
  44.     WindowColor =Blue
  45.     StartRow =Window+2
  46.     StartColumn =Window+2
  47.     ShadowType =Small
  48.     RowMargin =1
  49.     Text White Center =Universal Install
  50.     Text White Center =For easy installations
  51.   EndWindow
  52.   BuildWindow
  53.     WindowColor =Cyan
  54.     StartRow =Window+12
  55.     StartColumn =Center
  56.     ShadowType =Small
  57.     ShadowColor =Gray
  58.     RowMargin =0
  59.     ColumnMargin =6
  60.     Text Black Center =(C) Copyright 1992,93
  61.     Text Black Center =The GoodSoft Co.
  62.   EndWindow
  63.   Wait = Enter,Esc,F1
  64.   On (Esc) Jump =Quit
  65.   On (F1) Jump =About Demo
  66. ;--------
  67. ;
  68. ;--------
  69. [About Open Install]
  70.   BottomBar Black on Gray=
  71.   ClearPlane
  72.   BuildWindow
  73.     WindowColor =White
  74.     Border =Red
  75.     StartRow =Center
  76.     StartColumn =Center
  77.     ColumnMargin =14
  78.     RowMargin =8
  79.     PopUp =No
  80.     ShadowType =Big
  81.     BottomTitle =Press ENTER to continue, ESC to quit
  82.   EndWindow
  83.   BuildWindow
  84.     WindowColor =Gray
  85.     StartRow =Window+1
  86.     StartColumn =Center
  87.     ColumnMargin =2
  88.     RowMargin =1
  89.     ShadowType =Small
  90.     Text Black =Thank you for trying                  , the best
  91.     Text Black =DOS installation package on the market!
  92.     Text Black =
  93.     Text Red   =Some things to remember...
  94.     Text Black =
  95.     Text Black = All colors, text, windows, etc. are under YOUR control
  96.     Text Black =with Universal INSTALL - no "canned" routines here.
  97.     Text Black =Universal INSTALL can look like your own software!
  98.     Text Black =
  99.     Text Black =A custom installation program that matches the style
  100.     Text Black =of your software is available without ANY programming.
  101.     Text Red (25,1) =UNIVERSAL INSTALL
  102.   EndWindow
  103.   Wait =Enter,Esc
  104.   On (Esc) Jump =Quit
  105. ;----------
  106. ;
  107. ;----------
  108. [About Installation]
  109.   ClearPlane
  110.   BuildWindow
  111.     WindowColor =White
  112.     Border =Magenta
  113.     StartRow =Center
  114.     StartColumn =Center
  115.     ColumnMargin =10
  116.     RowMargin =8
  117.     PopUp =No
  118.     ShadowType =Big
  119.     Text Gray =
  120.     BottomTitle =Press ENTER to continue, ESC to quit
  121.   EndWindow
  122.   BuildWindow
  123.     WindowColor =Gray
  124.     StartRow =Center
  125.     StartColumn =Center
  126.     ShadowType =Small
  127.     ColumnMargin =2
  128.     RowMargin =1
  129.     Text Black Center =This installation demo will do the following:
  130.     Text Black Center =
  131.     Text Black 4,3  =Copy two small text files to your system's
  132.     Text Black 4,4  =hard disk to the directory you specify.
  133.     Text Black 4,6  =Add a sample line to your CONFIG.SYS file
  134.     Text Black 4,7  =(don't worry, it won't affect your setup)
  135.     Text Black 4,9  =Add a sample line to your AUTOEXEC.BAT file
  136.     Text Black 4,10 =(also won't affect your software setup)
  137.     Text Black 4,12 =Reboot your computer (if you choose).
  138.     Text Blue 1,3  =1)
  139.     Text Blue 1,6  =2)
  140.     Text Blue 1,9  =3)
  141.     Text Blue 1,12 =4)
  142.   EndWindow
  143.   Wait = Enter,Esc
  144.   On (Esc) Jump =Quit
  145. ;----------
  146. ;
  147. ;----------
  148. [Input directory]
  149.   ClearPlane
  150.   FindBootDrive
  151.   BuildWindow
  152.     WindowColor =Gray
  153.     Border =Blue
  154.     StartRow =Center
  155.     StartColumn =Center
  156.     ColumnMargin =2
  157.     RowMargin =2
  158.     ShadowType =Big
  159.     BottomTitle =Press ENTER to continue, ESC to quit
  160.     Text Black Center =In the space below, type the directory path where you would
  161.     Text Black Center =like INSTALL to copy the text files FILE1.TXT and FILE2.TXT
  162.     Text Black Center =
  163.     Text Blue Center  =This is an example of using input from
  164.     Text Blue Center  =the user to customize the installation process.
  165.     Text Blue =
  166.     Text Blue =
  167.     Text Black 12,8 =Copy files to:
  168.   EndWindow
  169.   Input
  170.     StartRow = Window+9
  171.     StartColumn =Window+30
  172.     Action =Enter, Esc
  173.     TextColor =White on Blue
  174.     Default =$BOOTDRIVEDEMO
  175.     Width =15
  176.   EndInput
  177.   On (Esc) Jump=Quit early
  178. ;----------
  179. ;
  180. ;----------
  181. [Check Free Space]
  182.   DiskSpaceReq = 200
  183.   CheckDiskSpace =$INPUTRESULT
  184. ;----------
  185. ;
  186. ;----------
  187. [Pick disk drive]
  188.   ClearPlane
  189.   BuildWindow
  190.     WindowColor =Gray
  191.     Border =Blue
  192.     StartRow =Center
  193.     StartColumn =Center
  194.     ColumnMargin =5
  195.     RowMargin =1
  196.     Text Black =Use the arrow keys to choose a sample button.
  197.     Text Black =
  198.     Text Blue =This is an example of using "buttons"
  199.     Text Blue =to get input from the user.
  200.     Text Blue =
  201.     Text Blue =
  202.     Text Blue =
  203.     Text Blue =
  204.     Text Blue =
  205.     Text Blue =
  206.     ShadowType =Big
  207.     TopTitle    =Please select an installation choice:
  208.     BottomTitle =Press ENTER to continue, ESC to quit
  209.   EndWindow
  210.   Buttons
  211.     RowMargin =1
  212.     ColumnMargin =4
  213.     StartRow =Window+6
  214.     StartCol =Window+8
  215.     ButtonOnColor  =White on Blue
  216.     ButtonOffColor =Black on Gray
  217.     Travel =Horizontal
  218.     Distance =5
  219.     Message =Choice A
  220.     Message =Choice B
  221.   EndButtons
  222.   On (Esc) Jump =Quit early
  223. ;-----------
  224. ;
  225. ;-----------
  226. [Copy Files]
  227.   Text White on Blue 13,18 =Copying file:                                ÉÉ
  228.   StartCopy
  229.     DestPath =$INPUTRESULT
  230.     StatusColumn =28
  231.     StatusRow =18
  232.     StatusLineFG =White
  233.     StatusLineBG =Blue
  234.     CopyFile =FILE1.TXT
  235.     CopyFile =FILE2.TXT
  236.   EndCopy
  237.   SystemDelay =1
  238.   Text White on Blue 13,18 =      Finished copying - Press ENTER to continue     ÉÉ
  239.   Wait =Enter,Esc
  240.   On (Esc) Jump=Quit Early
  241. ;-----------
  242. ;
  243. ;-----------
  244. [Update CONFIG.SYS]
  245.   ClearPlane
  246.   BuildWindow
  247.     WindowColor =White
  248.     Border =Blue
  249.     StartRow =Center
  250.     StartColumn =Center
  251.     ColumnMargin =25
  252.     RowMargin =4
  253.     Text White =
  254.     ShadowType =Big
  255.   EndWindow
  256.   BuildWindow
  257.     WindowColor =Gray
  258.     ShadowType =Small
  259.     StartRow =Window+1
  260.     StartColumn =Window+2
  261.     ColumnMargin =5
  262.     RowMargin =1
  263.     Text Blue =The following line has been added to
  264.     Text Blue =your CONFIG.SYS file
  265.     Text Blue =
  266.     Text Blue =
  267.   EndWIndow
  268.   Text Black on Gray (31,13) =Checking CPU type...
  269.   ModifyConfig
  270.     SaveOriginal =config.old
  271.     AddLine =REM load product w/
  272.     FindString =buffers
  273.     Parameters
  274.       8088 CPU switch
  275.       8086 CPU switch
  276.       V20 CPU switch
  277.       V30 CPU switch
  278.       80286 CPU switch
  279.       386,486 switch
  280.     EndParameters
  281.   EndConfig
  282.   Text Black on Gray (22,13) =$CONFIGRESULT
  283.   Text White on Blue (28,17) =Press ENTER to continue...
  284.   Wait =Enter,Esc
  285.   On (Esc) Jump =Quit early
  286. ;-----------
  287. ;
  288. ;-----------
  289. [Modify AUTOEXEC.BAT]
  290.   ClearPlane
  291.   BuildWindow
  292.     WindowColor =White
  293.     Border =Red
  294.     StartRow =Center
  295.     StartColumn =Center
  296.     ColumnMargin =25
  297.     RowMargin =4
  298.     Text white =
  299.     ShadowType =Big
  300.   EndWindow
  301.   BuildWindow
  302.     WindowColor =Gray
  303.     ShadowType =Small
  304.     ColumnMargin =5
  305.     RowMargin =1
  306.     StartRow =Window+1
  307.     StartColumn =Window+2
  308.     Text Red =The following line has been added to
  309.     Text Red =your AUTOEXEC.BAT file
  310.     Text Red =
  311.     Text Red =
  312.   EndWIndow
  313.   ModifyAutoExec
  314.     SaveOriginal =autoexec.old
  315.     AddLine =echo Thanks for trying Universal INSTALL!
  316.     AddPath =c:\demo
  317.   EndAutoExec
  318.   Text Black on Gray (19,13) =$AUTOEXECRESULT
  319.   Text White on Red (28,17) =Press ENTER to continue...
  320.   Wait =Enter,Esc
  321.   On (Esc) Jump =Quit early
  322. ;---------
  323. ;
  324. ;---------
  325. [Finished]
  326.   ClearPlane
  327.   BuildWindow
  328.     WindowColor =White
  329.     Border =Magenta
  330.     StartRow =4
  331.     StartColumn =Center
  332.     ColumnMargin =2
  333.     RowMargin   =9
  334.     PopUp =No
  335.     ShadowType =Big
  336.     BottomTitle =Press ESC to reboot, ENTER to quit
  337.   EndWindow
  338.   BuildWindow
  339.     WindowColor =Gray
  340.     StartRow =Window+1
  341.     StartColumn =Center
  342.     ColumnMargin =2
  343.     RowMargin =1
  344.     ShadowType =Small
  345.     Text Magenta =Universal INSTALL is now done
  346.     Text Magenta =with the demo installation.
  347.     Text Black =
  348.     Text Black =To reboot your computer now,
  349.     Text Black =press the ESC key. To return
  350.     Text Black =to the DOS prompt now,
  351.     Text Black =press the ENTER key.
  352.     Text Black =
  353.     Text Black =Run README.EXE for more info
  354.     Text Black =
  355.     Text Black =The GoodSoft Co.
  356.     Text Black =1630 30th Street, Suite 235
  357.     Text Black =Boulder, Colorado 80301 USA
  358.   EndWindow
  359.   Wait = Enter,Esc
  360.   On (Esc) Jump =Reboot
  361.   Jump =Quit
  362. ;---------
  363. ;
  364. ;---------
  365. [Quit early]
  366.   BuildWindow
  367.     WindowColor =Gray
  368.     Border =Magenta
  369.     StartRow =6
  370.     StartColumn =Center
  371.     ColumnMargin =3
  372.     RowMargin =2
  373.     PopUp =Yes
  374.     ShadowType =Big
  375.     Text Magenta =This is an example of a pop up window that
  376.     Text Magenta =you might use to warn the user that the
  377.     Text Magenta =installation is not complete.
  378.     Text Black =
  379.     Text Black =If you quit the installation at this point,
  380.     Text Black =not everything for the "Demo Install" is in place.
  381.     Text Black =If you wish to quit now, we recommend running
  382.     Text Black =INSTALL again at a later date.
  383.     TopTitle =Warning: Installation is not complete!
  384.     BottomTitle =Press ESC to quit, ENTER to continue installation
  385.   EndWindow
  386.   Wait = Enter,Esc
  387.   CloseWindow
  388.   On (Enter) Jump =Input directory
  389.   Jump =Quit
  390. ;-----------
  391. ;
  392. ;-----------
  393. [About Demo]
  394.   BuildWindow
  395.     WindowColor =Gray
  396.     Border =Red
  397.     StartRow =4
  398.     StartColumn =15
  399.     ColumnMargin =3
  400.     RowMargin =1
  401.     PopUp =Yes
  402.     ShadowType =Big
  403.     Text Black =This demo was created to showcase some of the
  404.     Text Black =features of "Universal INSTALL", a try it
  405.     Text Black =before you buy it installation package.
  406.     Text Black =
  407.     Text Black =Universal INSTALL allows software developers
  408.     Text Black =to quickly and painlessly create an install
  409.     Text Black =program for their product. Remember: first
  410.     Text Black =impressions of your product mean a lot!
  411.     Text Black =
  412.     Text Black =Please be sure to run README.EXE for more info
  413.     TopTitle =About this demo
  414.     BottomTitle =Press ENTER to continue installation
  415.   EndWindow
  416.   Wait = Enter
  417.   CloseWindow
  418.   Jump =Intro window
  419. ;-------
  420. ;
  421. ;-------
  422. [Reboot]
  423.   ClearScreen
  424.   WarmReboot
  425. ;-----
  426. ;
  427. ;-----
  428. [Quit]
  429.   ClearScreen
  430.   Stop
  431.