home *** CD-ROM | disk | FTP | other *** search
- .. *******************************************
- .. *** Initial *** Set Initialize Data . ***
- .. *** Date : 81-01-16 AM 8:20 ***
- .. *******************************************
- .cursor off
- .define @BackGround Blue
- .define @ForGround White
- .define @ETRed Red
- .define @ETGreen Green
- .define @ETLightGreen LightGreen
- .define @ETMagenta Magenta
- .define @ETYellow Yellow
- .define @ETPath "C:\ET3 "
- .define @Source "A"
- .define @Temp ""
- .define @Target ""
- .define @DemoPath "DEMO"
- .define @UtlPath "UTILITY"
- .define @ETSpace40 " "
- .define @ETSpace60 " "
- .define @HF "H"
- .define @DEMO "Y"
- .define @ETUTL "Y"
- .define @FM "Y"
- .define @FK "Y"
- .define @FL "Y"
- .define @YN "N"
- .define @SDemo 18000
- .define @SUtl 260000
- .define @SF16 360330
- .define @SFM 1100000
- .define @SFK 1000000
- .define @SFL 1000000
- .define @TOTAL 0
- .Onkey ESC goto Exit
- .set boxfill off
- .set shadow off
- ..
- .. *******************************************
- .. *** Start *** Check ET.COM Exist Or Not ?
- .. *******************************************
- .cls
- .if @_ETExist goto ETExist
- ..
- .. *******************************************
- .. *** Check COLOR
- .. *******************************************
- .if @_Color goto SetColor
- .define @BackGround Black
- .define @ForGround White
- .define @ETRed 0
- .define @ETLightGreen 2
- .define @ETMagenta 2
- .define @ETYellow 2
- .define @ETGreen 0
- .label SetColor
- .. *******************************************
- .. *** Main Menu ***
- .. *******************************************
- .cls @BackGround
- .set box s "╔╗╚╝══║║"
- .box s 0 0 3 79 @ForGround
- .set box s "┌┐└┘──││"
- .box s 4 0 18 79 @ForGround
- .box s 19 0 23 79 @ForGround
- .locate 1 23
- .display
- ETen Chinese System INSTALL Utility
- .locate 2 16
- .display LightGray
- (C)Copyright ETen Information System Corp, 1992.
- .locate 2 68
- .display @ETMagenta
- @_Ver
- .locate 20 19
- .display @ForGround @BackGround
- In default, MING FONT will be installed !
- .locate 22 20
- .display White @ETRed
- [ENTER]
- .locate 22 28
- .display @ForGround @BackGround
- Continue
- .locate 22 42
- .display White @ETRed
- [ESC]
- .locate 22 48
- .display @ForGround @BackGround
- Exit Install
- .. *******************************************
- .. *** Select ***
- .. *******************************************
- .set shadow on
- .box s 10 18 13 60 @ForGround
- .set shadow off
- .cursor on
- .. *******************************************
- .locate 11 30
- .display @ETLightGreen
- Source Disk ? (A/B)
- ..
- .label SS0
- .locate 12 40
- .display Black LightGray
- .Inkey @Source
- .if @Source !$ AB goto SS0
- .if @Source $ B goto SetSource
- .goto SS1
- .label SetSource
- .define @Source "B"
- .label SS1
- .. *******************************************
- .locate 11 20
- .display @ForGround @BackGround
- @ETSpace40
- .locate 11 22
- .display @ETLightGreen
- Install to HardDisk or Floppy ?(H/F)
- ..
- .label A0
- .locate 12 40
- .display Black LightGray
- .Inkey @HF
- .if @HF !$ HF goto A0
- .if @HF $ F goto SetF
- .goto A1
- .label SetF
- .define @ETPath "B:\ "
- .if @Source !$ B goto A1
- .define @ETPath "A:\ "
- ..
- .label A1
- .locate 12 20
- .display @ForGround @BackGround
- @ETSpace40
- .locate 11 20
- .display @ForGround @BackGround
- @ETSpace40
- .locate 11 29
- .display @ETLightGreen
- Install to the Path :
- .locate 12 20
- .display Black LightGray
- .ask @ETPath
- .. *******************************************
- .label A2
- .locate 12 20
- .display @ForGround @BackGround
- @ETSpace40
- .locate 11 20
- .display @ForGround @BackGround
- @ETSpace40
- .if @_ETROM eq "R24" goto A3
- .if @_ETROM eq "R1624" goto A3
- .if @_ETROM eq "S24R24" goto A3
- .locate 11 29
- .display @ETLightGreen
- Install 24 x 24 MING FONT :
- .locate 12 39
- .display Black LightGray
- .Inkey @FM
- .if @FM !$ YN goto A2
- .label A3
- .. *******************************************
- .. ****** Clear Screen *****
- .. *******************************************
- .locate 10 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 11 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 12 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 13 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 14 18
- .display @ForGround @BackGround
- @ETSpace60
- .. ***************************
- .locate 12 20
- .display
- @ETSpace60
- .set shadow on
- .box s 7 18 15 60 @ForGround
- .set shadow off
- .locate 6 12
- .display @ETYellow
- Install :
- .label B1
- .display @ForGround @BackGround
- .locate 8 24
- .display @ETYellow
- (1) KAI FONT ? (Y/N)
- .locate 8 54
- .display Black LightGray
- .Inkey @FK
- .if @FK !$ YN goto B1
- .. **********************
- .label B2
- .display @ForGround @BackGround
- .locate 10 24
- .display @ETYellow
- (2) LI FONT ? (Y/N)
- .locate 10 54
- .display Black LightGray
- .Inkey @FL
- .if @FL !$ YN goto B2
- .. **********************
- .label B3
- .display @ForGround @BackGround
- .locate 12 24
- .display @ETYellow
- (3) DEMO Files ? (Y/N)
- .locate 12 54
- .display Black LightGray
- .Inkey @DEMO
- .if @DEMO !$ YN goto B3
- .. **********************
- .label B4
- .display @ForGround @BackGround
- .locate 14 24
- .display @ETYellow
- (4) UTILITY Files ? (Y/N)
- .locate 14 54
- .display Black LightGray
- .Inkey @ETUTL
- .if @ETUTL !$ YN goto B4
- .. **********************
- .label B5
- .locate 17 28
- .display White @ETGreen
- Are You Sure (Y/N) ?
- .Inkey @YN
- .if @YN !$ YN goto B5
- .if @YN $ N goto B1
- ..=================================
- ..====== CHECK SYSTEM DISK ======
- ..=================================
- .define @Temp ""
- .link @Temp @Source :SYSTEM
- .Exist @Temp
- .if error 33 goto B6
- .goto B7
- .label B6
- .diskspace @Source @TOTAL
- .Wait
- .beep
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 22 19
- .display White @ETRed
- Please Insert ETEN System Disk to Drive @Source
- .goto B5
- .label B7
- ..
- ..=================================
- ..====== SUM =================
- ..=================================
- .if @_ETROM eq "R16" goto SR16
- .if @_ETROM eq "R1624" goto SR16
- .sum @TOTAL @SF16
- .label SR16
- .if @FM $ N goto S0
- .sum @TOTAL @SFM
- .label S0
- .if @DEMO $ N goto S1
- .sum @TOTAL @SDemo
- .label S1
- .if @ETUTL $ N goto S2
- .sum @TOTAL @SUtl
- .label S2
- .if @FK $ N goto S3
- .sum @TOTAL @SFK
- .label S3
- .if @FL $ N goto S4
- .sum @TOTAL @SFL
- .label S4
- .diskspace @ETPath @Space
- .if @Space lt @TOTAL goto DiskErr
- .goto P1
- .label DiskErr
- .cls Black
- .locate 21 18
- .display White @ETRed
- Disk space must at least @Total Bytes
- .Wait
- .goto Exit
- .label P1
- ..=================================
- .locate 20 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 20 20
- .display White @ETRed
- [ENTER]
- .locate 20 28
- .display @ForGround @BackGround
- Continue
- .locate 20 42
- .display White @ETRed
- [ESC]
- .locate 20 48
- .display @ForGround @BackGround
- Exit Install
- .. ****************************
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 22 12
- .display Black LightGray
- Process ---> System │ Copying :
- .link @Target @ETPath \
- .define @Temp ""
- .link @Temp @Source :*.*
- .copy @Temp to @Target
- .. ******************************************
- .. * Copy DEMO *
- .. ******************************************
- .if @DEMO $ N goto D2
- .label D0
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .define @Temp ""
- .link @Temp @Source :TL&DEMO
- .Exist @Temp
- .if error 33 goto D1
- .goto SDemo
- .label D1
- .beep
- .locate 22 18
- .display White @ETRed
- Please replace [UTILITY & DEMO] Disk to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .goto D0
- .label SDemo
- .locate 22 12
- .display Black LightGray
- Process ---> DEMO │ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \ @DemoPath \
- .define @Temp ""
- .link @Temp @Source :\DEMO\*.*
- .copy @Temp to @Target
- .label D2
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- ..
- .. ******************************************
- .. * Copy UTILITY *
- .. ******************************************
- .if @ETUTL $ N goto U2
- .label U0
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .define @Temp ""
- .link @Temp @Source :TL&DEMO
- .Exist @Temp
- .if error 33 goto U1
- .goto SETUtl
- .label U1
- .beep
- .locate 22 18
- .display White @ETRed
- Please replace [UTILITY & DEMO] Disk to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .goto U0
- .label SETUtl
- .locate 22 12
- .display Black LightGray
- Process ---> UTILITY │ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \ @UtlPath \
- .define @Temp ""
- .link @Temp @Source :\UTILITY\*.*
- .copy @Temp to @Target
- .label U2
- ..
- .. ******************************************
- .. * Check 16FONT copy 16 x 15 *
- .. ******************************************
- .if @_ETROM eq "R16" goto E2
- .if @_ETROM eq "R1624" goto E2
- .label E0
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .define @Temp ""
- .link @Temp @Source :STDFONTS.15
- .Exist @Temp
- .if error 33 goto E1
- .goto SFONT16
- .label E1
- .beep
- .locate 22 18
- .display White @ETRed
- Please Insert 16 x 15 Font Disk to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .goto E0
- .label SFONT16
- .locate 22 12
- .display Black LightGray
- Process --->16x15 FONT│ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \
- .define @Temp ""
- .link @Temp @Source :STDFONTS.15
- .copy @Temp to @Target
- .label E2
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .. ******************************************
- .. * Copy 24 x 24 MING FONT *
- .. ******************************************
- .if @_ETROM eq "R24" goto M2
- .if @_ETROM eq "R1624" goto M2
- .if @_ETROM eq "S24R24" goto M2
- .if @FM $ N goto M2
- .label M0
- .define @Temp ""
- .link @Temp @Source :STDFONT.24
- .Exist @Temp
- .if error 33 goto M1
- .goto SFONT24
- .label M1
- .beep
- .locate 22 20
- .display White @ETRed
- Please replace 24 x 24 MING_FONT to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .goto M0
- .label SFONT24
- .locate 22 18
- .display @ForGround @BackGround
- @ETSpace60
- .locate 22 12
- .display Black LightGray
- Process --->24x24 FONT│ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \
- .define @Temp ""
- .link @Temp @Source :*.24
- .copy @Temp to @Target
- .label M2
- .locate 22 20
- .display @ForGround @BackGround
- @ETSpace60
- ..
- .. ******************************************
- .. * Copy FONT KAI FONT *
- .. ******************************************
- .if @FK $ N goto K2
- .label K0
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .define @Temp ""
- .link @Temp @Source :STDFONT.24K
- .Exist @Temp
- .if error 33 goto K1
- .goto SKAI_Font
- .label K1
- .beep
- .locate 22 18
- .display White @ETRed
- Please replace [KAI FONT] Disk to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .goto K0
- .label SKAI_Font
- .locate 22 12
- .display Black LightGray
- Process ---> KAI FONT │ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \
- .define @Temp ""
- .link @Temp @Source :*.*
- .copy @Temp to @Target
- .label K2
- .. ******************************************
- .. * Copy FONT LI FONT *
- .. ******************************************
- .if @FL $ N goto L2
- .label L0
- .locate 22 12
- .display @ForGround @BackGround
- @ETSpace60
- .define @Temp ""
- .link @Temp @Source :STDFONT.24L
- .Exist @Temp
- .if error 33 goto L1
- .goto SLI_Font
- .label L1
- .beep
- .locate 22 18
- .display White @ETRed
- Please replace [LI FONT] Disk to Drive @Source
- .locate 21 27
- .display @ForGround @BackGround
- Press any key to continue ! .....
- .Wait
- .goto L0
- .label SLI_Font
- .locate 22 12
- .display Black LightGray
- Process ---> LI FONT │ Copying :
- .locate 22 46
- .define @Target ""
- .link @Target @ETPath \
- .define @Temp ""
- .link @Temp @Source :*.*
- .copy @Temp to @Target
- .label L2
- .. *******************************************
- .. *** Run ETSETUP.COM
- .. *******************************************
- .chdir @ETPath
- .define @Temp ""
- .link @Temp @ETPath \ etsetup
- .exec @Temp @ETPath
- .end
- ..
- .. *******************************************
- .. *** Exit Install ***
- .. *******************************************
- .label ETExist
- .cls
- .locate 1 1
- .display Black LightGray
- Chinese System already resident ! Please free it first
- .beep
- .Wait 3
- .label Exit
- .display white
- .cls black
- .cursor on