home *** CD-ROM | disk | FTP | other *** search
/ Master 95 #1 / MASTER95_1.iso / apps95 / x-win / install.dat < prev    next >
Encoding:
Text File  |  1995-08-13  |  3.6 KB  |  153 lines

  1.  /*
  2.   *********************** Options *****************************************
  3. @Option 8 = "No, do not reinstall the X server"
  4. @Option 7 = "Yes, reinstall the X server"
  5. @Option 18 = "No, do not reinstall the X configuration file"
  6. @Option 17 = "Yes, reinstall the X configuration file"
  7. @Option 51 = "No, don't install the fonts."
  8. @Option 50 = "Yes, reinstall the fonts."
  9.   **************************************************************************
  10.   */
  11. @DefineProject
  12.     @Name     = "X-WIN32"
  13.     @Version  = "3.2.X"
  14.     @Subdir   = "\\XWIN32"
  15.     @OutDrive = C
  16.     @Requires @HardDisk
  17.     @AssumeHardDisk=@TRUE
  18. @EndProject
  19.  
  20.  
  21. @DefineVars
  22.      @Drive @WDrive = @WindowsDrive
  23.      @Dir   @WDir   = @WindowsDir
  24. @EndVars
  25.  
  26.  
  27. @GetOutDrive
  28.     @DLGCTRLSIZE(0,4,4,10,40)
  29.     @Suppress A
  30.     @Suppress B
  31.     @Cls
  32.     On which disk drive do you wish to install @Name?
  33. @EndOutDrive
  34.  
  35.  
  36. @GetSubdir
  37.     @DLGCTRLSIZE(0,4,4,5,40)
  38.     @Cls
  39.     Enter directory on drive @OutDrive in which to install @Name.
  40.     Start your entry with a backslash (\). 
  41. @EndSubdir
  42.  
  43.  
  44. @If (@Exists ("@OutDrive:@SubDir\\xwin32.exe"))
  45.     @GetOption
  46.     @DLGCTRLSIZE(0,4,4,10,40)
  47.     @Cls
  48.     The X server and support programs are already installed.  
  49.  
  50.     @Option 8 = "No, do not reinstall the X server"
  51.     @Option 7 = "Yes, reinstall the X server"
  52.  
  53.     @EndOption
  54. @EndIf
  55.  
  56.  
  57. @If (@Exists ("@WDrive:@WDir\\xwin32.ini"))
  58.     @GetOption
  59.     @DLGCTRLSIZE(0,6,4,10,60)
  60.     @Cls
  61.     An X server configuration file has previously been installed.
  62.     If you choose to replace it, you will lose any configured
  63.     sessions, xhosts info, and start-up data.
  64.  
  65.  
  66.     @Option 18 = "No, do not reinstall the X configuration file"
  67.     @Option 17 = "Yes, reinstall the X configuration file"
  68.  
  69.     @EndOption
  70. @EndIf
  71.  
  72.  
  73. @If (@Exists ("@OutDrive:@SubDir\\LIB\\FONTS\\MISC\\fonts.dir"))
  74.     @GetOption
  75.     @DLGCTRLSIZE(0,4,4,10,40)
  76.     @Cls
  77.     X fonts are already installed.
  78.     
  79.     @Option 51 = "No, don't install the fonts."
  80.     @Option 50 = "Yes, reinstall the fonts."
  81.  
  82.     @EndOption
  83. @Endif
  84.  
  85.  
  86.  
  87. @DefineDisk
  88.     @Label  = "Disk 1"
  89.  
  90.     @If (8 [! @Option)
  91.  
  92.         @BeginLib LIB.RED
  93.             @File *.* @Out LIB\*.*
  94.         @EndLib
  95.  
  96.         @BeginLib XWIN32.RED
  97.             @File xwin32.exe @Out *.*
  98.             @File mkfondir.exe @Out *.*
  99.             @File bdftofon.exe @Out *.*
  100.             @File bdftopcf.exe @Out *.*
  101.             @File xutil.exe @Out *.*
  102.             @File glue16.dll @Out *.*
  103.             @File glue32.dll @Out *.*
  104.             @File VBRUN300.DLL @Out @WDrive:@WDir\*.*
  105.             @File xwin32.hlp @Out *.*
  106.             @File xwin32.ini @Out *.*
  107.             @File xw32_man.ps @Out *.*
  108.         @EndLib
  109.     @Endif
  110.  
  111.     @If (18 [! @Option)
  112.         @BeginLib XWIN32.RED
  113.             @File XWIN32.INI @Out @WDrive:@WDir\*.*
  114.         @EndLib
  115.     @Endif
  116.  
  117.     @If (51 [! @Option)
  118.         @BeginLib MISC.RED
  119.         @File *.* @Out LIB\FONTS\MISC\*.*
  120.         @EndLib
  121.  
  122.         @BeginLib 75DPI.RED
  123.         @File *.* @Out LIB\FONTS\75DPI\*.*
  124.         @EndLib
  125.  /* 
  126.   *   ---------------------------------------------
  127.   *        @BeginLib 100DPI.RED
  128.   *        @File *.* @Out LIB\FONTS\100DPI\*.*
  129.   *        @EndLib
  130.   *   ---------------------------------------------
  131.   */
  132.     @Endif
  133.  
  134. @EndDisk
  135.  
  136.  
  137.  
  138. @Finish
  139.     @If (18 [! @Option)
  140.  
  141.         /* Modify XWIN32.INI - Directory line */
  142.         @SetINI ("settings", "directory", "@OutDrive:\\@SubDir\\LIB", "XWIN32.INI")
  143.  
  144.         /* Modify XWIN32.INI - Fontpath line */
  145.         @SetINI ("settings", "fontpath", "@OutDrive:\\@SubDir\\LIB\\FONTS\\MISC,@OutDrive:\\@SubDir\\LIB\\FONTS\\75DPI", "XWIN32.INI") 
  146.  
  147.         /* Set-up the group and add an X-Win to tht group */
  148.         /* Add X-Util to the previouly made group         */
  149.         @ProgramManager("[CreateGroup (X-Win32)] [AddItem(@OutDrive:\\@Subdir\\xwin32.exe, X-Win32)] [AddItem(@OutDrive:\\@Subdir\\xutil.exe, X-Util)]")
  150.     @Endif
  151. @EndFinish
  152.  
  153.