/* * FILE: install.DAT * DESC: INSTALL program script for ZyINDEX for Windows Demo */ @DefineProject @Name = "ZyINDEX Windows & DOS Demos" @Version = "1.02" @Subdir = "\\ZYdemo\\" @Outdrive = C @terse @EndProject @If (((@OSMajor * 100) + @OSMinor) < 300 ) @Display @Cls This Demo requires DOS version 3.00 or higher. @ pause @Enddisplay @Abort @EndIf @GetOption Press ENTER to install ZyINDEX demos in C:\ZYDEMO Or use ARROWS to change selection and then press ENTER. @Option 1 = "Ok, continue" @Option 2 = "Specify installation directory" @EndOption @If (2 [= @Option) @GetOutDrive @Suppress A @Suppress B @cls @Name installation Use arrow keys to select a drive for the demos and press [ENTER]. @EndOutDrive @GetSubdir @cls @Name installation @Prompt = "Enter the path for the demos or press [Enter] for @Subdir" @EndSubdir @Endif /* test for drive space here */ @Display @If (@DiskFree @OutDrive < 1400000) Drive @OutDrive only has @DiskFree bytes free. ZyINDEX demos require approximately 1.4 Mb This program will return to DOS without installing the demos. You should choose a different drive, OR make more free space on @OutDrive and then start the install program again. @Pause @Abort @EndIf @EndDisplay /* Distribution disks definitions */ /* All demo stuff in one file, windemo.lib */ @DefineDisk @Label = "Disk 1" @beginlib demobat.lib @File *.* @endlib @beginlib windemo.lib @File *.* @Out windemo\*.* @endlib @beginlib dosdemo.lib @File *.* @Out dosdemo\*.* @endlib @enddisk @Finish @Cls /* set CWD to the demo dir */ @chdrive @outdrive @chdir "@subdir" @Execute "instruct" , "" @EndFinish /* install end */