home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p024 / 1.img / INSTALL.DAT < prev    next >
Encoding:
Text File  |  1993-03-01  |  13.5 KB  |  457 lines

  1. @Defineproject
  2.         @Language = @EN @Endlang
  3.         @ABANNER        = "        AutoCAD 386        "
  4.         @BATCHFILE      = "ACADR12.BAT"
  5.         @NAME           = "AutoCAD 386"
  6.         @VERSION        = "R-12"
  7.         @SUBDIR         = "\\ACAD"
  8.         @OUTDRIVE       = C
  9.         @GROUP          = "A"
  10.         @FULLINST       = (1)
  11.         @UPDATE         = (0)    /* Bugfix = 1, Regular = 0 */
  12. /* For updates,  set disk label in @if at end of file */
  13.         @CHECKEXES      = "Executables 1" = "Executables 2" = "Support 1" = "No Disk"
  14.         @Requires       @HardDisk
  15. @EndProject
  16.  
  17. @DefineVars
  18.         @Dir            @Subdir2        = ""    /* directory type */
  19.  
  20. /* Remember to also update the space requirements in the user messages */
  21.         @Integer        @AllFiles       = 25000000
  22.         @Integer        @ExeSupport     = 11200000
  23.         @Integer        @BonusSample    =  3300000
  24.         @Integer        @SupportSource  =   500000
  25.         @Integer        @IgesFonts      =   114000
  26.         @Integer        @Tutorial       =   260000
  27.         @Integer        @Ads            =  2000000
  28.         @Integer        @Render         =  1200000
  29.         @Integer        @ASE            =  1300000
  30.         @Integer        @AMEEXE         =  3500000
  31.         @Integer        @AMEAPI         =  1600000
  32.         @Integer        @Temp           =        0
  33.         @Integer        @Free           =        0
  34.         @Integer        @International  = 0
  35.  
  36. @EndVars
  37.  
  38. @WELCOME
  39.         @CLS
  40.  
  41. @if (@Language == @EN)
  42. @DATXMSG(83,"\tThis program will install the CHINESE @NAME")
  43. @DATXMSG(84,"\tRelease 12 on your computer.")
  44. @elseif (@language == @IT)
  45. @DATXMSG(85,"\tThis program will install the ITALIAN @NAME")
  46. @DATXMSG(86,"\tRelease 12 on your computer.")
  47. @endif
  48.  
  49.  
  50. @pause
  51.     @If (@CPU < 386)
  52. @DATXMSG(1,"\t@Name requires an 80386 or 80486 CPU.  ")
  53. @DATXMSG(2,"\tYour computer is running on a 80@CPU CPU.")
  54.  
  55.  
  56.         @Pause
  57.      @Endif
  58.  
  59.      @If ((@OSMajor * 100 + @OSMinor) < 330)
  60. @DATXMSG(3,"\t@NAME requires DOS version 3.30 or higher.")
  61.  
  62.         @Pause
  63.      @Endif
  64.  
  65.         @CLS
  66.  
  67. @DATXMSG(4,"\tThis program installs @NAME Release 12 on your computer ")
  68. @DATXMSG(5,"\tsystem and checks the distribution disks for errors.  ")
  69. @DATXMSG(6,"\tYou can specify the drive and directory where you want to")
  70. @DATXMSG(7,"\tinstall @NAME.  The program creates the directory for you.  ")
  71. @DATXMSG(8,"\tYou can choose to copy only selected parts of the software.")
  72.  
  73. @DATXMSG(9,"\tEach screen of this program offers a choice and a default response.")
  74. @DATXMSG(10,"\tPress the RETURN key to accept the default.  Otherwise type or ")
  75. @DATXMSG(11,"\tselect another response and then press the RETURN key.")
  76. @DATXMSG(12,"\tIf you make a mistake while typing, press the BACKSPACE key")
  77. @DATXMSG(13,"\tand retype the entry.")
  78.  
  79. @DATXMSG(14,"\tYou can press the ESC key at any time to cancel installation     ")
  80. @DATXMSG(15,"\tand return to the operating system.")
  81.  
  82. @PAUSE
  83. @EndWelcome
  84.  
  85. @IF (@update == 1)
  86.     @SetGroup(A)    /* Install all files on Updates */
  87. @Else
  88. SELECTFILES:
  89. @Getgroups
  90.         @CheckBox
  91.         @CLS
  92. @DATXMSG(45,"\tHere you select the parts of @NAME you want to install.")
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106. @DATXMSG(46,"\tThe Executable/Support files are the only ones required to run")
  107.       @NAME.
  108.       @LocalWindow(9,1)
  109.         @SET A = "@DATXMSG(87,"Install all files (25,000,000 bytes)")"
  110.         @SET S = "@DATXMSG(88,"@NAME Executable/Support files (11,200,000 bytes)")"
  111.         @SET C = "@DATXMSG(89,"@NAME Bonus/Sample files (3,300,000 bytes)")"
  112.         @SET E = "@DATXMSG(90,"@NAME Support Source files (500,000 bytes)")"
  113.         @SET D = "@DATXMSG(91,"@NAME Iges Font files (114,000 bytes)")"
  114.         @SET T = "@DATXMSG(97,"@NAME Tutorial files (260,000 bytes)")"
  115.         @SET F = "@DATXMSG(92,"@NAME ADS files (2,000,000 bytes)")"
  116.         @SET R = "@DATXMSG(93,"@NAME Render files (1,200,000 bytes)")"
  117.         @SET Q = "@DATXMSG(94,"@NAME SQL Extension files (1,300,000 bytes)")"
  118.         @SET Z = "@DATXMSG(95,"Advanced Modeling Extension files. (5,100,000 bytes)")"
  119. @DATXMSG(57,"\tUse the up and down cursor keys to scroll through the list.  Use")
  120. @DATXMSG(58,"\tthe SPACE_BAR key to toggle the YES/NO state of the current")
  121. @DATXMSG(59,"\tselection.  Press the RETURN key to accept the selection(s).")
  122. @DATXMSG(60,"\tPress the ESC key to abort.")
  123. @EndGroups
  124.  
  125. @Display
  126.         @Cls
  127.         @If ('A' [= @Group || 'S' [= @Group || 'C' [= @Group || 'E' [= @Group ||
  128.              'D' [= @Group || 'F' [= @Group || 'Z' [= @Group ||
  129.              'R' [= @Group || 'Q' [= @Group || 'T' [= @Group )
  130.  
  131.  
  132. @DATXMSG(82,"\tSELECTED FOR INSTALLATION:")
  133.  
  134.         @If ('A' [= @Group) @DATXMSG(61,"Install all files.") @EndIf
  135.         @If ('S' [= @Group) @DATXMSG(62,"@NAME Executable/Support files.") @EndIf
  136.         @If ('C' [= @Group) @DATXMSG(63,"@NAME Bonus/Sample files.") @EndIf
  137.         @If ('E' [= @Group) @DATXMSG(64,"@NAME Support Source files.") @EndIf
  138.         @If ('D' [= @Group) @DATXMSG(65,"@NAME Iges Font files. ") @EndIf
  139.         @If ('T' [= @Group) @DATXMSG(98,"@NAME Tutorial files. ") @EndIf
  140.         @If ('F' [= @Group) @DATXMSG(66,"@NAME ADS files.") @EndIf
  141.         @IF ('R' [= @Group) @DATXMSG(67,"@NAME Render files.") @Endif
  142.         @IF ('Q' [= @Group) @DATXMSG(68,"@NAME SQL Extension files.") @Endif
  143.         @If ('Z' [= @Group) @DATXMSG(69,"Advanced Modeling Extension files.") @EndIf
  144.  
  145.         @Pause
  146.         @ELSE
  147. @DATXMSG(71,"No files were selected for installation.")
  148.            @Pause
  149.            @GOTO SELECTFILES
  150.         @Endif
  151. @EndDisplay
  152.  
  153. @IF ('Z' [= @GROUP)
  154. SELECTAME:
  155. @Getgroups
  156. @CLEARGROUP(Z)
  157.      @CheckBox
  158.         @CLS
  159. @DATXMSG(99,"\tHere you select the parts of AME you want to install.")
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.         @SET Z = "@DATXMSG(101,"Install all AME files (5,100,000 bytes)")"
  170.         @SET G = "@DATXMSG(102,"AME Executable/Support/Sample files (3,500,000 bytes)")"
  171.         @SET H = "@DATXMSG(96,"AME API Source/Sample files (1,600,000 bytes)")"
  172.  
  173. @DATXMSG(57,"\tUse the up and down cursor keys to scroll through the list.  Use")
  174. @DATXMSG(58,"\tthe SPACE_BAR key to toggle the YES/NO state of the current")
  175. @DATXMSG(59,"\tselection.  Press the RETURN key to accept the selection(s).")
  176. @DATXMSG(60,"\tPress the ESC key to abort.")
  177.  
  178. @EndGroups
  179.  
  180. @Display
  181.         @Cls
  182.         @If ('Z' [= @Group || 'G' [= @Group || 'H' [= @Group)
  183.  
  184.  
  185. @DATXMSG(100,"\tAME FILES SELECTED FOR INSTALLATION:")
  186.  
  187.         @If ('Z' [= @Group) @DATXMSG(103,"Install all AME files.") @EndIf
  188.         @If ('G' [= @Group) @DATXMSG(104,"AME Executable/Support/Sample files.") @EndIf
  189.         @If ('H' [= @Group) @DATXMSG(70,"AME API Source/Samples.") @EndIf
  190.  
  191.         @Pause
  192.         @IF ('Z' [= @GROUP)
  193.             @SETGROUP(G)
  194.             @SETGROUP(H)
  195.             @CLEARGROUP(Z)
  196.         @Endif
  197.         @ELSE
  198. @DATXMSG(71,"No files were selected for installation.")
  199.            @Pause
  200.            @GOTO SELECTAME
  201.         @Endif
  202. @EndDisplay
  203. @Endif
  204.  
  205.  
  206. /* Compute amount of disk space needed to install selected files */
  207.  
  208. @If ('S' [= @Group)
  209.         @Equal(@FREE = @ExeSupport)
  210. @Endif
  211.  
  212. @If ('C' [= @Group)
  213.         @Equal(@TEMP = @BonusSample + @FREE)
  214.         @Equal(@FREE = @TEMP)
  215. @Endif
  216.  
  217. @If ('E' [= @Group)
  218.         @Equal(@TEMP = @SupportSource + @FREE)
  219.         @Equal(@FREE = @TEMP)
  220. @Endif
  221.  
  222. @If ('D' [= @Group)
  223.         @Equal(@TEMP = @IgesFonts + @FREE)
  224.         @Equal(@FREE = @TEMP)
  225. @Endif
  226.  
  227. @If ('T' [= @Group)
  228.         @Equal(@TEMP = @Tutorial + @FREE)
  229.         @Equal(@FREE = @TEMP)
  230. @Endif
  231.  
  232. @If ('F' [= @Group)
  233.         @Equal(@TEMP = @Ads + @FREE)
  234.         @Equal(@FREE = @TEMP)
  235. @Endif
  236.  
  237. @If ('R' [= @Group)
  238.         @Equal(@TEMP = @Render + @FREE)
  239.         @Equal(@FREE = @TEMP)
  240. @Endif
  241.  
  242. @If ('Q' [= @Group)
  243.         @Equal(@TEMP = @ASE + @FREE)
  244.         @Equal(@FREE = @TEMP)
  245. @Endif
  246.  
  247. @If ('G' [= @Group)
  248.         @Equal(@TEMP = @AmeExe + @FREE)
  249.         @Equal(@FREE = @TEMP)
  250.         @Equal(@TEMP = @AmeAPI + @FREE)
  251. @Endif
  252.  
  253. @If ('H' [= @Group)
  254.         @Equal(@TEMP = @AmeAPI + @FREE)
  255.         @Equal(@FREE = @TEMP)
  256. @Endif
  257.  
  258. /* ALL Files already includes disk space totals for other groups so don't add
  259. in free space */
  260.  
  261. @If ('A' [= @Group)
  262.         @Equal(@TEMP = @ALLFiles)
  263.         @Equal(@FREE = @TEMP)
  264. @Endif
  265. @Endif /* Not an update */
  266.  
  267. SelectDrv:
  268. @GetOutDrive
  269.         @Suppress A      /* don't display A: */
  270.         @Suppress B      /* or B:            */
  271.         @CLS
  272. @DATXMSG(16,"\tOn which disk drive do you want to install the selected files?")
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. @DATXMSG(17,"\tUse the up and down cursor keys to scroll through the")
  289. @DATXMSG(18,"\tlist of disk drives.  Press the RETURN key when you have ")
  290. @DATXMSG(19,"\tselected a drive.")
  291.  
  292. @EndOutDrive
  293.  
  294. @If (@update == 0)   /* Can't check space avaible on updates */
  295.  
  296.    @If (@DiskFree  @OutDrive < @FREE)
  297.            @GetOption
  298.  
  299. @DATXMSG(72,"\tThe selected output disk drive only has @DiskFree @OutDrive bytes free.")
  300. @DATXMSG(73,"\tTo install the files you have selected, @FREE bytes are ")
  301. @DATXMSG(74,"\trequired.")
  302.  
  303. @DATXMSG(75,"\tDo you want to install on this drive anyway or select another drive?")
  304.            @LocalWindow(12,40)
  305.                  @Option  10 = "@DATXMSG(76,"Continue")"
  306.                  @option  11 = "@DATXMSG(77,"Select another drive")"
  307.            @EndOption
  308.    @EndIf
  309.  
  310.    @If(11 [= @Option)
  311.          @ClearOption(11)
  312.          @GoTO SelectDRV
  313.    @Endif
  314. @Endif
  315.  
  316. Selectsubdir:
  317. @GetSubdir
  318.         @CLS
  319.  
  320. @DATXMSG(20,"\tHere you specify the name of the directory where the selected files")
  321. @DATXMSG(21,"\twill be installed.  By default, the name of this directory is:")
  322.        @SUBDIR.
  323. @DATXMSG(22,"\tThe program locates it below the root directory of the disk")
  324. @DATXMSG(23,"\tdrive you selected.  If you have no preference, choose the")
  325. @DATXMSG(24,"\tdefault by pressing the RETURN key.")
  326.  
  327. @DATXMSG(25,"\tTo change the directory name, backspace over the directory name")
  328. @DATXMSG(26,"\tand type a new name.  Press the RETURN key when you have finished ")
  329. @DATXMSG(27,"\ttyping the name.")
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.         @PROMPT = "@DATXMSG(28," Which subdirectory ? ")"
  337. @EndSubdir
  338.  
  339. @IF (@Update == 0)
  340.     @IF (@Exists "@OutDrive:@SubDir")
  341.             @GetOption
  342.     @DATXMSG(39,"\tApparently there is already a directory called:")
  343.           @OutDrive:@SubDir.
  344.  
  345.     @DATXMSG(40,"\tDo you want to continue installing over the files in this")
  346.     @DATXMSG(41,"\tdirectory?")
  347.  
  348.             @LocalWindow(12,40)
  349.             @Option 1 = "@DATXMSG(42,"Yes")"
  350.             @Option 2 = "@DATXMSG(43,"No")"
  351.  
  352.  
  353.             @EndOption
  354.  
  355.     @Endif
  356.     @Display
  357.        @If(2 [= @Option)
  358.     @DATXMSG(44,"\tSelect another directory.")
  359.             @ClearOption(2)
  360.             @Pause
  361.             @GoTo Selectsubdir
  362.        @Endif
  363.     @EndDisplay
  364.  
  365. @Endif  /* Not update */
  366.  
  367. /* Only ask for support dir name, if the selected groups needs it */
  368. @If ('A' [= @Group || 'S' [= @Group || 'C' [= @Group || 'R' [= @Group ||
  369.      'Q' [= @Group || 'G' [= @Group )
  370. @GetSubdir @Subdir2
  371.         @Default = "@Subdir\\SUPPORT\\"
  372.         @CLS
  373.  
  374. @DATXMSG(29,"\tHere you specify the name of the directory where @NAME")
  375. @DATXMSG(30,"\tsupport files will be installed.  By default, the name of this ")
  376. @DATXMSG(31,"\tdirectory is:")
  377.        @SUBDIR2
  378.  
  379. @DATXMSG(32,"\tThe program locates it below the root directory of the disk")
  380. @DATXMSG(33,"\tdrive you selected.  If you have no preference, choose the")
  381. @DATXMSG(34,"\tdefault by pressing the RETURN key.")
  382.  
  383. @DATXMSG(35,"\tTo change the directory name, backspace over the directory name")
  384. @DATXMSG(36,"\tand type a new name.  Press the RETURN key when you have finished")
  385. @DATXMSG(37,"\ttyping the name.")
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.         @PROMPT = "@DATXMSG(38," Support files subdirectory ? ")"
  393. @EndSubdir
  394. @Endif  /* Support dir needed ?/
  395.  
  396. @SetOption(101)
  397.  
  398. @if (@Update == 0)
  399.    @if ('G' [! @Group && 'H' [! @Group)  /* AME Not specifically selected */
  400.        @If ('A' [= @Group)               /* All options selected */
  401.            @GetOption
  402.        @DATXMSG(79,"\tDid you purchase the Advanced Modeling Extension?")
  403.                   @LocalWindow(12,40)
  404.                   @Option 100 = "@DATXMSG(80,"Yes")"
  405.                   @Option 101 = "@DATXMSG(81,"No")"
  406.            @EndOption
  407.            @If(100 [= @Option)
  408.                @SetGroup(G)    /* Force AME options */
  409.                @SetGroup(H)
  410.            @Endif
  411.        @EndIf
  412.    @Endif
  413. @Endif /* End no-update */
  414.  
  415. @If ('A' [= @Group || 'S' [= @Group)
  416.     @SETBATCHFILE
  417.        @Verbatim "SET ACAD=@Outdrive:@Subdir2;@Outdrive:@Subdir\\FONTS;@Outdrive:@Subdir\\ADS"
  418.        @Verbatim "SET ACADCFG=@Outdrive:@Subdir"
  419.        @Verbatim "SET ACADDRV=@Outdrive:@Subdir\\DRV"
  420.        @Verbatim "@Outdrive:\\@Subdir\\ACAD %1 %2"
  421.     @ENDBATCHFILE
  422. @ENDIF
  423.  
  424. @SetConfig
  425.    @Askoverwrite
  426.    @Files = 40
  427. @EndConfig
  428.  
  429.         /*Disk.#1*/
  430. @DefineDisk
  431.         @LABEL  = "Executables 1"
  432.         @IF (@UPDATE == 0)
  433.            @File   ACAD.PT1        @Out ACAD.EXE      @Group AS
  434.            @File   ACAD1.MID       @Group AS
  435.         @ENDIF
  436. @EndDisk
  437.  
  438. @IF (@UPDATE == 1)
  439.     @Chain = "disk_label"
  440. @elseIf ('A' [= @Group ||  'S' [= @Group)
  441.     @Chain = "Executables 2"
  442. @Elseif ('C' [= @Group)
  443.     @Chain = "Support 1"
  444. @Elseif ('R' [= @Group)
  445.     @Chain = "Render 1"
  446. @Elseif ('T' [= @Group || 'E' [= @Group ||  'D' [= @Group)
  447.     @Chain = "Bonus/Sample 1"
  448. @Elseif ('F' [= @Group)
  449.     @Chain = "ADS 1"
  450. @Elseif ('Q' [= @Group)
  451.     @Chain = "ASE 1"
  452. @Elseif ('G' [= @Group)
  453.     @Chain = "AME 1"
  454. @Elseif ('H' [= @Group)
  455.     @Chain = "AME 2"
  456. @Endif
  457.