home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 6 / 06.iso / a / a563 / 1.ddi / CUST14MB.IN$ / CUST14MB.bin
Encoding:
INI File  |  1993-05-07  |  41.2 KB  |  1,324 lines

  1. [Source Media Descriptions]
  2. 1 = "Disk 1", TAGFILE = "COMMDLG.DL$"
  3. 2 = "Disk 2", TAGFILE = "OLECLI.DL$"
  4. 3 = "Disk 3", TAGFILE = "MSARN110.EX$"
  5.  
  6.  
  7. [Standard Setup Files]
  8.  
  9. ; These files MUST be on Disk 1: COMMDLG.DL$, COMMDLG.DL_,
  10. ; DDEML.DL$, DETCMD.DL_, SETUP.EXE, WORKGRP.IN_, STFSETUP.IN_,
  11. ; SETUP.INI, SMALLB.FO$, SMALLE.FO$, SMALLF.FO$, STFSETUP.EX_,
  12. ; VER.DL$, VER.DL_
  13.  
  14. 1 , CTL3D.DL$, RENAME=CTL3D.DLL, DEST=$(SystemPath), VERSION="1,1,3,0"
  15. 1 , MSABC110.DL$, RENAME=MSABC110.DLL, DEST=$(SystemPath), VERSION="1,11,0,10"
  16. 1 , MSAES110.DL$, RENAME=MSAES110.DLL, DEST=$(SystemPath), VERSION="1,10,0,0"
  17. 1 , MSAFIN.DL$, RENAME=MSAFIN.DLL, DEST=$(WindowsPath), VERSION="1,10,0,0"
  18. 1 , MSAIN110.DL$, RENAME=MSAIN110.DLL, DEST=$(AppPath), VERSION="1,10,0,0"
  19. 1 , MSAJT110.DL$, RENAME=MSAJT110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  20. 1 , MSAJU110.DL$, RENAME=MSAJU110.DLL, DEST=$(AppPath), VERSION="1,10,0,10"
  21. 1 , ORDENTRY.IN$, RENAME=ORDENTRY.INI, DEST=$(WindowsPath)
  22. 1 , ORDENTRY.IC$, RENAME=ORDENTRY.ICO, DEST=$(AppPath)
  23.  
  24. ; These files MUST be on Disk 2: WINHELP.EX$, WINHELP.HL$, 
  25. ; GRAPH.EX$, REGEDIT.EX$, SHARE.EX$, SHELL.DL$, OLECLI.DL$, OLESVR.DL$
  26.  
  27. 2 , UTILITY.MD$, RENAME=UTILITY.MDA, DEST=$(AppPath)
  28. 2 , PDX110.DL$, RENAME=PDX110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  29. 2 , XBS110.DL$, RENAME=XBS110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  30. 2 , BTRV110.DL$, RENAME=BTRV110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  31. 2 , ORDENTRY.MD$, RENAME=ORDENTRY.MDB, DEST=$(AppPath)
  32. 2 , ORDENTRY.HL$, RENAME=ORDENTRY.HLP, DEST=$(AppPath)
  33.  
  34. 3 , MSARN110.EX$, RENAME=MSARN110.EXE, DEST=$(AppPath), VERSION="1,10,0,0"
  35.  
  36.  
  37. [Network Setup Files]
  38. 1 , CTL3D.DL$, !DECOMPRESS
  39. 1 , MSABC110.DL$, !DECOMPRESS
  40. 1 , MSAES110.DL$, !DECOMPRESS
  41. 1 , MSAFIN.DL$, !DECOMPRESS
  42. 1 , MSAIN110.DL$, !DECOMPRESS
  43. 1 , MSAJT110.DL$, !DECOMPRESS
  44. 1 , MSAJU110.DL$, !DECOMPRESS
  45. 1 , ORDENTRY.IN$, !DECOMPRESS
  46. 1 , ORDENTRY.IC$, !DECOMPRESS
  47. 2 , UTILITY.MD$, !DECOMPRESS
  48. 2 , PDX110.DL$, !DECOMPRESS
  49. 2 , XBS110.DL$, !DECOMPRESS
  50. 2 , BTRV110.DL$, !DECOMPRESS
  51. 2 , ORDENTRY.MD$, !DECOMPRESS
  52. 2 , ORDENTRY.HL$, !DECOMPRESS
  53. 3 , MSARN110.EX$, !DECOMPRESS
  54.  
  55. [Multiuser Files]
  56. 1 , CTL3D.DL$, RENAME=CTL3D.DLL, DEST=$(SystemPath), VERSION="1,1,3,0"
  57. 1 , MSABC110.DL$, RENAME=MSABC110.DLL, DEST=$(SystemPath), VERSION="1,11,0,10"
  58. 1 , MSAES110.DL$, RENAME=MSAES110.DLL, DEST=$(SystemPath), VERSION="1,10,0,0"
  59. 1 , MSAFIN.DL$, RENAME=MSAFIN.DLL, DEST=$(WindowsPath), VERSION="1,10,0,0"
  60. 1 , MSAIN110.DL$, RENAME=MSAIN110.DLL, DEST=$(AppPath), VERSION="1,10,0,0"
  61. 1 , MSAJT110.DL$, RENAME=MSAJT110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  62. 1 , MSAJU110.DL$, RENAME=MSAJU110.DLL, DEST=$(AppPath), VERSION="1,10,0,10"
  63. 1 , ORDENTRY.IN$, RENAME=ORDENTRY.INI, DEST=$(WindowsPath)
  64. 1 , ORDENTRY.IC$, RENAME=ORDENTRY.ICO, DEST=$(AppPath)
  65. 2 , UTILITY.MD$, RENAME=UTILITY.MDA, DEST=$(AppPath)
  66. 2 , PDX110.DL$, RENAME=PDX110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  67. 2 , XBS110.DL$, RENAME=XBS110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  68. 2 , BTRV110.DL$, RENAME=BTRV110.DLL, DEST=$(SystemPath), VERSION="1,10,0,10"
  69. 2 , ORDENTRY.MD$, RENAME=ORDENTRY.MDB, DEST=$(AppPath)
  70. 2 , ORDENTRY.HL$, RENAME=ORDENTRY.HLP, DEST=$(AppPath)
  71. 3 , MSARN110.EX$, RENAME=MSARN110.EXE, DEST=$(AppPath), VERSION="1,10,0,0"
  72.  
  73. [Net INI]
  74. 1 , ORDENTRY.IN$, RENAME=ORDENTRY.INI, DEST=$(WindowsPath)
  75.  
  76.  
  77. [Program Manager]
  78. CreateProgManGroup $(ProgGroupDesc), "ORDENTRY"
  79. CreateProgManItem $(ProgGroupDesc), "Order Entry Sample Application", $(AppPath)"MSARN110.EXE ORDENTRY.MDB /Ini ORDENTRY.INI", $(AppPath)"ORDENTRY.ICO"
  80. Exit
  81.  
  82.  
  83. [INI File]
  84. CreateIniKeyValue, $(WindowsPath)$(IniFileName) "ODBC", "QueryTimeout", "60", O
  85. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "ODBC", "LoginTimeout", "20", O
  86. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "ISAM", "PageTimeout", "300", O
  87.  
  88. ;Paradox section
  89. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Installable ISAMs", "Paradox 3.X", $(SystemPath)"PDX110.DLL", O
  90. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Paradox ISAM", "ParadoxUserName", $(UserName), O
  91. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Paradox ISAM", "ParadoxNetPath", $(SystemPath), O
  92. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Paradox ISAM", "CollatingSequence", "Ascii", O
  93.  
  94. ;dBase section
  95. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Installable ISAMs", "FoxPro 2.0", $(SystemPath)"XBS110.DLL", O
  96. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Installable ISAMs", "dBASE III", $(SystemPath)"XBS110.DLL", O
  97. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Installable ISAMs", "dBASE IV", $(SystemPath)"XBS110.DLL", O
  98. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "dBase ISAM", "CollatingSequence", "Ascii", O
  99. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "dBase ISAM", "Century", "Off", O
  100. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "dBase ISAM", "Date", "American", O
  101. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "dBase ISAM", "Mark", "47", O
  102. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "dBase ISAM", "Deleted", "Off", O
  103.  
  104. ;Btrieve section
  105. CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Installable ISAMs", "Btrieve", $(AppPath)"BTRV110.DLL", O
  106. CreateIniKeyValue, $(WindowsPath)"WIN.INI", "btrieve", "options", "/m:64 /p:4096 /b:16 /f:20 /l:40 /n:12 /t:"$(SystemPath)"BTRIEVE.TRN", O
  107.  
  108. ; RemoveIniSection, $(WindowsPath)$(IniFileName), "Section"
  109. ; RemoveIniKey, $(WindowsPath)$(IniFileName), "Section", "IniKey"
  110. ; CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Section", "IniKey", "Value"
  111. Exit
  112.  
  113.  
  114. [Custom]
  115. NameOfApp="Order Entry Sample Application"
  116. InstallGraph="YES"
  117. InstallChangeWorkGroup="YES"
  118. Serial#="12-123-1234"
  119. DefaultPath=":\\ORDENTRY\\"
  120. RunExeName="MYEXE.EXE"
  121. RunExePrompt="Please Insert Disk 3"
  122. IniFileName="ORDENTRY.INI"
  123. ProgGroupDesc="Order Entry Sample Application"
  124.  
  125.  
  126. ;===========================================================================
  127. ; DO NOT MODIFY BELOW THIS LINE
  128. ;===========================================================================
  129.  
  130. [Release Date]
  131.     STF_DATE = "1993-01-01"
  132.  
  133. [Release Date]
  134.     STF_DATE = "1993-05-05"
  135. [Admin Title]
  136.     Title = $(NameOfApp)" Server Setup"
  137.  
  138. [Title]
  139.     Title = $(NameOfApp)" Setup"
  140.  
  141. [Network Title]
  142.     Title = $(NameOfApp)" Workstation Setup"
  143.  
  144. [Ole Reg]
  145.     OLEText = "Installing OLE application(s)..."
  146.     RegFilePath = $(WindowsPath)"MSACCESS.REG"            ;don't localize
  147.     RegCommand = $(WindowsPath)"REGEDIT.EXE /S /U "$(RegFilePath)   ;don't localize
  148.  
  149. ;just the last line of [shared files] need localization
  150. [Shared Files]
  151.     SharedFiles = { "COMMDLG.DLL", "DDEML.DLL", "OLECLI.DLL", "OLESVR.DLL", "SHELL.DLL", "VER.DLL" }
  152.     Versions = { $(VERCOMMDLG), $(VERDDEML), $(VEROLECLI), $(VEROLESVR), $(VERSHELL), $(VERVER) }
  153.     SFCopySymbols = { "COPYCOMMDLG", "COPYDDEML", "COPYOLECLI", "COPYOLESVR", "COPYSHELL", "COPYVER" }
  154.     STF_MB_TYPE = 1
  155.     STF_MB_DEF = 1
  156.     STF_MB_ICON = 3
  157.     STF_MB_TEXT = "This file is being used by another application. "$(NameOfApp)" Setup can't update it.  Please exit Windows and run "$(NameOfApp)" Setup from the MS-DOS command prompt. "+
  158. " Insert your Setup disk in drive A, type a: setup, and then press Enter."
  159.  
  160. [Path Dialog]
  161.     GetPathMessBoxTitle = $(NameOfApp)" Specify Directory"
  162.     GetPathMessBoxText  = "The path you specified isn't valid or doesn't start with a drive name. "
  163.  
  164. [WorkGroup Path Dialog]
  165.     GetPathMessBoxTitle = $(NameOfApp)" Specify Workgroup"
  166.     GetPathMessBoxText  = "The path you specified isn't valid or doesn't start with a drive name."
  167.     GetSysMdaErr = "Setup couldn't find SYSTEM.MDA in the directory you specified."
  168.  
  169. [Quit Dialog]
  170.     QuitText1  = "The setup process is not complete. If you exit now, "$(NameOfApp)" won't be properly installed, and you'll have to run Setup again before you can run "$(NameOfApp)"."
  171.  
  172. [CheckSpace Dialog]
  173.     ModelessText = $(NameOfApp)" Setup will now check for:\n\n"+
  174.     "  - Available disk space.\n"+
  175.     "  - Existing copies of "$(NameOfApp)" files.\n"+
  176.     "  - Required space for "$(NameOfApp)" \n"+
  177.     "    options."
  178.  
  179. [CopyList Dialog]
  180.     ModelessText = "Please wait while Setup determines which disks and files to copy."
  181.  
  182. [Select MultiUser]
  183.     STF_MB_TYPE = 3
  184.     STF_MB_TITLE = "Multiuser Installation"
  185.     STF_MB_ICON = 4
  186.     STF_MB_DEF = 3
  187.     STF_MB_TEXT = "If you join a workgroup, you can access secured databases created by other people in your workgroup.\n\n"+
  188.                   "Do you want to join an existing workgroup?"
  189.  
  190. [Wrong Mda Spec]
  191.     STF_MB_TYPE = 3
  192.     STF_MB_TITLE = "Multiuser Installation"
  193.     STF_MB_ICON = 2
  194.     STF_MB_DEF = 1
  195.     STF_MB_TEXT = "The path you specified doesn't exist."
  196.     
  197. [Default]
  198.     ContBut    = "&Continue"
  199.     ExitBut    = "E&xit"
  200.     HelpBut    = "&Help"
  201.     BackBut    = "&Back"
  202.     NoLocalHD = "Setup can't detect a hard drive in your machine.  Single-user installation requires a local hard drive.  Setup will now quit."
  203.     SYSMDAFILE = "SYSTEM.MDA"
  204.     SYSINI = "SYSTEM.INI"
  205.     BOOTSECT = "boot"  ;refers to section in system.ini
  206.     NETDRIVER = "NETWORK.DRV"
  207.     NUMLOCKS = "500"
  208.     WINLANG  = "Unknown language"
  209.     CIRLANG  = "U.S. English"    ;localizer, need to edit for diff. lang.
  210.     LANGUAGE = "0409"            ; windows language code, need to be localized
  211.     ADMININTALL = "INSTALL\\"   ; directory name
  212.     SetupExeCmd = "stfsetup /w"
  213.     CODEPAGE = "04E4"
  214.     SER_LOC = "00-077-0100"
  215.     AppExeName = "msarn110"
  216.  
  217. [Installation]
  218.     ; Text of the dialog appearing while files are being copied
  219.     WhileInstallText="Now would be a great time to fill out your "+
  220.     "registration card.  When you send it in, Microsoft will:\n\n"+
  221.     "  - Inform you of product updates.\n  - Offer you customer "+
  222.     "support.\n  - Send you information about\n    related "+
  223.     "Microsoft products."
  224.     ContinueButtonDesc = "&Continue anyway"
  225.     ExitButtonDesc = "&Quit installing "$(NameOfApp)
  226.     BackButtonDesc = "Specify &different installation options"
  227. ;Localizer, do not localize the following strings.
  228.     szAdditionalNeeded = "AdditionalNeeded"
  229.     szTotalFree = "TotalFree"
  230.     szTotalNeeded = "TotalNeeded"
  231.     szFreePerDisk = "FreePerDisk"
  232.     szClusterPerDisk = "ClusterPerDisk"
  233.     szTroublePairs = "TroublePairs"
  234.     szNeededPerDisk = "NeededPerDisk"
  235.     szExtraCosts = "ExtraCosts"
  236.  
  237. [No Space Cir]
  238.     PromptAdditional = "To complete this installation, you need an additional "$(ADDCIR)"K bytes free on your "$(NameOfApp)" ("$(CIRDRIVE)") drive. "+
  239.     " Do you want to continue?"
  240.  
  241. [No Space Win]
  242.     PromptAdditional = "To complete this installation, you need an additional "$(ADDWIN)"K bytes free on your Windows ("$(WINDRIVE)") drive.  Do you want to continue?"
  243.  
  244. [No Space Both]
  245.     PromptAdditional = "To complete this installation, you need an additional "$(ADDWIN)"K bytes free on your Windows ("$(WINDRIVE)") drive "+
  246.     "and an additional "$(ADDCIR)"K bytes free on your "$(NameOfApp)" ("$(CIRDRIVE)") drive.  Do you want to continue?"
  247.  
  248. [Registration Failed]
  249.     STF_MB_TEXT = "OLE installation failed.  Check your available disk space and reinstall the OLE option before attempting to run "$(NameOfApp)"."
  250.  
  251. [Setup Aborted]
  252.     STF_MB_TEXT = "You quit Setup during the installation phase.  "$(NameOfApp)" is not properly installed.  You must run Setup again before you can run "$(NameOfApp)"."
  253.  
  254. [INI Failed]
  255.     STF_MB_TEXT  = "Setup couldn't update one or more INI files.  Check your available disk space.   You must run Setup again before you can run "$(NameOfApp)"."
  256.  
  257. [Init Options Failed]
  258.     STF_MB_TEXT  = "Setup can't find your Windows directory.  Add the Windows directory to the path in your AUTOEXEC.BAT file, and then restart Windows and run Setup again."
  259.  
  260. [UNC]    
  261.     STF_MB_TEXT = "The path you enter to start "$(NameOfApp)" Setup must begin with a drive letter.  If you're installing from a network, connect to the server before you run Setup."    
  262.  
  263. [Setup Failed]
  264.     STF_MB_TEXT = "An error has occurred during Setup.  Please make sure you are not out of disk space."
  265.  
  266. [Detect Failed]
  267.     STF_MB_TEXT = "Detect component of "$(NameOfApp)" failed.  Setup will now quit."
  268.  
  269. [FILES Warning Dialog]
  270.     STF_MB_TEXT = "The FILES setting in your config.sys file is less than 50.  "+
  271.       "This means that you may have difficulty running MS-DOS applications while you are running "$(NameOfApp)".\r\n\r\n"+
  272.       "You should increase the FILES setting to 50."
  273.  
  274. [Wrong Commdlg]
  275.     STF_MB_TEXT = "If you want, you can install a different version of COMMDLG.DLL, so that dialog boxes shared by several applications (including "$(NameOfApp)") will be in "$(CIRLANG)"."+
  276.       "If you don't install the new version of COMMDLG.DLL, dialog boxes shared by several applications will be in "$(WINLANG)". (You can get all language versions of COMMDLG.DLL from Product Support.) \r\n\r\n"+
  277.       "Do you want to install the "$(CIRLANG)" version of COMMDLG.DLL  and save the original version as COMMDLG.BAK?\r\n"
  278.                   
  279.     STF_MB_TITLE = $(Title)
  280.     STF_MB_TYPE = 3
  281.     STF_MB_DEF = 1
  282.     STF_MB_ICON = 4
  283.  
  284. [Wrong Commdlg Language]
  285.     STF_MB_TEXT = "Setup has detected a different language version of COMMDLG.DLL. "+
  286.       "This means that some information in "$(NameOfApp)" dialog boxes will be in "$(WINLANG)"."
  287.     STF_MB_TITLE = $(Title)
  288.     STF_MB_TYPE = 1
  289.     STF_MB_DEF = 1
  290.     STF_MB_ICON = 5
  291.  
  292. [Wrong Help]
  293.     STF_MB_TEXT = "You have a different version of WINHELP.EXE.  The version of WINHELP.EXE shipped with "$(NameOfApp)" is in "$(CIRLANG)" but your version is in "$(WINLANG)". "+
  294.       "If you update the file, all of the applications that use WINHELP.EXE will have "$(CIRLANG)" Help.  "+
  295.                   "If you don't update the file, all of the applications that use WINHELP.EXE will have "$(WINLANG)" Help. \r\n\r\n"+
  296.                   "Do you want to update to the "$(CIRLANG)" version of WINHELP.EXE?\r\n"
  297.  
  298.     STF_MB_TITLE = $(Title)
  299.     STF_MB_TYPE = 3
  300.     STF_MB_DEF = 1
  301.     STF_MB_ICON = 5
  302.  
  303. [Setup Successful]
  304.     STF_MB_TITLE = $(Title)
  305.     STF_MB_TYPE = 1
  306.     STF_MB_DEF = 1
  307.     STF_MB_ICON = 2
  308.     STF_MB_TEXT = $(NameOfApp)" Setup is complete!"
  309.  
  310. [Share Error]
  311.     STF_MB_TEXT = "Setup was unable to add the Share utility.  Before you can run "$(NameOfApp)", you need to add the Share utility (with "$(NUMLOCKS)" locks minimum) manually, and then restart your machine."
  312.     STF_MB_TITLE = $(Title)
  313.     STF_MB_TYPE = 1
  314.     STF_MB_DEF = 1
  315.     STF_MB_ICON = 3
  316.  
  317. [Share Success]
  318.     STF_MB_TEXT = "The file was successfully modified."
  319.     STF_MB_TITLE = $(Title)
  320.     STF_MB_TYPE = 1
  321.     STF_MB_DEF = 1
  322.     STF_MB_ICON = 2
  323.  
  324. [Share Dialog]
  325.     RadioText1 = "You have installed SHARE.EXE in your AUTOEXEC.BAT file. Setup needs to modify your installation of  SHARE.EXE to increase the number of locks to 500.  "$(NameOfApp)" will not run without this change. \r\n"+
  326.                 "After Setup is complete, you must restart your machine for the change to take effect.  What do you want Setup to do?"
  327.     RBut1 = "&Modify AUTOEXEC.BAT and save the original as AUTOEXEC.BAK"
  328.     RBut2 = "M&ake a copy of AUTOEXEC.BAT, modify the copy and save it as AUTOEXEC.ACC"
  329.     RBut3 = "&Do not modify AUTOEXEC.BAT"
  330.     RadioDefault = 1;
  331.     OptionsGreyed = {}
  332.     ContinueButtonDesc = "&Continue"
  333.     ExitButtonDesc = "E&xit to Windows"
  334.  
  335. [Config Share Dialog]
  336.     RadioText1 = "You have installed SHARE.EXE in your CONFIG.SYS file. Setup needs to modify your installation of SHARE.EXE to increase the number of locks to 500.  "$(NameOfApp)" won't run without this change. \r\n"+
  337.                 "After Setup is complete, you must restart your machine for the change to take effect.  What do you want Setup to do?"
  338.     RBut1 = "&Modify CONFIG.SYS and save the original as CONFIG.BAK"
  339.     RBut2 = "M&ake a copy of CONFIG.SYS, modify the copy and save it as CONFIG.ACC"
  340.     RBut3 = "&Do not modify CONFIG.SYS"
  341.     RadioDefault = 1;
  342.     OptionsGreyed = {}
  343.     ContinueButtonDesc = "&Continue"
  344.     ExitButtonDesc = "E&xit to Windows"
  345.  
  346. [Add Share Dialog]
  347.     RadioText1 = "If you install SHARE.EXE in your AUTOEXEC.BAT file, you'll be able to access data stored in dBASE, Btrieve, Paradox tables, and run multiple instances of "$(NameOfApp)" on your machine. "+
  348.     " If you don't install SHARE.EXE, you won't be able to access data stored in dBASE, Btrieve, or Paradox tables or run multiple instances of "$(NameOfApp)" on your machine."+
  349.      "What do you want to do?\r\n"
  350.     RBut1 = "&Modify AUTOEXEC.BAT and save the original as AUTOEXEC.BAK"
  351.     RBut2 = "M&ake a copy of AUTOEXEC.BAT, modify the copy and save it as AUTOEXEC.ACC"
  352.     RBut3 = "&Do not modify AUTOEXEC.BAT"
  353.     RadioDefault = 1;
  354.     OptionsGreyed = {}
  355.     ContinueButtonDesc = "&Continue"
  356.     ExitButtonDesc = "E&xit to Windows"
  357.  
  358. [Admin Path Dialog]
  359.     GetPathMessBoxTitle = $(NameOfApp)" Setup"
  360.     GetPathMessBoxText  = "The path you specified isn't valid or doesn't start with a drive letter."
  361.  
  362.  
  363. [Admin CopyList Dialog]
  364.     ModelessText = "Please wait while Setup determines where to copy files."
  365.     ModelessBmp = "disks"
  366.  
  367. [Copy Local]
  368.     STF_MB_TEXT = "You can use the copy of "$(NameOfApp)" on your network, or you can install "$(NameOfApp)" on your hard disk. "+
  369.                   "If you install "$(NameOfApp)" on your hard disk, it will run faster, but it will take up space on your hard disk. \n\n"+
  370.                   "Do you want to install "$(NameOfApp)" on your hard disk?"
  371.     STF_MB_TITLE = $(Title)
  372.     STF_MB_TYPE = 3
  373.     STF_MB_DEF = 1
  374.     STF_MB_ICON = 2
  375.     
  376. [In Use Error]
  377.     STF_MB_TEXT = "You can't set up "$(NameOfApp)" while running another version of "$(NameOfApp)"."
  378.     STF_MB_TITLE = $(Title)
  379.     STF_MB_TYPE = 1
  380.     STF_MB_DEF = 1
  381.     STF_MB_ICON = 3
  382.  
  383. [Older Dlls]
  384.     QuitText1= "You have older versions of some DLL files in your Windows system directory.  You must update them before you can run "$(NameOfApp)". "+
  385.     " If you update them, dialog boxes shared by other applications will be in "$(CIRLANG)".  (You can get all language versions of current DLL files from Product Support.) "+
  386.     " If you don't update them, you won't be able to run "$(NameOfApp)".  Do you want Setup to update the DLL files?"
  387.     
  388. [Old Help]
  389.     STF_MB_TEXT = "You have an older version of WINHELP.EXE.  If you update it, all the applications that use WINHELP.EXE will have "$(CIRLANG)"help, "+
  390.            "and you will be able to use "$(NameOfApp)" Help and Cue Cards.  If you don't update it, you wont' be able to use "$(NameOfApp)" Help or Cue Cards."+
  391.            "Do you want Setup to update it?"
  392.     STF_MB_TITLE = $(Title)
  393.     STF_MB_TYPE = 3
  394.     STF_MB_DEF = 1
  395.     STF_MB_ICON = 5
  396.  
  397. [Reboot Err]
  398.     STF_MB_TEXT = "Installation of "$(NameOfApp)" completed. \r\n"+
  399.                 "You have changed the configuration for share.exe.  You need to reboot your machine before running "$(NameOfApp)"." 
  400.     STF_MB_TITLE = $(Title)
  401.     STF_MB_TYPE = 1
  402.     STF_MB_DEF = 1
  403.     STF_MB_ICON = 2
  404.  
  405.  
  406. [Default Copy Options]
  407.     VERSHELL = "3,10,0,103"
  408.     VEROLECLI = "1,10,0,0"
  409.     VEROLESVR = "1,10,0,0"
  410.     VERCOMMDLG = "3,10,0,103"
  411.     VERDDEML = "3,10,0,103"
  412.     VERVER = "3,10,0,103"
  413.  
  414. [Shared File Member]
  415.     SharedFile = $($) 
  416.     Version = *($(Versions), $(#))
  417.     DestSym = *($(SFDestSymbols), $(#))
  418.     CopySym = *($(SFCopySymbols), $(#))
  419.  
  420. [None]
  421.     SmallFont = "Null File"
  422.  
  423. [8514]
  424.     Font = "smallf.fon"
  425.     FontDesc = "Small Fonts (8514/a res)"
  426.     SmallFont = "8514 Font"
  427.  
  428. [VGA]
  429.     Font = "smalle.fon"
  430.     FontDesc = "Small Fonts (VGA res)"
  431.     SmallFont = "VGA Font"
  432.  
  433. [EGA]
  434.     Font = "smallb.fon"
  435.     FontDesc = "Small Fonts (EGA res)"
  436.     SmallFont = "EGA Font"
  437.  
  438. [Graph Reg]
  439.     RegEntries =    "REGEDIT\r\n"+
  440.                     "HKEY_CLASSES_ROOT\\MSGraph = Microsoft Graph\r\n"+
  441.                     "HKEY_CLASSES_ROOT\\.gra = MSGraph\r\n"+
  442.                     "HKEY_CLASSES_ROOT\\MSGraph\\protocol\\StdFileEditing\\server = "$(GRAPHPATH)"GRAPH.EXE\r\n"+
  443.                     "HKEY_CLASSES_ROOT\\MSGraph\\protocol\\StdFileEditing\\SetDataFormats = Native,CF_TEXT\r\n"+
  444.                     "HKEY_CLASSES_ROOT\\MSGraph\\protocol\\StdFileEditing\\RequestDataFormats = Native,CF_METAFILEPICT\r\n"+
  445.                     "HKEY_CLASSES_ROOT\\MSGraph\\protocol\\StdExecute\\server = "$(GRAPHPATH)"GRAPH.EXE\r\n"
  446.  
  447. [Graph Version Files]
  448.     FileName = "Graph.exe"
  449.     Version = "3,0,2,0" 
  450.     DestSym = $(GRAPHPATH)
  451.     CopySym = $(COPYGRAPH)
  452.  
  453. [Regedit Version Files]
  454.     FileName = "regedit.exe"
  455.     Version = "3,10,0,103" 
  456.     DestSym = $(WindowsPath)
  457.     CopySym = $(COPYREGEDIT)
  458.  
  459. [Winhelp File]
  460.     FileName = "Winhelp.exe"
  461.     Version = "3,10,0,425" 
  462.     DestSym = $(WindowsPath)
  463.     CopySym = $(COPYWINHLP)
  464.  
  465. [Commdlg File]
  466.     FileName = "Commdlg.dll"
  467.     Version = $(VERCOMMDLG)
  468.     DestSym = $(SystemPath)
  469.     CopySym = $(COPYCOMMDLG)
  470.  
  471. [System Paths]
  472.      SystemPath =  "" ? DETCMD.DLL GetWindowsSysDir
  473.      WindowsPath     =  "" ? DETCMD.DLL GetWindowsDir
  474.     HARDDRIVELIST   = "" ? DETCMD.DLL GetAllValidLocalHardDrives
  475.     NETDRIVELIST = "" ? DETCMD.DLL GetAllValidNetworkDrives
  476.  
  477. [Destination Path]
  478.     DIREXISTS = "" ? DETCMD.DLL DoesDirExist $(DETPATH)
  479.  
  480. [Environment Variable]
  481.     FILESCOUNT = "" ? DETCMD.DLL GetConfigNumFiles
  482.  
  483. [Check Netdrive Installed]
  484.     FNetDriver = "" ? DETCMD.DLL GetIniSectionKeyString $(SYSINI) $(BOOTSECT) $(NETDRIVE)
  485.  
  486. [Admin Path List]
  487.     AdminPathList = { $(ACCPATH), $(ADMINGRAPHPATH), $(ADMINMDAPATH) }
  488.  
  489. [SavedPaths]
  490.     CIRPATH = ""
  491.     CIRPATH2 = ""
  492.     GRAPHPATH2 = ""
  493.     SYSMDAPATH2 = ""
  494.  
  495.  
  496. [Shell Commands]
  497.     ui start LanManNetWork
  498.     read-syms    "Release Date"
  499.     read-syms    "Custom"
  500.     read-syms     "Default"
  501.     detect          "System Paths"
  502.     set WINDOWSPATH = $(WindowsPath)
  503.     set SYSTEMPATH = $(SystemPath)
  504.     ui start UNC
  505.     ifstr $(ANSWER) == "YES"
  506.         read-syms "UNC"
  507.         goto "ExitError"
  508.     endif
  509.     ui start "WinVer"
  510.  
  511.     ifstr $(STF_MODE) == "ADMIN"
  512.         read-syms "Admin Title"
  513.         set-title       $(Title)        
  514.         set COPYREGEDIT = "COPY"
  515.         set    DECOMP = "DECOMPRESS"
  516.         set STF_DECOMPRESS = "DECOMPRESS"
  517.         set REN = "RENAME"
  518.         init-system-net
  519.         set SmallFont = "Admin Font"
  520.     else
  521.         ifstr $(STF_MODE) == "NETWORK"
  522.             read-syms "Network Title"
  523.             set-title       $(Title)
  524.             read-syms "SavedPaths" 
  525.             set AppPath = $(CIRPATH2)       
  526.         else
  527.             read-syms "Title"
  528.             set-title       $(Title)        
  529.         endif
  530.         set COPYREGEDIT = "COPY"
  531.         set    DECOMP = "DECOMPRESS"
  532.         set STF_DECOMPRESS = "DECOMPRESS"
  533.         set STF_OVERWRITE = "OLDER"
  534.         set REN = "RENAME"
  535.         init-system
  536.         ui start video
  537.         read-syms $(ANSWER)
  538.     endif
  539.     set CIRPATH = $(DefaultPath)
  540.     set COPYGRAPH = $(InstallGraph)
  541.     read-syms       "Default Copy Options"
  542.  
  543.  
  544.     ifstr $(STF_DETECT_OUTCOME) != "OKAY"
  545.         read-syms "Detect Failed"
  546.         goto ExitError
  547.     endif
  548.  
  549.     set     HD = *($(HARDDRIVELIST), 1)
  550.     ifstr $(STF_MODE) != "NETWORK"
  551.         set     CIRPATH2 = $(HD)$(DefaultPath)
  552.         set     CIRLOCALPATH = $(CIRPATH2) 
  553.     else
  554.         set        CIRLOCALPATH = $(HD)$(DefaultPath)
  555.     endif
  556.  
  557.     set UserName = $(STF_CD_NAME)
  558.     ifstr $(STF_MODE) == "ADMIN"
  559.         goto "GetPath"
  560.     else
  561.         set GRAPHPATH = $(WindowsPath)"msapps\msgraph\"
  562.     endif
  563.  
  564. DoInstallDLLs = +
  565.         set DLLPATH = $(SystemPath)
  566.         read-syms "Shared Files"
  567.         ForListDo $(SharedFiles)
  568.             read-syms "Shared File Member"
  569.             ui start "InstallShared"
  570.             ifstr $(ANSWER) == "YES"
  571.                 set STF_MB_TITLE = $($)
  572.                 ui start MessageBox
  573.                 exit
  574.             endif
  575.         EndForListDo
  576.  
  577.         ifcontains "NEW" in { $(COPYCOMMDLG), $(COPYDDEML), $(COPYOLECLI), $(COPYOLESVR), $(COPYSHELL), $(COPYVER) }
  578.             set CPSYM = "NEW"
  579.             Install "Shared Files Script"
  580.         endif    
  581.         
  582.         ifcontains "COPY" in { $(COPYCOMMDLG), $(COPYDDEML), $(COPYOLECLI), $(COPYOLESVR), $(COPYSHELL), $(COPYVER) }
  583.             read-syms "Older Dlls"
  584.             ui start OldFile
  585.             ifstr $(DLGEVENT) == "CONTINUE"
  586.                 ui pop 1
  587.             else
  588.                 exit
  589.             endif
  590.         endif
  591.  
  592.         ifstr $(COPYCOMMDLG) == "!COPY"
  593.             read-syms "Commdlg File"
  594.             ui start "CheckLang"
  595.             ifstr $(ANSWER) == "YES"
  596.                 read-syms "Wrong Commdlg"
  597.                 ui start MessageBox
  598.  
  599.                 ifstr $(DLGEVENT) == "YES"
  600.                     ifstr $(INUSE) == "YES"
  601.                         set STF_MB_TITLE = "Commdlg.dll"
  602.                         read-syms "Shared Files"
  603.                         ui start MessageBox
  604.                         exit
  605.                     endif
  606.                     set COPYCOMMDLG = "COPY"
  607.                 endif
  608.             endif
  609.         endif
  610.         set CPSYM = "COPY"
  611.         Install "Shared Files Script"
  612.  
  613.     
  614.         ifstr $(STF_MODE) == "NETWORK"
  615.             read-syms "Copy Local"
  616.             ui start MessageBox
  617.             set LocalCopy = $(DLGEVENT)
  618.             ifstr $(DLGEVENT) == "NO"
  619.                 set INIPATH = $(WindowsPath)
  620.                 set COPYPROG = "OFF"
  621.             else
  622.                 set CIRPATH2 = $(HD)$(CIRDIR)
  623.             endif
  624.  
  625.         endif
  626.  
  627. GetPath = +
  628.     set CurrentDialog = "GetPath"
  629.     ifstr $(STF_MODE) == "ADMIN"
  630.         read-syms "Admin Path Dialog"
  631.         ui start GetAdminPath
  632.  
  633.         ifstr $(DLGEVENT) == "CONTINUE"
  634.             read-syms "Admin Path List"
  635.             ForListDo $(AdminPathList)
  636.                 set DETPATH = $($)
  637.                 detect "Destination Path"
  638.                 ifstr $(STF_DETECT_OUTCOME) != "OKAY"
  639.                     read-syms "Detect Failed"
  640.                     goto ExitError
  641.                 else-ifstr $(DIREXISTS) != "YES"
  642.                     set CREATEPATH = $(DETPATH) 
  643.                     install "Create Dir"
  644.                     ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  645.                         goto "GetPath"
  646.                     endif
  647.                 endif    
  648.             EndForListDo
  649.             ui pop 1
  650.             set CIRPATH = $(ACCPATH)$(ADMININTALL)
  651.             set CIRPATH2 = $(ACCPATH2)$(ADMININTALL)
  652.             set  AppPath = $(ACCPATH)
  653.             set  WindowsPath = $(ACCPATH)
  654.             set  SystemPath = $(ACCPATH)
  655.             set WHELPPATH = $(CIRPATH)
  656.             set DLLPATH = $(CIRPATH)
  657.             set GRAPHPATH = $(ADMINGRAPHPATH)
  658.             set SYSMDAPATH = $(ADMINMDAPATH)
  659.             goto CheckSizes
  660.  
  661.         else-ifstr $(DLGEVENT) == "EXIT"
  662.             goto "quit"
  663.         endif
  664.     else
  665.          read-syms       "Path Dialog"
  666.         set AccessExePath = $(CIRPATH)
  667.         set AccessExePath2 = $(CIRPATH2)
  668.         set EditTextIn = $(CIRLOCALPATH)
  669.         ui  start  GetPath
  670.  
  671.         set  CIRPATH = $(EditPathOut)
  672.         set  CIRPATH2 = $(EditTextOut)    
  673.         set  SYSMDAPATH2 = $(EditTextOut)
  674.         set  SYSMDAPATH = $(CIRPATH)
  675.         set  WHELPPATH = $(WindowsPath)
  676.         ifstr $(LocalCopy) != "NO"
  677.             set  AppPath = $(CIRPATH)
  678.         endif
  679.         ifstr $(DLGEVENT) == "CONTINUE"
  680.             set DETPATH = $(CIRPATH)
  681.             detect "Destination Path"
  682.             ifstr $(STF_DETECT_OUTCOME) != "OKAY"
  683.                 read-syms "Detect Failed"
  684.                 goto ExitError
  685.             else-ifstr $(DIREXISTS) == "YES"
  686.                 ui pop 1
  687.                 goto CopyListSizes
  688.             else
  689.                 ui pop 1
  690.                 goto "CreatePath"
  691.             endif
  692.         else-ifstr $(DLGEVENT) == "EXIT"
  693.             goto "quit"
  694.         endif
  695.     endif
  696.  
  697. CreatePath = +
  698.         set CREATEPATH = $(CIRPATH)
  699.         install "Create Dir"
  700.         ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  701.             goto "GetPath"
  702.         endif
  703.  
  704. CopyListSizes = +
  705.     ifstr $(STF_MODE) == "NETWORK"
  706.         ifstr $(LocalCopy) == "NO"
  707.             goto "InstallMultiUser"
  708.         endif
  709.     endif
  710.  
  711.     ui start CirInUse
  712.     ifstr $(ANSWER) == "NO"
  713.         read-syms "In Use Error"
  714.         ui start MessageBox
  715.         Exit
  716.     endif
  717.     read-syms "CheckSpace Dialog"
  718.     set CurrentDialog = "CopyListSizes"
  719.     ui start Modeless
  720.     ui pop 1
  721.     goto "CheckMultiUser"
  722.  
  723. quit = +
  724.     read-syms "Quit Dialog"
  725.     ui  start  QUIT
  726.     ifstr $(DLGEVENT) == "BACK"
  727.         ui   pop 1
  728.         goto $(CurrentDialog)
  729.     else-ifstr $(DLGEVENT) == "EXIT"
  730.         exit
  731.     endif
  732.  
  733. ExitError = +
  734.     set STF_MB_TITLE = $(Title)
  735.     set STF_MB_TYPE = 1
  736.     set STF_MB_DEF = 1
  737.     set STF_MB_ICON = 3
  738.     ui start MessageBox
  739.     exit
  740.  
  741. CheckMultiUser = +
  742.     set SYSMDAPATH = $(CIRPATH)
  743.     set SYSMDAPATH2 = $(CIRPATH2)
  744.     ifstr $(InstallChangeWorkGroup) == "NO"
  745.         goto "CheckSizes"
  746.     endif
  747.  
  748.     ui start GetIniKeyString
  749.     
  750.     ifstr $(ANSWER) == "NO"
  751.         goto "CheckSizes"
  752.     endif
  753.  
  754.     
  755.     set CurrentDialog = "CheckMultiUser"
  756.     read-syms "Select MultiUser"
  757.     ui start MessageBox
  758.     ifstr $(DLGEVENT) == "NO"
  759.         set SYSMDAPATH = $(CIRPATH)
  760.         set SYSMDAPATH2 = $(CIRPATH2)
  761.         goto "CheckSizes"
  762.     endif
  763.  
  764. InstallMultiUser = +
  765.     set MULTIUSER = "YES"
  766.     set CurrentDialog = "InstallMultiUser"    
  767.     set LastDialog = CheckMultiUser
  768.      read-syms "WorkGroup Path Dialog"
  769.  
  770.     ifstr $(STF_MODE) != "NETWORK"
  771.         set EditTextIn = $(CIRPATH2)
  772.     else
  773.         ui start ConvertMdaPath
  774.         ifstr $(ANSWER) == "YES"
  775.             set EditTextIn = $(SYSMDAPATH2)
  776.         else
  777.             set EditTextIn = $(CIRLOCALPATH)
  778.         endif
  779.     endif
  780.     
  781.     ui start "GetWorkGrpPath"
  782.  
  783.      ifstr $(DLGEVENT) == "BACK"
  784.         set MULTIUSER = "NO"
  785.         set SYSMDAPATH = $(CIRPATH)
  786.         set SYSMDAPATH2 = $(CIRPATH2)
  787.     else-ifstr $(DLGEVENT) == "EXIT"
  788.         set MULTIUSER = "NO"
  789.         set SYSMDAPATH = $(CIRPATH)
  790.         set SYSMDAPATH2 = $(CIRPATH2)
  791.         ifstr $(STF_MODE) != "NETWORK"
  792.             ui pop 1
  793.             goto $(LastDialog)
  794.         endif
  795.     else    
  796.         set SYSMDAPATH = $(EditPathOut)
  797.         set SYSMDAPATH2 = $(EditTextOut)  
  798.         set DETPATH = $(SYSMDAPATH)
  799.         detect "Destination Path"
  800.         ifstr $(STF_DETECT_OUTCOME) != "OKAY"
  801.             read-syms "Detect Failed"
  802.             goto ExitError
  803.         else-ifstr $(DIREXISTS) != "YES"
  804.             ui pop 1
  805.             goto "CreateWorkGrpPath"
  806.         endif
  807.     endif
  808.     ui pop 1
  809.     goto CheckSizes
  810.  
  811. CreateWorkGrpPath = +
  812.     set CREATEPATH = $(SYSMDAPATH)
  813.     install "Create Dir"
  814.     ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  815.         goto "InstallMultiUser"
  816.     endif 
  817.     ifstr $(STF_MODE) == "NETWORK"
  818.         goto "DoProgStuff"
  819.     else
  820.         goto "CheckSizes"
  821.     endif
  822.  
  823. CheckSizes = +
  824.     set CurrentDialog = "CheckSizes"
  825.     ui start InitDrives
  826.     read-syms "Installation"
  827.  
  828.     ifstr $(STF_MODE) == "ADMIN"
  829.         read-syms "Admin CopyList Dialog"
  830.     else
  831.         read-syms "CopyList Dialog"
  832.     endif
  833.  
  834.     ifstr $(STF_MODE) != "ADMIN"
  835.         set REGGRAPH = $(COPYGRAPH)
  836.         ifstr $(COPYGRAPH) == "YES" 
  837.             read-syms "Regedit Version Files"
  838.             ui start "InstallExisting"
  839.             ifstr $(CopySym) == "OFF"
  840.                 set COPYREGEDIT = "!COPY"
  841.             endif
  842.  
  843.             read-syms "Graph Version Files"
  844.             ui start "InstallExisting"
  845.             ifstr $(CopySym) == "OFF"
  846.                 set COPYGRAPH = "NO"
  847.             endif
  848.             ifstr $(CopySym) == "OLD"
  849.                 set COPYGRAPH = "NO"
  850.             endif
  851.         endif
  852.  
  853.         set COPYWINHLP = "OFF"
  854.         read-syms "Winhelp File"
  855.         ui start "InstallExisting"
  856.         ifstr $(CopySym) == "ON"
  857.             read-syms "Old Help"
  858.             ui start MessageBox
  859.             ifstr $(DLGEVENT) == "YES"
  860.                 set COPYWINHLP = "ON"
  861.             endif
  862.         else-ifstr $(CopySym) == "NEW"
  863.             set COPYWINHLP  = "ON"
  864.         else    
  865.             ui start "CheckLang"
  866.             ifstr $(ANSWER) == "YES"
  867.                 read-syms "Wrong Help"
  868.                 ui start MessageBox
  869.  
  870.                 ifstr $(DLGEVENT) == "NO"
  871.                     set COPYWINHLP  = "OFF"
  872.                 else
  873.                     set COPYWINHLP  = "ON"
  874.                 endif
  875.             endif
  876.         endif
  877.  
  878.         ifstr $(STF_MODE) == "NETWORK"
  879.             ifstr $(LocalCopy) == "NO"
  880.                 install "InstallLocalIni Script"
  881.             endif
  882.         endif
  883.  
  884.     endif
  885.  
  886.     set SYSDBPATH = $(CIRPATH)
  887.  
  888.     ui start Modeless       
  889.     install "Copy List Script"
  890.     ui pop 1
  891.  
  892.     ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  893.         read-syms "Setup Failed"
  894.         goto ExitError
  895.     else-ifstr $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  896.         read-syms "Setup Aborted"
  897.         goto ExitError
  898.     endif
  899.  
  900.     goto Space
  901.  
  902. Space = +
  903.     ifstr $(STF_MODE) == "NETWORK"
  904.         ifstr $(LocalCopy) == "NO"
  905.             goto inst
  906.         endif
  907.     endif
  908.     set CurrentDialog = Space
  909.     ui start EnoughSpace
  910.  
  911.     ifstr $(ANSWER) == "BOTH"
  912.         read-syms "No Space Both"
  913.     else-ifstr $(ANSWER) == "WIN"
  914.         read-syms "No Space Win"
  915.     else-ifstr $(ANSWER) == "CIR"
  916.         read-syms "No Space Cir"
  917.     endif
  918.  
  919.     ifstr $(ANSWER) != "NO"
  920.         ui start NoSpace
  921.         ifstr $(DLGEVENT) == "BACK"
  922.             install "Clear List Script"
  923.             ui pop 1
  924.             goto GetPath
  925.         else-ifstr $(DLGEVENT) == "EXIT"
  926.             goto quit
  927.         endif
  928.         ui pop 1
  929.     endif
  930.     goto inst
  931.  
  932. inst = +
  933.     set CurrentDialog = inst
  934.  
  935.     ifstr $(STF_MODE) != "ADMIN"
  936.         ifstr $(COPYWINHLP) == "ON"
  937.             ui start HelpQ
  938.         endif
  939.     endif
  940.  
  941.     ifstr $(STF_MODE) == "ADMIN"
  942.         ui start CreateDB
  943.         ifstr $(ANSWER) == "NO"
  944.             read-syms "Setup Failed"
  945.             goto ExitError
  946.         endif
  947.     endif
  948.  
  949.     install "Install Script"
  950.     
  951.     ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  952.         read-syms "Setup Failed"
  953.         goto ExitError
  954.     else-ifstr $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  955.         read-syms "Setup Aborted"
  956.         goto ExitError
  957.     else-ifstr $(STF_MODE) != "ADMIN"
  958.         ifstr $(STF_MODE) == "NETWORK"
  959.             ifstr $(LocalCopy) == "NO"
  960.                 set REGGRAPH = "YES"
  961.                 ui start ConvertPath 
  962.                 set CIRPATH2 = $(AccessExePath2)
  963.             endif
  964.         endif
  965.  
  966.         ifstr $(MULTIUSER) != "YES"
  967.             ui start CreateDB
  968.  
  969.             ifstr $(ANSWER) == "NO"
  970.                 read-syms "Setup Failed"
  971.                 goto ExitError
  972.             endif
  973.         endif
  974.  
  975.         install "Win Ini File"
  976.         install "INI File"
  977.         ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  978.             read-syms "INI Failed"
  979.             goto ExitError
  980.         else-ifstr $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  981.             read-syms "Setup Aborted"
  982.             goto ExitError
  983.         endif
  984.  
  985.         ifstr $(REGGRAPH) == "YES"
  986.             read-syms "Ole Reg"
  987.             ui start "OleApps"
  988.             read-syms "Graph Reg"
  989.             ui start "RegisterOleEntries"
  990.             ifstr $(ANSWER) == "NO"
  991.                 ui pop 1
  992.                 read-syms "Registration Failed"
  993.                 goto "ExitError"
  994.             endif
  995.             ui pop 1
  996.         endif
  997.     endif
  998.  
  999. DoProgStuff = +
  1000.     ifstr $(STF_MODE) == "NETWORK"
  1001.         ifstr $(LocalCopy) == "NO"
  1002.             goto DoShareStuff
  1003.         endif
  1004.     endif
  1005.     ifstr $(STF_MODE) == "ADMIN"
  1006.         goto Done
  1007.     endif
  1008.  
  1009. DoShareStuff = +
  1010.  set CurrentDialog = DoShareStuff
  1011.   set MAKEBAK = "NO"
  1012.   set SHAREPATH = $(WINDOWSPATH)
  1013.   ui start VSHARERunning
  1014.   ifstr $(ANSWER) == "NO"
  1015.     ui start ConfigExist
  1016.     ifstr $(CONFIGEXIST) == "YES"
  1017.         read-syms "Config Share Dialog"
  1018.         ui start ValidConfig
  1019.     else
  1020.         set ANSWERCONFIG = "NOTEXIST"
  1021.     endif    
  1022.     ifstr $(ANSWERCONFIG) == "NO"
  1023.         ui start ShareDialog
  1024.         ifstr $(DLGEVENT) == "CONTINUE"
  1025.             ifstr $(ButtonChecked) == "1"
  1026.                 set MAKEBAK = "YES"
  1027.             else-ifstr $(ButtonChecked) == "2"
  1028.                 set MAKEBAK = "NO"
  1029.             else
  1030.                 ui pop 1
  1031.                 goto Done
  1032.             endif
  1033.             ui start ShareConfig
  1034.             ifstr $(ANSWER) == "NO"
  1035.                 read-syms "Share Error" 
  1036.                 ui start MessageBox
  1037.                 set MAKEBAK = "NO"
  1038.             else
  1039.                 read-syms "Share Success"
  1040.                 ui start MessageBox
  1041.             endif
  1042.         else-ifstr $(DLGEVENT) == "EXIT"
  1043.             goto quit
  1044.         endif
  1045.         ui pop 1
  1046.     else-ifstr $(ANSWERCONFIG) == "NOTEXIST"
  1047.         ifstr $(AUTOEXIST) == "NO"
  1048.             goto Done
  1049.         endif
  1050.         ui start ValidShare
  1051.         ifstr $(ANSWER) != "YES"
  1052.             ifstr $(ANSWER) == "NOTEXIST"
  1053.                 read-syms "Add Share Dialog"
  1054.             else
  1055.                 read-syms "Share Dialog"
  1056.             endif
  1057.             ui start ShareDialog
  1058.             ifstr $(DLGEVENT) == "CONTINUE"
  1059.                 ifstr $(ButtonChecked) == "1"
  1060.                     set MAKEBAK = "YES"
  1061.                 else-ifstr $(ButtonChecked) == "2"
  1062.                     set MAKEBAK = "NO"
  1063.                 else
  1064.                     ui pop 1
  1065.                     goto Done
  1066.                 endif
  1067.                 ui start Share
  1068.                 ifstr $(ANSWER) == "COPY"
  1069.                     install "Autoexec Files Script"
  1070.                     ifstr $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  1071.                         read-syms "Setup Failed"
  1072.                         goto ExitError
  1073.                     else-ifstr $(STF_INSTALL_OUTCOME) != "STF_USERQUIT"
  1074.                         read-syms "Share Success"
  1075.                         ui start MessageBox
  1076.                     endif
  1077.                 else-ifstr $(ANSWER) == "NO"
  1078.                     read-syms "Share Error" 
  1079.                     set MAKEBAK = "NO"
  1080.                     ui start MessageBox
  1081.                 else
  1082.                     read-syms "Share Success"
  1083.                     ui start MessageBox
  1084.                 endif
  1085.             else-ifstr $(DLGEVENT) == "EXIT"
  1086.                 goto quit
  1087.             endif
  1088.             ui pop 1
  1089.         endif
  1090.     endif
  1091.     goto Done
  1092.    endif
  1093.  
  1094. Done = +
  1095.     ifstr $(STF_MODE) != "ADMIN"
  1096.         ifstr $(COPYPROG) == "ON"
  1097.             ui start ConfigExist
  1098.             ifstr $(CONFIGEXIST) == "YES"
  1099.                 detect "Environment Variable"
  1100.                 ifint $(FILESCOUNT) < "50"
  1101.                     read-syms "FILES Warning Dialog"
  1102.                     set STF_MB_TITLE = $(Title)
  1103.                     set STF_MB_TYPE = 1
  1104.                     set STF_MB_DEF = 1
  1105.                     set STF_MB_ICON = 5
  1106.                     ui start MessageBox
  1107.                 endif
  1108.             endif
  1109.         endif
  1110.         install "Program Manager"
  1111.         install "Work Group Icon"
  1112.         ifstr $(MAKEBAK) != "NO"
  1113.             read-syms "Reboot Err"
  1114.             ui start MessageBox
  1115.         endif
  1116.  
  1117.     else
  1118.         set CIRPATH2 = $(ACCPATH2)
  1119.         set GRAPHPATH2 = $(ADMINGRAPHPATH2)
  1120.         set SYSMDAPATH2 = $(ADMINMDAPATH2)
  1121.         Update-Inf "SavedPaths"
  1122.         Write-Inf $(CIRPATH)"stfsetup.in_"
  1123.     endif
  1124.  
  1125. CompleteInstall = +
  1126.         ifstr $(STF_MODE) != "ADMIN"
  1127.             ifstr $(RunExeName) != ""
  1128.                 ui start LAUNCHEXE
  1129.             endif
  1130.         endif
  1131.         read-syms "Setup Successful"
  1132.         ui start MessageBox
  1133.         Exit
  1134.  
  1135.     
  1136.  
  1137. [Create Dir]
  1138. CreateDir $(CREATEPATH), V
  1139. Exit
  1140.  
  1141. [Clear List Script]
  1142. ClearCopyList
  1143. Exit
  1144.  
  1145. [InstallLocalIni Script]
  1146.     AddSectionFilesToCopyList    "Net Ini"   $(STF_SRCDIR)  $(WindowsPath)
  1147. Exit
  1148.  
  1149. [Shared Files Script]
  1150. ifstr $(COPYOLECLI) == $(CPSYM) 
  1151.     AddSectionFilesToCopyList    "OLECLI"   $(STF_SRCDIR)  $(DLLPATH)
  1152. endif
  1153. ifstr $(COPYOLESVR) == $(CPSYM) 
  1154.     AddSectionFilesToCopyList    "OLESVR"   $(STF_SRCDIR)  $(DLLPATH)
  1155. endif
  1156. ifstr $(COPYDDEML) == $(CPSYM) 
  1157.     AddSectionFilesToCopyList    "DDEML"   $(STF_SRCDIR)  $(DLLPATH)
  1158. endif
  1159. ifstr $(COPYCOMMDLG) == $(CPSYM) 
  1160.     AddSectionFilesToCopyList    "COMMDLG"   $(STF_SRCDIR)  $(DLLPATH)
  1161. endif
  1162. ifstr $(COPYSHELL) == $(CPSYM) 
  1163.     AddSectionFilesToCopyList    "SHELL"   $(STF_SRCDIR)  $(DLLPATH)
  1164. endif
  1165. ifstr $(COPYVER) == $(CPSYM) 
  1166.     AddSectionFilesToCopyList    "VER"   $(STF_SRCDIR)  $(DLLPATH)
  1167. endif
  1168. ifcontains $(CPSYM)  in { $(COPYCOMMDLG), $(COPYDDEML), $(COPYOLECLI), $(COPYOLESVR), $(COPYSHELL), $(COPYVER) }
  1169.     CopyFilesInCopyList
  1170. endif
  1171. Exit
  1172.  
  1173. [Copy List Script]
  1174. SetupGetCopyListCost $(szFreePerDisk) $(szClusterPerDisk) $(szTotalFree)
  1175.  
  1176. ifstr $(STF_MODE) == "ADMIN"
  1177.     AddSectionFilesToCopyList    "Multiuser Files"   $(STF_SRCDIR)  $(ACCPATH)
  1178.     AddSectionFilesToCopyList    "Network Setup Files"   $(STF_SRCDIR)  $(CIRPATH)
  1179.     AddSectionFilesToCopyList    "Setup Must Files"   $(STF_SRCDIR)  $(CIRPATH)
  1180.     ifstr $(InstallGraph) == "YES"
  1181.         AddSectionFilesToCopyList    "Graph Files"   $(STF_SRCDIR)  $(GRAPHPATH)
  1182.         AddSectionFilesToCopyList    "Admin Graph Files"   $(STF_SRCDIR)  $(CIRPATH)
  1183.     endif
  1184.     AddSectionFilesToCopyList    "Ole Registration Files"    $(STF_SRCDIR)  $(CIRPATH)
  1185. else
  1186.     ifstr $(LocalCopy) != "NO"
  1187.         AddSectionFilesToCopyList    "Standard Setup Files"   $(STF_SRCDIR)  $(CIRPATH)
  1188.     endif
  1189.  
  1190.     ifstr $(COPYREGEDIT) == "COPY"
  1191.         AddSectionFilesToCopyList    "Ole Registration Files"    $(STF_SRCDIR)  $(WINDOWSPATH)
  1192.     endif
  1193.  
  1194.     ifstr $(COPYGRAPH) == "YES"
  1195.         AddSectionFilesToCopyList    "Graph Files"     $(STF_SRCDIR)  $(GRAPHPATH)
  1196.     endif
  1197.  
  1198.     ifstr $(InstallChangeWorkGroup) == "YES"
  1199.         AddSectionFilesToCopyList    "Workgrp Files"     $(STF_SRCDIR)  $(CIRPATH)
  1200.     endif
  1201.  
  1202.     ifstr $(COPYWINHLP) == "ON"
  1203.         AddSectionFilesToCopyList    "Winhelp Files"     $(STF_SRCDIR)  $(WHELPPATH)
  1204.     endif
  1205. endif
  1206.  
  1207. GetCopyListCost $(szAdditionalNeeded) $(szTotalFree) $(szTotalNeeded) $(szFreePerDisk) $(szClusterPerDisk) $(szTroublePairs) $(szNeededPerDisk) $(szExtraCosts)
  1208. Exit
  1209.  
  1210. [Install Script]
  1211. CopyFilesInCopyList
  1212. Exit
  1213.  
  1214. [Win Ini File]
  1215.     ifstr $(SmallFont) != "Null File"
  1216.         CreateIniKeyValue, "WIN.INI", "Fonts", "SmallFonts ("$(FontDesc)" res)", "SMALL"$(Font)".FON", O
  1217.     endif
  1218.  
  1219.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Options", "SystemDB", $(SYSMDAPATH2)$(SYSMDAFILE), O
  1220.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Options", "UtilityDB", $(CIRPATH2)"UTILITY.MDA", O
  1221.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Form Wizards", "Single-Column", "zwInitWizard, 1", O
  1222.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Form Wizards", "Tabular", "zwInitWizard, 2", O
  1223.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Form Wizards", "Graph", "zwInitWizard, 6", O
  1224.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Form Wizards", "Main/Subform", "zwInitWizard, 7", O
  1225.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Report Wizards", "Single-Column", "zwInitWizard, 3", O
  1226.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Report Wizards", "Groups/Totals", "zwInitWizard, 4", O
  1227.     CreateIniKeyValue, $(WindowsPath)$(IniFileName), "Report Wizards", "Mailing Label", "zwInitWizard, 5", O
  1228.  
  1229.     ifstr $(InstallGraph) == "ON"
  1230.         RemoveIniKey, $(WindowsPath)"WIN.INI", "MSAPPS", "MSGRAPH"
  1231.         CreateIniKeyValue,  $(WindowsPath)"WIN.INI", "MSAPPS", "MSGRAPH", $(GRAPHPATH2)"GRAPH.EXE"
  1232.     endif
  1233.  
  1234. Exit
  1235.  
  1236. [Work Group Icon]
  1237.     ifstr $(InstallChangeWorkGroup) == "YES"
  1238.         CreateProgManItem $(ProgGroupDesc),  "Change WorkGroup",  $(CIRPATH)"stfsetup /w"
  1239.     endif
  1240. Exit    
  1241.  
  1242. [Autoexec Files Script]
  1243. ifstr $(STF_MODE) == "ADMIN"
  1244.     AddSectionFilesToCopyList    "Autoexec Files"     $(STF_SRCDIR)  $(CIRPATH)
  1245. else
  1246.     AddSectionFilesToCopyList    "Autoexec Files"     $(STF_SRCDIR)  $(WindowsPath)
  1247. endif    
  1248. CopyFilesInCopyList
  1249. Exit
  1250.  
  1251. [Ole Registration Files]
  1252.         2, regedit.ex$, $(DECOMP), $(REN)=regedit.exe, $(COPYREGEDIT), DEST=$(WindowsPath)
  1253.  
  1254. [Graph Files]
  1255.         2, graph.ex$, $(DECOMP), $(REN)=graph.exe, BACKUP="*", DEST=$(GRAPHPATH), OVERWRITE=NEVER
  1256.  
  1257. [Workgrp Files]
  1258.         1, stfsetup.ex_, $(DECOMP), $(REN)=stfsetup.exe, DEST=$(CIRPATH), OVERWRITE=ALWAYS
  1259.         1, workgrp.in_, $(DECOMP), $(REN)=stfsetup.inf, BACKUP="*", DEST=$(CIRPATH), OVERWRITE=ALWAYS
  1260.         1, detcmd.dl_, $(DECOMP), $(REN)=detcmd.dll, DEST=$(CIRPATH), OVERWRITE=ALWAYS
  1261.         1, setup.ini, $(DECOMP), DEST=$(CIRPATH), OVERWRITE=ALWAYS
  1262.  
  1263. [Setup Must Files]
  1264.         1, setup.exe, !DECOMPRESS
  1265.         1, stfsetup.ex_, !DECOMPRESS
  1266.         1, stfsetup.in_, !DECOMPRESS
  1267.         1, workgrp.in_, !DECOMPRESS
  1268.         1, setup.ini, !DECOMPRESS
  1269.         1, workgrp.in_, !DECOMPRESS
  1270.         1, detcmd.dl_, !DECOMPRESS
  1271.         1, commdlg.dl_, !DECOMPRESS
  1272.         1, ver.dl_, !DECOMPRESS
  1273.         1, smalle.fo$, !DECOMPRESS
  1274.         1, smallb.fo$, !DECOMPRESS
  1275.         1, smallf.fo$, !DECOMPRESS
  1276.         2, winhelp.ex$, !DECOMPRESS
  1277.         2, winhelp.hl$, !DECOMPRESS 
  1278.         1, ddeml.dl$, !DECOMPRESS
  1279.         2, olecli.dl$, !DECOMPRESS
  1280.         2, olesvr.dl$, !DECOMPRESS
  1281.         2, shell.dl$, !DECOMPRESS
  1282.         1, ver.dl$, !DECOMPRESS
  1283.         1, commdlg.dl$, !DECOMPRESS
  1284.         2, share.ex$, !DECOMPRESS
  1285.     2, regedit.ex$, !DECOMPRESS
  1286.  
  1287. [Admin Graph Files]
  1288.     2, graph.ex$, !DECOMPRESS
  1289.     
  1290. [VGA Font]
  1291.         1, smalle.fo$, $(DECOMP), $(REN)=smalle.fon, DEST=$(WindowsPath), OVERWRITE=NEVER
  1292.  
  1293. [EGA Font]
  1294.         1, smallb.fo$, $(DECOMP), $(REN)=smallb.fon, DEST=$(WindowsPath), OVERWRITE=NEVER
  1295.  
  1296. [8514 Font]
  1297.         1, smallf.fo$, $(DECOMP), $(REN)=smallf.fon, DEST=$(WindowsPath), OVERWRITE=NEVER
  1298.  
  1299. [Winhelp Files]
  1300.         2, winhelp.ex$, $(DECOMP), $(REN)=winhelp.exe, DEST=$(WindowsPath), BACKUP="*", OVERWRITE=ALWAYS
  1301.         2, winhelp.hl$, $(DECOMP), $(REN)=winhelp.hlp, DEST=$(WindowsPath), BACKUP="winhelp.old", OVERWRITE=ALWAYS
  1302.  
  1303. [Autoexec Files]
  1304.         2, share.ex$, $(DECOMP), $(REN)=share.exe
  1305.  
  1306. [DDEML]
  1307.         1, ddeml.dl$, $(DECOMP), $(REN)=ddeml.dll, BACKUP="*", OVERWRITE=ALWAYS
  1308.  
  1309. [OLECLI]
  1310.         2, olecli.dl$, $(DECOMP), $(REN)=olecli.dll, BACKUP="*", OVERWRITE=ALWAYS
  1311.  
  1312. [OLESVR]
  1313.         2, olesvr.dl$, $(DECOMP), $(REN)=olesvr.dll, BACKUP="*", OVERWRITE=ALWAYS
  1314.  
  1315. [SHELL]
  1316.         2, shell.dl$, $(DECOMP), $(REN)=shell.dll, BACKUP="*", OVERWRITE=ALWAYS
  1317.  
  1318. [VER]
  1319.         1, ver.dl$, $(DECOMP), $(REN)=ver.dll, BACKUP="*", OVERWRITE=ALWAYS
  1320.  
  1321. [COMMDLG]
  1322.         1, commdlg.dl$, $(DECOMP), $(REN)=commdlg.dll, BACKUP="*", OVERWRITE=ALWAYS
  1323.  
  1324.