home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / number9 / gxe64nt / gxe64nt.exe / OEMSETUP.INF < prev    next >
INI File  |  1994-11-16  |  33KB  |  706 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [Identify]
  4.     read-syms Identification
  5.     set Status     = STATUS_SUCCESSFUL
  6.     set Identifier = $(OptionType)
  7.     set Media      = #("Source Media Descriptions", 1, 1)
  8.     Return $(Status) $(Identifier) $(Media)
  9. [ServicesEntry]
  10.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  11. [SystemVariables]
  12.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  13.     STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
  14. [MiniportDrivers]
  15.     s3        = s3       , !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, {s3}                          , 0, "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\Drivers\s3.sys"    , 7, 1, {}         , noconfig
  16. [ExternalInstallOption]
  17.     Set !G:DebugOutputControl = 0
  18.     set Exit_Code   = $(!SETUP_ERROR_GENERAL)
  19.     install LoadSetupLibrary
  20.     ifstr(i)      $(STF_LANGUAGE)  == ""
  21.         goto end
  22.     else-ifstr(i) $(OPTION)        == ""
  23.         goto end
  24.     else-ifstr(i) $(INITSRC)       == ""
  25.         goto end
  26.     else-ifstr(i) $(ADDCOPY)       == ""
  27.         goto end
  28.     else-ifstr(i) $(DOCOPY)        == ""
  29.         goto end
  30.     else-ifstr(i) $(DOCONFIG)      == ""
  31.         goto end
  32.     else-ifstr(i) $(DOINSTALL)     == ""
  33.         goto end
  34.     else-ifstr(i) $(INFFILE)       == ""
  35.         goto end
  36.     endif
  37.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  38.     set STF_CONTROLSET = CurrentControlSet
  39.     read-syms SystemVariables
  40.     detect    SystemVariables
  41.     shell $(INFFILE) InstallOption $(STF_LANGUAGE) $(OPTION) $(INITSRC) $(ADDCOPY) $(DOCOPY) $(DOCONFIG) $(DOINSTALL)
  42.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  43.         Debug-Output "Execing Configuring hardware failed"
  44.         goto end
  45.     endif
  46.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  47.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  48.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  49.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  50.     endif
  51. end =+
  52.     install   FreeSetupLibrary
  53.     FreeLibrary $(!LIBHANDLE)
  54.     exit
  55. [InstallOption]
  56.     set Status       = STATUS_FAILED
  57.     set DrivesToFree = {}
  58.     set !Option   = $($1)
  59.     set SrcDir    = $($2)
  60.     set AddCopy   = $($3)
  61.     set DoCopy    = $($4)
  62.     set DoConfig  = $($5)
  63.     set DoInstall = $($6)
  64.     set LanguageList = ^(LanguagesSupported, 1)
  65.     Ifcontains(i) $($0) in $(LanguageList)
  66.     else
  67.         set Status = STATUS_NOLANGUAGE
  68.         goto finish_InstallOption
  69.     endif
  70.     read-syms Strings$($0)
  71.     ifstr(i) $(!Option) != "DETECT"
  72.         set OptionList = ^(Options, 0)
  73.         ifcontains $(!Option) in $(OptionList)
  74.         else
  75.             goto finish_InstallOption
  76.         endif
  77.         set OptionList = ""
  78.         set DriverEntry       =   #(Options, $(!Option), 1)
  79.         set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  80.         set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  81.         set OtherFiles        =   #(MiniportDrivers, $(DriverEntry), 10)
  82.     endif
  83.     read-syms ServicesEntry
  84.     detect    ServicesEntry
  85.     set DriversList        = ^(MiniportDrivers, 0)
  86.     set MiniportDriverList = ^(Files-DisplayMiniportDrivers, 0)
  87.     set DisplayDriverList  = ^(Files-DisplayDLLs, 0)
  88.     set OpenGLDriverList   = ^(OpenGLDrivers, 0)
  89. installtheoption = +
  90.     ifstr(i) $(AddCopy) == "YES"
  91.         ifstr(i) $(!Option) == "DETECT"
  92.             set DoActualCopy = YES
  93.         else
  94.             set DoActualCopy = NO
  95.             set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  96.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  97.             ifstr(i) $(STATUS) == NO
  98.                 set DoActualCopy = YES
  99.                 goto addfiles
  100.             endif
  101.             ForListDo $(OtherFiles)
  102.                 ifcontains $($) in $(MiniportDriverList)
  103.                     set FileToCheck = #(Files-DisplayMiniportDrivers, $($), 2)
  104.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  105.                     ifstr(i) $(STATUS) == NO
  106.                         set DoActualCopy = YES
  107.                         goto addfiles
  108.                     endif
  109.                 endif
  110.             EndForListDo
  111.             ForListDo $(InstalledDisplays)
  112.                 ifcontains $($) in $(DisplayDriverList)
  113.                     set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  114.                     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  115.                     ifstr(i) $(STATUS) == NO
  116.                         set DoActualCopy = YES
  117.                         goto addfiles
  118.                     endif
  119.                     ifcontains $($) in $(OpenGLDriverList)
  120.                         set FileToCheck = #(Files-DisplayOpenGLDrivers, #(OpenGLDrivers, $($), 1), 2)
  121.                         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  122.                         ifstr(i) $(STATUS) == NO
  123.                             set DoActualCopy = YES
  124.                             goto addfiles
  125.                         endif
  126.                     endif
  127.                 endif
  128.             EndForListDo
  129.         endif
  130. addfiles = +
  131.         ifstr(i) $(DoActualCopy) == NO
  132.             shell "subroutn.inf" DriversExist $($0) $(String1)
  133.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  134.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  135.                 goto finish_InstallOption
  136.             endif
  137.             ifstr(i) $($R0) == STATUS_CURRENT
  138.             else-ifstr(i) $($R0) == STATUS_NEW
  139.                 set DoActualCopy = YES
  140.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  141.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  142.                 goto finish_InstallOption
  143.             else
  144.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  145.                 goto finish_InstallOption
  146.             endif
  147.         endif
  148.         ifstr(i) $(DoActualCopy) == YES
  149.             shell "registry.inf" GetNTSource
  150.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  151.             else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  152.             else
  153.                 set SrcDir = $($R1)
  154.             endif
  155.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  156.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  157.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  158.                 goto finish_InstallOption
  159.             endif
  160.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  161.                 set SrcDir = $($R1)
  162.                 ifstr(i) $($R2) != ""
  163.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  164.                 endif
  165.             else
  166.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  167.                 goto finish_InstallOption
  168.             endif
  169.             ifstr(i) $(!Option) != "DETECT"
  170.                 install Install-AddCopyOption
  171.             else
  172.                 install Install-AddAllCopy
  173.             endif
  174.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  175.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  176.                 goto finish_InstallOption
  177.             endif
  178.         else
  179.             set DoCopy = NO
  180.         endif
  181.     endif
  182.     ifstr(i) $(DoCopy) == "YES"
  183.         read-syms ProgressCopy$($0)
  184.         install Install-DoCopyOption
  185.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  186.             Debug-Output "Copying files failed"
  187.             goto finish_InstallOption
  188.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  189.             set Status = STATUS_USERCANCEL
  190.             goto finish_InstallOption
  191.         endif
  192.     endif
  193.     ifstr(i) $(DoConfig) == "YES"
  194.         shell "registry.inf" CheckSetupModify
  195.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  196.             goto finish_InstallOption
  197.         endif
  198.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  199.             goto finish_InstallOption
  200.         endif
  201.         ForListDo $(DriversList)
  202.             ifstr(i) $(!Option) == "DETECT"
  203.                 set DriverEntry = $($)
  204.                 set DeviceDescription = ""
  205.                 set ErrorControl      = $(!SERVICE_ERROR_IGNORE)
  206.                 ifcontains #(MiniportDrivers, $(DriverEntry), 1) in $(MiniportDriverList)
  207.                     ifint #(MiniportDrivers, $(DriverEntry), 9) == 1
  208.                         set configDriver = YES
  209.                     else
  210.                         set configDriver = NO
  211.                     endif
  212.                 else
  213.                     set configDriver = NO
  214.                 endif
  215.             else
  216.                 set DeviceDescription = $(!Option)
  217.                 set ErrorControl      = $(#(MiniportDrivers, $(DriverEntry), 4))
  218.                 ifstr(i) $(DriverEntry) == $($)
  219.                     set configDriver = YES
  220.                 else
  221.                     set configDriver = NO
  222.                 endif
  223.             endif
  224.             ifstr(i) $(configDriver) == YES
  225.                 Debug-Output "configuring the miniport driver"
  226.                 set MiniportDriver    =   #(MiniportDrivers, $(DriverEntry), 1)
  227.                 set Type              = $(#(MiniportDrivers, $(DriverEntry), 2))
  228.                 set Group             =   #(MiniportDrivers, $(DriverEntry), 3)
  229.                 set InstalledDisplays =   #(MiniportDrivers, $(DriverEntry), 5)
  230.                 set VgaCompatible     =   #(MiniportDrivers, $(DriverEntry), 6)
  231.                 set EventMessageFile  =   #(MiniportDrivers, $(DriverEntry), 7)
  232.                 set TypesSupported    =   #(MiniportDrivers, $(DriverEntry), 8)
  233.                 set ServiceNode   = $(DriverEntry)
  234.                 set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  235.                 set ServicesValues = { +
  236.                         {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  237.                         {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  238.                         {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  239.                         {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  240.                         }
  241.                 ifstr(i) $(DoInstall) == "YES"
  242.                     set ServicesValues = >($(ServicesValues), +
  243.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) })
  244.                 else
  245.                     set ServicesValues = >($(ServicesValues), +
  246.                             {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_DISABLED)     })
  247.                 endif
  248.                 set !ParametersValues = { +
  249.                         {"Device Description",        0, $(!REG_VT_SZ),       $(DeviceDescription) }, +
  250.                         {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  251.                         {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  252.                         {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    0                    }, +
  253.                         {DefaultSettings.VRefresh,    0, $(!REG_VT_DWORD),    0                    }, +
  254.                         {DefaultSettings.Interlaced,  0, $(!REG_VT_DWORD),    0                    }, +
  255.                         {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    0                    }, +
  256.                         {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    0                    }  +
  257.                         }
  258.                 ifstr(i) $(!Option) != "DETECT"
  259.                     shell "" #(MiniportDrivers, $(DriverEntry), 11)
  260.                 endif
  261.                 set DeviceValues = {}
  262.                 set EventLogValues = { +
  263.                         {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  264.                         {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  265.                         }
  266.                 shell "registry.inf"  MakeServicesEntry $(ServiceNode)       +
  267.                                                         $(ServicesValues)    +
  268.                                                         $(!ParametersValues) +
  269.                                                         $(DeviceValues)      +
  270.                                                         $(EventLogValues)    +
  271.                                                         Device0
  272.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  273.                     Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  274.                     goto finish_InstallOption
  275.                 endif
  276.                 ifstr(i) $($R0) != STATUS_SUCCESSFUL
  277.                     Debug-Output "MakeServicesEntry failed for video"
  278.                     goto finish_InstallOption
  279.                 endif
  280.                 ForListDo $(InstalledDisplays)
  281.                     ifcontains $($) in $(OpenGLDriverList)
  282.                         set KeyPath = { +
  283.                                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  284.                                 {Microsoft,      0, $(MaskAllAccess)}, +
  285.                                 {"Windows NT",   0, $(MaskAllAccess)}, +
  286.                                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  287.                                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  288.                                 }
  289.                         set KeyValue = { +
  290.                                 {$($), 0, $(!REG_VT_SZ), #(OpenGLDrivers, $($), 1) } +
  291.                                 }
  292.                         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  293.                         Debug-Output "just did an OGL section"
  294.                         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  295.                             Debug-Output "Couldn't execute CreateKey in registry.inf"
  296.                             goto endInstallOpenGLDriver
  297.                         endif
  298.                         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  299.                             Debug-Output "CreateKey failed for OGLDrivers"
  300.                             goto endInstallOpenGLDriver
  301.                         endif
  302.                         Debug-Output "VIDEO.INF: success installing an ogl entry"
  303.                     endif
  304.                 EndForListDo
  305.             endif
  306.         EndForListDo
  307.     endif
  308.     set Status = STATUS_SUCCESSFUL
  309. finish_InstallOption = +
  310.     ForListDo $(DrivesToFree)
  311.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  312.     EndForListDo
  313.     Return $(Status)
  314. [Install-AddCopyOption]
  315.     Debug-Output "adding to copy list"
  316.     set STF_VITAL = ""
  317.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  318.                                   $(MiniportDriver)              +
  319.                                   $(SrcDir)                      +
  320.                                   $(!STF_WINDOWSSYSPATH)\drivers
  321.     ForListDo $(OtherFiles)
  322.         ifcontains $($) in $(MiniportDriverList)
  323.             Debug-Output "adding other files to copy list"
  324.             AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  325.                                           $($)                           +
  326.                                           $(SrcDir)                      +
  327.                                           $(!STF_WINDOWSSYSPATH)\drivers
  328.         endif
  329.     EndForListDo
  330.     ForListDo $(InstalledDisplays)
  331.         ifcontains $($) in $(DisplayDriverList)
  332.             Debug-Output "adding display driver to copy list"
  333.             AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  334.                                           $($)                       +
  335.                                           $(SrcDir)                  +
  336.                                           $(!STF_WINDOWSSYSPATH)
  337.             ifcontains $($) in $(OpenGLDriverList)
  338.                 Debug-Output "adding opengl driver to copy list"
  339.                 AddSectionKeyFileToCopyList   Files-DisplayOpenGLDrivers +
  340.                                               #(OpenGLDrivers, $($), 1)  +
  341.                                               $(SrcDir)                  +
  342.                                               $(!STF_WINDOWSSYSPATH)
  343.             endif
  344.         endif
  345.     EndForListDo
  346.     exit
  347. [Install-AddAllCopy]
  348.     Debug-Output "adding all drivers to copy list"
  349.     set STF_VITAL = ""
  350.     AddSectionFilesToCopyList  Files-DisplayMiniportDrivers   +
  351.                                $(SrcDir)                      +
  352.                                $(!STF_WINDOWSSYSPATH)\drivers
  353.     AddSectionFilesToCopyList  Files-DisplayDLLs            +
  354.                                $(SrcDir)                    +
  355.                                $(!STF_WINDOWSSYSPATH)
  356.     exit
  357. [Install-DoCopyOption]
  358.     CopyFilesInCopyList
  359.     exit
  360. [noconfig]
  361.     return
  362. [dialog]
  363.     FunctionTitle = "Device Base Address"
  364.     Help = "&Help"
  365.     Continue = "Continue"
  366.     Cancel = "Cancel"
  367.     Label1 = "&Base Address:"
  368.     DlgType = "MultiCombo"
  369.     DlgTemplate = "SINGLE_COMBO"
  370.     Caption = $(FunctionTitle)
  371.     ComboListItemsIn  = {Combo1List}
  372.     ComboListItemsOut = {Combo1Out}
  373. [FontResources-437]
  374.     font96dpi  = 96,  {vgasys.fon,  vgafix.fon,  vgaoem.fon,  SSERIFE.FON, COURE.FON, SERIFE.FON, SYMBOLE.FON, SMALLE.FON}, vgasys.fon,  vgafix.fon,  vgaoem.fon,  SSERIFE.FON, COURE.FON, SERIFE.FON, SYMBOLE.FON, SMALLE.FON
  375.     font120dpi = 120, {8514sys.fon, 8514fix.fon, 8514oem.fon, SSERIFF.FON, COURF.FON, SERIFF.FON, SYMBOLF.FON, SMALLF.FON}, 8514sys.fon, 8514fix.fon, 8514oem.fon, SSERIFF.FON, COURF.FON, SERIFF.FON, SYMBOLF.FON, SMALLF.FON
  376. [ExternalFontInstallOption]
  377.     Set !G:DebugOutputControl = 0
  378.     set Exit_Code   = $(!SETUP_ERROR_GENERAL)
  379.     install LoadSetupLibrary
  380.     ifstr(i)      $(STF_LANGUAGE)  == ""
  381.         goto end
  382.     else-ifstr(i) $(OPTION)        == ""
  383.         goto end
  384.     else-ifstr(i) $(INITSRC)       == ""
  385.         goto end
  386.     else-ifstr(i) $(ADDCOPY)       == ""
  387.         goto end
  388.     else-ifstr(i) $(DOCOPY)        == ""
  389.         goto end
  390.     else-ifstr(i) $(DOCONFIG)      == ""
  391.         goto end
  392.     else-ifstr(i) $(INFFILE)       == ""
  393.         goto end
  394.     endif
  395.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  396.     set STF_CONTROLSET = CurrentControlSet
  397.     read-syms SystemVariables
  398.     detect    SystemVariables
  399.     shell $(INFFILE) FontInstallOption $(STF_LANGUAGE) $(OPTION) $(INITSRC) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  400.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  401.         Debug-Output "Execing Configuring hardware failed"
  402.         goto end
  403.     endif
  404.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  405.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  406.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  407.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  408.     endif
  409. end =+
  410.     install   FreeSetupLibrary
  411.     FreeLibrary $(!LIBHANDLE)
  412.     exit
  413. [FontInstallOption]
  414.     set Status       = STATUS_FAILED
  415.     set DrivesToFree = {}
  416.     set Option   = $($1)
  417.     set SrcDir   = $($2)
  418.     set AddCopy  = $($3)
  419.     set DoCopy   = $($4)
  420.     set DoConfig = $($5)
  421.     set LanguageList = ^(LanguagesSupported, 1)
  422.     Ifcontains(i) $($0) in $(LanguageList)
  423.     else
  424.         set Status = STATUS_NOLANGUAGE
  425.         goto endFontInstallOption
  426.     endif
  427.     read-syms Strings$($0)
  428.     set OptionList = ^(FontOptions, 0)
  429.     ifcontains $(Option) in $(OptionList)
  430.     else
  431.         goto endFontInstallation
  432.     endif
  433.     Debug-Output "about to install the font option"
  434.     set OptionList = ""
  435.     read-syms SystemVariables
  436.     detect    SystemVariables
  437.     set FontSelection     = #(FontOptions, $(Option), 1)
  438.     set LogPixels         = #(FontResources-437, $(FontSelection), 1)
  439.     set FontFileList      = #(FontResources-437, $(FontSelection), 2)
  440. installthefontoption = +
  441.     ifstr(i) $(AddCopy) == "YES"
  442.         set DoActualCopy = NO
  443.         ForListDo $(FontFileList)
  444.             set FileToCheck = $($)
  445.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSPATH)"\system\"$(FileToCheck)
  446.             ifstr(i) $(STATUS) == NO
  447.                 set DoActualCopy = YES
  448.             endif
  449.         EndForListDo
  450. addfontfiles = +
  451.         ifstr(i) $(DoActualCopy) == NO
  452.             shell "subroutn.inf" DriversExist $($0) $(String1)
  453.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  454.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  455.                 goto endFontInstallOption
  456.             endif
  457.             ifstr(i) $($R0) == STATUS_CURRENT
  458.             else-ifstr(i) $($R0) == STATUS_NEW
  459.                 set DoActualCopy = YES
  460.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  461.                 Debug-Output "VIDEO.INF: User cancelled font installation"
  462.                 goto endFontInstallOption
  463.             else
  464.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  465.                 goto endFontInstallOption
  466.             endif
  467.         endif
  468.         ifstr(i) $(DoActualCopy) == YES
  469.             shell "registry.inf" GetNTSource
  470.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  471.             else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  472.             else
  473.                 set SrcDir = $($R1)
  474.             endif
  475.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  476.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  477.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  478.                 goto endFontInstallOption
  479.             endif
  480.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  481.                 set SrcDir = $($R1)
  482.                 ifstr(i) $($R2) != ""
  483.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  484.                 endif
  485.             else
  486.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  487.                 goto endFontInstallOption
  488.             endif
  489.             install InstallFont-AddCopyOption
  490.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  491.                 Debug-Output "VIDEO.INF: Adding fontideo files to copy list failed"
  492.                 goto endFontInstallOption
  493.             endif
  494.         else
  495.             set DoCopy = NO
  496.         endif
  497.     endif
  498.     ifstr(i) $(DoCopy) == "YES"
  499.         read-syms ProgressCopy$($0)
  500.         install InstallFont-DoCopyOption
  501.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  502.             Debug-Output "Copying files failed"
  503.             goto endFontInstallOption
  504.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  505.             set Status = STATUS_USERCANCEL
  506.             goto endFontInstallOption
  507.         endif
  508.     endif
  509.     ifstr(i) $(DoConfig) == "YES"
  510.         shell "registry.inf" CheckSetupModify
  511.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  512.             goto endFontInstallOption
  513.         endif
  514.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  515.             goto endFontInstallOption
  516.         endif
  517.         set KeyPath = { +
  518.                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  519.                 {Microsoft,      0, $(MaskAllAccess)}, +
  520.                 {"Windows NT",   0, $(MaskAllAccess)}, +
  521.                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  522.                 {GRE_Initialize, 0, $(MaskAllAccess)}  +
  523.                 }
  524.         set KeyValues = { +
  525.                 {FONTS.FON,      0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 3) }, +
  526.                 {FIXEDFON.FON,   0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 4) }, +
  527.                 {OEMFONT.FON,    0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 5) }  +
  528.                 }
  529.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  530.         Debug-Output "just did the GRE_Ini font section"
  531.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  532.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  533.             goto endFontInstallOption
  534.         endif
  535.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  536.             Debug-Output "CreateKey failed for GRE_Iinitialize"
  537.             goto endFontInstallOption
  538.         endif
  539.         set KeyPath = { +
  540.                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  541.                 {Microsoft,      0, $(MaskAllAccess)}, +
  542.                 {"Windows NT",   0, $(MaskAllAccess)}, +
  543.                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  544.                 {Fonts,          0, $(MaskAllAccess)}  +
  545.                 }
  546.         set KeyValues = { +
  547.                 {"MS Sans Serif 8,10,12,14,18,24 (VGA res)", 0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 6 ) }, +
  548.                 {"Courier 10,12,15 (VGA res)",               0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 7 ) }, +
  549.                 {"MS Serif 8,10,12,14,18,24 (VGA res)",      0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 8 ) }, +
  550.                 {"Symbol 8,10,12,14,18,24 (VGA res)",        0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 9 ) }, +
  551.                 {"Small Fonts (VGA res)",                    0, $(!REG_VT_SZ), #(FontResources-437, $(FontSelection), 10) }  +
  552.                 }
  553.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  554.         Debug-Output "just did the second font section"
  555.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  556.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  557.             goto endFontInstallOption
  558.         endif
  559.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  560.             Debug-Output "CreateKey failed for Fonts"
  561.             goto endFontInstallOption
  562.         endif
  563.         set KeyPath = { +
  564.                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  565.                 {Microsoft,      0, $(MaskAllAccess)}, +
  566.                 {"Windows NT",   0, $(MaskAllAccess)}, +
  567.                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  568.                 {FontDPI,        0, $(MaskAllAccess)}  +
  569.                 }
  570.         set KeyValues = { +
  571.                 {"LogPixels",  0, $(!REG_VT_DWORD), $(LogPixels) }  +
  572.                 }
  573.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValues)
  574.         Debug-Output "just did the second font section"
  575.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  576.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  577.             goto endFontInstallOption
  578.         endif
  579.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  580.             Debug-Output "CreateKey failed for FontSize"
  581.             goto endFontInstallOption
  582.         endif
  583.         goto configfontdone
  584. errorfontconfig = +
  585.         goto endFontInstallOption
  586. configfontdone = +
  587.     endif
  588.     set Status = STATUS_SUCCESSFUL
  589. endFontInstallOption = +
  590.     ForListDo $(DrivesToFree)
  591.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  592.     EndForListDo
  593.     Return $(Status)
  594. [InstallFont-AddCopyOption]
  595.     set STF_VITAL = ""
  596.     AddSectionFilesToCopyList  Files-DisplayFonts$(LogPixels) +
  597.                                $(SrcDir)                      +
  598.                                $(!STF_WINDOWSPATH)\system
  599.     exit
  600. [InstallFont-DoCopyOption]
  601.     CopyFilesInCopyList
  602.     exit
  603. [Source Media Descriptions]
  604.      1 = "Windows NT Workstation CD-ROM or Setup Disk #4" , TAGFILE = disk1.w
  605.      2 = "Windows NT Workstation CD-ROM or Setup Disk #5" , TAGFILE = disk2.w
  606.      3 = "Windows NT Workstation CD-ROM or Setup Disk #6" , TAGFILE = disk3.w
  607.      4 = "Windows NT Workstation CD-ROM or Setup Disk #7" , TAGFILE = disk4.w
  608.      5 = "Windows NT Workstation CD-ROM or Setup Disk #8" , TAGFILE = disk5.w
  609.      6 = "Windows NT Workstation CD-ROM or Setup Disk #9" , TAGFILE = disk6.w
  610.      7 = "Windows NT Workstation CD-ROM or Setup Disk #10", TAGFILE = disk7.w
  611.      8 = "Windows NT Workstation CD-ROM or Setup Disk #11", TAGFILE = disk8.w
  612.      9 = "Windows NT Workstation CD-ROM or Setup Disk #12", TAGFILE = disk9.w
  613.     10 = "Windows NT Workstation CD-ROM or Setup Disk #13", TAGFILE = disk10.w
  614.     11 = "Windows NT Workstation CD-ROM or Setup Disk #14", TAGFILE = disk11.w
  615.     12 = "Windows NT Workstation CD-ROM or Setup Disk #15", TAGFILE = disk12.w
  616.     13 = "Windows NT Workstation CD-ROM or Setup Disk #16", TAGFILE = disk13.w
  617.     14 = "Windows NT Workstation CD-ROM or Setup Disk #17", TAGFILE = disk14.w
  618.     15 = "Windows NT Workstation CD-ROM or Setup Disk #18", TAGFILE = disk15.w
  619.     16 = "Windows NT Workstation CD-ROM or Setup Disk #19", TAGFILE = disk16.w
  620.     17 = "Windows NT Workstation CD-ROM or Setup Disk #20", TAGFILE = disk17.w
  621.     18 = "Windows NT Workstation CD-ROM or Setup Disk #21", TAGFILE = disk18.w
  622.     19 = "Windows NT Workstation CD-ROM or Setup Disk #22", TAGFILE = disk19.w
  623.     20 = "Windows NT Workstation CD-ROM or Setup Disk #23", TAGFILE = disk20.w
  624.     21 = "Windows NT Workstation CD-ROM or Setup Disk #24", TAGFILE = disk21.w
  625.     22 = "Windows NT Workstation CD-ROM or Setup Disk #25", TAGFILE = disk22.w
  626.     23 = "Windows NT Workstation CD-ROM or Setup Disk #26", TAGFILE = disk23.w
  627.     24 = "Windows NT Workstation CD-ROM or Setup Disk #27", TAGFILE = disk24.w
  628.     25 = "Windows NT Workstation CD-ROM or Setup Disk #28", TAGFILE = disk25.w
  629.     26 = "Windows NT Workstation CD-ROM or Setup Disk #29", TAGFILE = disk26.w
  630.     27 = "Windows NT Workstation CD-ROM or Setup Disk #30", TAGFILE = disk27.w
  631.     28 = "Windows NT Workstation CD-ROM or Setup Disk #31", TAGFILE = disk28.w
  632.     29 = "Windows NT Workstation CD-ROM or Setup Disk #32", TAGFILE = disk29.w
  633.     30 = "Windows NT Workstation CD-ROM or Setup Disk #33", TAGFILE = disk30.w
  634. [Signature]
  635.     FileType = MICROSOFT_FILE
  636. [GetSignature]
  637.     read-syms Signature
  638.     return $(FileType)
  639. [ProductType]
  640. STF_PRODUCT  = Winnt
  641. STF_PLATFORM = I386
  642. [Files-DisplayDLLs]
  643. s3 = 5,S3.DLL , SIZE=65536
  644. [Files-DisplayFonts120]
  645. 17,8514FIX.FON , SIZE=11264
  646. 16,8514OEM.FON , SIZE=12288
  647. 17,8514SYS.FON , SIZE=10240
  648. 5,COURF.FON , SIZE=31744
  649. 5,SERIFF.FON , SIZE=81920
  650. 16,SMALLF.FON , SIZE=21504
  651. 4,SSERIFF.FON , SIZE=90112
  652. 12,SYMBOLF.FON , SIZE=81920
  653. [Files-DisplayFonts96]
  654. 6,COURE.FON , SIZE=23552
  655. 5,SERIFE.FON , SIZE=58368
  656. 16,SMALLE.FON , SIZE=26624
  657. 5,SSERIFE.FON , SIZE=65536
  658. 14,SYMBOLE.FON , SIZE=57344
  659. 6,VGAFIX.FON , SIZE=6144
  660. 6,VGAOEM.FON , SIZE=6144
  661. 6,VGASYS.FON , SIZE=8192
  662. [Files-DisplayMiniportDrivers]
  663. s3 = 5,S3.SYS , SIZE=40960
  664. [LanguagesSupported]
  665.     ENG
  666. [Options]
  667.     "#9 GXE"                                = s3
  668.     "#9 GXE64"                              = s3
  669.     "#9 GXE64 Pro"                          = s3
  670.     "Actix Graphics Engine"                 = S3
  671.     "Actix Graphics Engine 32"              = S3
  672.     "Actix Graphics Engine 32 Plus"         = S3
  673.     "Digital S3-928"                        = s3
  674.     "ELSA Winner 1000"                      = s3
  675.     "Metheus Premier 928"                   = s3
  676.     "Micronics VL-Bus"                      = s3
  677.     "miroCRYSTAL 20SD"                      = s3
  678.     "Orchid Fahrenheit 1280"                = s3
  679.     "Orchid Fahrenheit 1280 Plus"           = s3
  680.     "Orchid Fahrenheit VA"                  = s3
  681.     "Orchid Fahrenheit VA/VLB"              = s3
  682.     "S3 Compatible Graphics Adapter"        = s3
  683. [FontOptions]
  684.     "Small"  = font96dpi
  685.     "Large"  = font120dpi
  686. [OptionsTextENG]
  687.     "S3 Compatible Graphics Adapter"        = "S3 Compatible Graphics Adapter"
  688. [FontOptionsTextENG]
  689.     "Small"  = "Small Fonts"
  690.     "Large"  = "Large Fonts"
  691. [ProgressCopyENG]
  692.     ProCaption   = "Windows NT Setup"
  693.     ProCancel    = "Cancel"
  694.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  695.                    "to cancel copying files?"
  696.     ProCancelCap = "Setup Message"
  697.     ProText1     = "Copying:"
  698.     ProText2     = "To:"
  699. [StringsENG]
  700.     String1 = "Display"
  701.     String2 = "Please enter the full path to the Windows NT Display "+
  702.               "driver files.  If you want to install files from the "+
  703.               "original Setup floppy disks, type a drive path (such "+
  704.               "as A:\i386) and Setup will prompt you for the correct disk.  "+
  705.               "Then choose Continue."
  706.