home *** CD-ROM | disk | FTP | other *** search
- @DefineProject
- @Name = "TUN EMUL"
- @Version = "7.30"
- @OutDrive = C
- @Subdir ="\\TUNEMUL"
- @EndProject
-
- @DefineVars
- @Integer @Red = @RGB(255,0,0)
- @Integer @Green = @RGB(0,255,0)
- @Integer @Blue = @RGB(0,0,255)
- @Integer @Black = @RGB(0,0,0)
- @Integer @ShowIcon = 0
- @Integer @Lang = 2
- @Qstring @PageCode ="437"
- @Qstring @FileCopy
- @Qstring @FileDest
- @Qstring @SerNum
- @Qstring @SLang = "00"
- @Qstring @SLang2 = "&English"
- @Qstring @SKeyboard = "US.SET"
- @Qstring @ProductPart = "TE"
- @Qstring @OldLang
- @Integer @OldLangFlag
-
- @EndVars
-
- //@Display
- // Goodinit=@GoodInit
- // ProductPart=@ProductPart
- // Sernum=@SerNum
- // Lang2=@SLang2
- // Keyboard=@Skeyboard
- // SubDir=@SubDir
- // OutDrive=@Outdrive
- // @Pause
- //@EndDisplay
-
-
- @If(@GoodInit==0 || @GoodInit==2)
- /* Unit claim */
- NEWDRIVE:
- @DlgCtrlSize(0,6,24,9,40)
- @GetOutDrive @OutDrive @Suppress(0,17) @Prompt = "Enter target drive"
- Please select the drive where you wish @Name
- to be installed on your machine. Any available drive can be used
- assuming you have access rights to the drive you select, and there
- is enough space for installation.
- @EndOutDrive
-
- /* Directory claim */
- NEWDIR:
- @BackgroundMode(3,@Blue,@Black)
- @DlgCtrlSize(0,7,0,8,35)
- @GetSubdir @Subdir @Prompt = "Enter target directory"
- Please select the directory PATH for the
- @Name.
- Additional subdirectories may be created
- depending on the options you choose to install.
- @EndSubdir
-
- @If(!@DirExists("@Outdrive:\\@Subdir"))
- @BackgroundMode(3,@Red,@Red)
- @SetOption(5)
- @ClearOption(6)
- @DlgCtrlSize(0,5,10,8,30)
- @GetOption @Prompt = "Check Subdirectory"
- The directory you entered does
- not exist. Do you wish to
- create it?
- @Option 5 = "Yes, continue"
- @Option 6 = "No, re-enter"
- @EndOption
-
- @If(6 [= @Option) @GOTO NEWDIR @EndIf
- @EndIf
- @BackgroundMode(3,@Blue,@Black)
-
- @EndIf
- @Display
- The Install Program will now add @Name Windows
- program icons and fonts.
- @Pause
- @EndDisplay
-
- @BackgroundMode(3,@Blue,@Black)
-
- @PageCode = @GetINI("boot.description","codepage","SYSTEM.INI")
- @FileCopy = "SYS@PageCode.FON"
- @SetINI( "fonts", "System@PageCode", "@Outdrive:\\@SubDir\\@FileCopy" )
- @FileCopy = "S132@PageCode.FON"
- @SetINI( "fonts", "Sys132@PageCode", "@Outdrive:\\@SubDir\\@FileCopy" )
- @FileCopy = "PCCOURIE.FON"
- @SetINI( "fonts", "PcCourier", "@Outdrive:\\@SubDir\\@FileCopy" )
- @FileCopy = "Minitel.FON"
- @SetINI( "fonts", "Minitel", "@Outdrive:\\@SubDir\\@FileCopy" )
- @FileCopy = "HPLINE.FON"
- @SetINI( "fonts", "Hpline", "@Outdrive:\\@SubDir\\@FileCopy" )
- @SetINI( "fonts", "PcSystem")
-
-
- @OldLang = @GetINI("Language", "Language" , "@WindowsDrive:\\@WindowsDir\\TUN.INI")
- @OldLangFlag = @StrLen("@OldLang")
- @If(@OldLangFlag==0)
- @SetINI("Language", "Language", @SLang, "@WindowsDrive:\\@WindowsDir\\TUN.INI")
- @EndIf
-
- @SetINI( "INIT", "TUNEMUL", "@OutDrive:\\@SubDir\\TUNEMUL.INI","@WindowsDrive:\\@WindowsDir\\TUN.INI")
- @SetINI( "INIT", "PANEDIT", "@OutDrive:\\@SubDir\\PANEDIT.INI","@WindowsDrive:\\@WindowsDir\\TUN.INI")
-
- @Copy("@OutDrive:\\@SubDir\\PANEDIT.SAV","@OutDrive:\\@SubDir\\PANEDIT.INI")
- @SetINI( "Languages", "00", "&English,peditlg.us","@Outdrive:\\@SubDir\\panedit.INI" )
- @SetINI( "Languages", "01", "&Franτais,peditlg.fr","@Outdrive:\\@SubDir\\panedit.INI" )
- @SetINI( "Languages", "02", "&Deutsch,peditlg.gr","@Outdrive:\\@SubDir\\panedit.INI" )
- @SetINI( "Languages", "03", "E&spa±ol,peditlg.sp","@Outdrive:\\@SubDir\\panedit.INI" )
- @SetINI( "Languages", "04", "&Italiano,peditlg.it","@Outdrive:\\@SubDir\\panedit.INI" )
- @SetINI( "Path", "LanguagePath","@Outdrive:\\@SubDir\\","@Outdrive:\\@SubDir\\panedit.INI ")
-
- @If(@StrFind(@ProductPart,"TE")==0)
- @SetINI( "INIT", "5250", "@OutDrive:\\@SubDir\\5250.INI","@WindowsDrive:\\@WindowsDir\\TUN.INI")
- @Copy("@OutDrive:\\@SubDir\\5250.SAV","@OutDrive:\\@SubDir\\5250.INI")
- @SetINI( "Languages", "00", "&English,5250lg.us","@Outdrive:\\@SubDir\\5250.INI" )
- @SetINI( "Languages", "01", "&Franτais,5250lg.fr","@Outdrive:\\@SubDir\\5250.INI" )
- @SetINI( "Languages", "02", "&Deutsch,5250lg.gr","@Outdrive:\\@SubDir\\5250.INI" )
- @SetINI( "Languages", "03", "E&spa±ol,5250lg.sp","@Outdrive:\\@SubDir\\5250.INI" )
- @SetINI( "Languages", "04", "&Italiano,5250lg.it","@Outdrive:\\@SubDir\\5250.INI" )
- @SetINI( "Path", "LanguagePath","@Outdrive:\\@SubDir\\","@Outdrive:\\@SubDir\\5250.INI ")
- @EndIf
-
- @If(@Exists("@Windowsdrive:\\@WindowsDir\\TUNEMUL2.GRP"))
- @ShowIcon = 1
- @EndIf
-
- @SetAutoexec
- @Overwrite
- @SetReplace("TUNINIT","@WindowsDrive:\\@WindowsDir")
- @EndAutoexec
-
- // Test and Installation of CTL3D.DLL if necessery modified v 7.2OA'
-
- @If(!@Exists("@Windowsdrive:\\@WindowsDir\\SYSTEM"))
- @Copy("@OutDrive:\\@SubDir\\CTL3D.TUN","@Windowsdrive:\\@WindowsDir\\CTL3D.DLL")
- @ElseIf(!@Exists("@Windowsdrive:\\@WindowsDir\\SYSTEM\\CTL3D.DLL"))
- @Copy("@OutDrive:\\@SubDir\\CTL3D.TUN","@Windowsdrive:\\@WindowsDir\\SYSTEM\\CTL3D.DLL")
- @EndIf
-
-
- /*
- The following command is used to create the TUN*EMUL group and
- add the TUN*EMUL items to the Windows Program Manager. The
- command can be written on a single line, however it was written
- as below for clarity.
- */
-
-
- @If(@StrFind(@ProductPart,"TE")==0)
- @ProgramManager("[CreateGroup(TUN EMUL,@WindowsDrive:\\@WindowsDir\\TUNEMUL2.GRP)]
- [AddItem(@Outdrive:\\@Subdir\\EMULWIN.EXE, Emulator)]
- [AddItem(@Outdrive:\\@Subdir\\5250.EXE, 5250 Emulator)]
- [AddItem(@Outdrive:\\@Subdir\\EMULWIN.EXE confmac -M sysadmsh, Application, @Outdrive:\\@Subdir\\emulwin.exe, 1)]
- [ShowGroup(TUN EMUL, 1)]
- ")
- @Else
- @ProgramManager("[CreateGroup(TUN EMUL,@WindowsDrive:\\@WindowsDir\\TUNEMUL2.GRP)]
- [AddItem(@Outdrive:\\@Subdir\\EMULWIN.EXE, Emulator)]
- [ShowGroup(TUN EMUL, 1)]
- ")
- @EndIf
-
-
-
-
- /* End of Install TUN*EMUL Windows components */
-
- @Display
- @Name installation under Windows is now finished !
- Please exit and restart Windows before using
- @Name Windows applications
- @Pause
- @EndDisplay
-
- @Finish
- /*
- The following command is used to create the wINSTALL group and
- add the wINSTALL item to the Windows Program Manager. The
- command can be written on a single line, however it was written
- as below for clarity.
- */
- @ChDrive (@OutDrive)
- @ChDir ("@SubDir")
- @EndFinish
-