//
// TASKING setup program
//
// This program was generated using:
//  root directory:      cwright
//  product code:        TK0095
//  product description: EDE
//  release number:      1.8
//  protection flag:     n
//  copyright flag:      y
//  include directory:   i:\\include\\tasking\\
//  setup directory:     g:\\usr\\sec\\fabr\\install\\
//  host:                01
//  bin directory:       g:\usr\sec\fabr\bin\
//  product group name:  EDE
//  windows flag:        y
//  manual names:        EDE manual
//  manual files:        m_edewin.hlp
//  winexe names:        EDE
//  winexe files:        cw.exe
//  readme names:        EDE readme,Support via CompuServe
//  readme files:        rb0095,compu.hlp
//  winpif names:        
//  winpif files:        
//

@DefineProject
 @Name        = "EDE"
 @Version     = "1.8"
 @Subdir      = "cwright"
 @OutDrive    = C
 @Immediate   = 1 //  low memory consumption
 @OutDiskBell = 1
@EndProject

@DefineVars
 @Integer @Debug  = 0           // 0 is no debug mode
 @Integer @Key    = 0           // no hardware key
 @Integer @DOS    = 1           // define for DOS
 @Integer @MinRAM = 500000     // minimal amound of RAM required
 @Qstring @Serial = "xxxxx"
 @Qstring @Logfile ="log"
 @Qstring @Product ="EDE 1.8"
 @Qstring @WWW = "http://www.tasking.nl"
 @Qstring @CWExe = "@GetEnv("PATH")"
 @Integer @Number = 0
 @Qstring @CWLib = "@GetEnv("CWLIB")"
 @Qstring @CWEde = "@GetEnv("CWEDE")"
 @Qstring @CWMenu = "@GetEnv("CWMENU")"
 @Qstring @Line = ""
@EndVars

// welcome our customer
@Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   Welcome to the setup program of TASKING.

   The @Product will be 
   installed to your computer on the drive and directory
   of your choice.

   If you make a mistake while typing, press the BACKSPACE key
   and then retype the answer. Use the ENTER key to confirm your 
   selection.

 @LocalWindow(20,45)
   
 @Pause

@EndDisplay

// setup for MS-DOS and MS-Windows
@Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   This setup program runs as an MS-Windows program 
   when MS-Windows is installed on your PC and is active. 
   When MS-Windows is NOT installed or is NOT active 
   this program will run as an MS-DOS application. 

   All components of this product are installed but the combination
   with the TASKING Embedded Development Environment only works
   when using MS-Windows.
 @LocalWindow(20,45)
   
 @Pause

@EndDisplay

// serial number information
@GetString @Serial
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   This software comes with a serial number. The number can be found
   at the back of the first diskette. Please enter this serial 
   number.

   @Prompt = "Please enter serial number:"
   
@EndString

// check RAM only for MS-DOS
@If (@Platform == @DOS)
 @If (@RAMAvail <= @MinRAM)
  @Display
   @Cls
   @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
   @EndIf

   To be able to run this TASKING product you will need a minimum 
   of @MinRAM bytes of RAM. Currently you have @RAMAvail bytes of RAM
   available. Please make more memory available and try to install this
   product again. This setup program will now terminate.

   @LocalWindow(20,45)
   
   @Pause

  @EndDisplay
  @Abort
 @EndIf
@EndIf


// hardware key
@If (@Key)
 @Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   This software is protected with a hardware key (dongle). This key must
   be inserted in the printer port LPT1 of your PC. Although our software
   is tested on various machines it is always possible that your hardware
   has problems with the key. Please contact TASKING technical support
   if you encounter any problems with the key.

 @LocalWindow(20,45)
   
 @Pause

 @EndDisplay
@EndIf

// get drive
@Getoutdrive
 @Cls
  @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   Please specify the drive you wish to install to:

 @LocalWindow(10,30)
@Endoutdrive

// get subdirectory
@Getsubdir
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup program for @Product" )
 @EndIf
   
   Please specify the installation directory:

 @LocalWindow(10,35)

 @Prompt = "Which subdirectory."
@Endsubdir

@If (@Debug)
 @Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   Selected options are:
      
   Target drive:                    @OutDrive
   Target directory:                @Subdir
   RAM available:                   @RAMAvail
   RAM total:                       @RAMTotal
   

 @LocalWindow(20,45)
   
 @Pause

 @EndDisplay
@EndIf

// support
@Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   When you encounter any problems with TASKING products please
   contact your distributor or TASKING technical support.

   TASKING in the United States:
   telephone:
	       1-617-320-9400
   fax:
	       1-617-320-9743
   E-mail:
	       support_us@@tasking.nl
   Internet:
	       @WWW

   You can also reach us on CompuServe: GO TASKING and select
   Tasking Software.

 @LocalWindow(20,45)
   
 @Pause

@EndDisplay

@Display
 @Cls
 @If (@Platform == @DOS)
  @MoveCStr( 2, 3, 27, "TASKING setup for @Product" )
 @EndIf

   When you encounter any problems with TASKING products please
   contact your distributor or TASKING technical support.

   TASKING in Europe:
   telephone:
	       +31 33 4558584
   fax:
	       +31 33 4551005
   E-mail:
	       support_nl@@tasking.nl
   Internet:
	       @WWW

   You can also reach us on CompuServe: GO TASKING and select
   Tasking Software.

 @LocalWindow(20,45)
   
 @Pause

@EndDisplay

@DefineDisk
 @Label = "part 1"
@BeginLib product\00035.RED
		@File CWDLL.DLL @Size 421920  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00040.RED
		@File CWHELP.HLP @Size 253771  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00039.RED
		@File CWHELP.HLB @Size 253771  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00058.RED
		@File CWSTART.DLL @Size 225280  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00089.RED
		@File WTAGS.EXE @Size 164352  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00117.RED
		@File CWBSC7.DLL @Size 53760  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00048.RED
		@File CWRIGHT.31B @Size 823  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@BeginLib product\00095.RED
		@File 51V305.SUP @Size 59  @Out @OutDrive:\@Subdir\*.*
	@EndLib
@EndDisk
@Chain("part 2")
