home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 April / IMM0495.ISO / driver / ati / mach64 / disk4 / nt / oemsetup.inf < prev    next >
INI File  |  1994-05-05  |  23KB  |  612 lines

  1. ;-----------------------------------------------------------------------
  2. ; OPTION TYPE
  3. ; -----------
  4. ; This identifies the Option type we are dealing with.  The different
  5. ; possible types are:
  6. ;
  7. ; COMPUTER, VIDEO, MOUSE, KEYBOARD, LAYOUT, SCSI, PRINTER, ...
  8. ;-----------------------------------------------------------------------
  9.  
  10. [Identification]
  11.     OptionType = VIDEO
  12.  
  13. ;-----------------------------------------------------------------------
  14. ; LANGUAGES SUPPORTED
  15. ; -------------------
  16. ;
  17. ; The languages supported by the OEM INF, For every language supported
  18. ; we need to have a separate text section for every displayable text
  19. ; section.
  20. ;
  21. ;-----------------------------------------------------------------------
  22.  
  23. [LanguagesSupported]
  24.     ENG
  25.  
  26. ;-----------------------------------------------------------------------
  27. ; OPTION LIST
  28. ; -----------
  29. ; This section lists the OEM Option key names.  These keys are locale
  30. ; independent and used to represent the option in a locale independent
  31. ; manner.
  32. ;
  33. ;-----------------------------------------------------------------------
  34.  
  35. ;
  36. ; Option list order: Option = Miniport driver, BitsPerPel, XResolution, YResolution, VRefresh, Interlaced
  37. ;
  38. ; If you don't want to create a VRefresh or Interlaced value under the service
  39. ; parameters then use the value ""
  40. ;
  41.  
  42. [Options]
  43.     "ATI Graphics Accelerators 640x480x4"    = ati, 4,  640,  480   , "" , ""
  44.     "ATI Graphics Accelerators 640x480x8"    = ati, 8,  640,  480   , "" , ""
  45.     "ATI Graphics Accelerators 640x480x16"   = ati,16,  640,  480   , "" , ""
  46.     "ATI Graphics Accelerators 640x480x24"   = ati,24,  640,  480   , "" , ""
  47.     "ATI Graphics Accelerators 640x480x32"   = ati,32,  640,  480   , "" , ""
  48.     "ATI Graphics Accelerators 800x600x4"    = ati, 4,  800,  600   , "" , ""
  49.     "ATI Graphics Accelerators 800x600x8"    = ati, 8,  800,  600   , "" , ""
  50.     "ATI Graphics Accelerators 800x600x16"   = ati,16,  800,  600   , "" , ""
  51.     "ATI Graphics Accelerators 800x600x24"   = ati,24,  800,  600   , "" , ""
  52.     "ATI Graphics Accelerators 800x600x32"   = ati,32,  800,  600   , "" , ""
  53.     "ATI Graphics Accelerators 1024x768x4"   = ati, 4, 1024,  768   , "" , ""
  54.     "ATI Graphics Accelerators 1024x768x8"   = ati, 8, 1024,  768   , "" , ""
  55.     "ATI Graphics Accelerators 1024x768x16"  = ati,16, 1024,  768   , "" , ""
  56.     "ATI Graphics Accelerators 1024x768x24"  = ati,24, 1024,  768   , "" , ""
  57.     "ATI Graphics Accelerators 1024x768x32"  = ati,32, 1024,  768   , "" , ""
  58.     "ATI Graphics Accelerators 1280x1024x4"  = ati, 4, 1280, 1024   , "" , ""
  59.     "ATI Graphics Accelerators 1280x1024x8"  = ati, 8, 1280, 1024   , "" , ""
  60.     "ATI Graphics Accelerators 1280x1024x16" = ati,16, 1280, 1024   , "" , ""
  61.     "ATI Graphics Accelerators 1280x1024x24" = ati,24, 1280, 1024   , "" , ""
  62.  
  63. ;
  64. ; This maps detected options into the options we support
  65. ;
  66. ; Format: DetectedOption = MappedOption
  67. ;
  68.  
  69. [MapOfOptions]
  70.     "VGA"                       = "VGA"
  71.     "COMPAQ AVGA"               = "VGA"
  72.     "COMPAQ AGB"                = "VGA"
  73.     "8514 MONITOR UNKNOWN"      = "VGA"
  74.     "8514 VGA MONITOR"          = "VGA"
  75.     "8514 8503 MONO"            = "VGA"
  76.     "8514 8514 GAD"             = "VGA"
  77.     "GENOA VGA"                 = "VGA"
  78.     "VIDEO7 VGA DRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  79.     "VIDEO7 VGA VRAM"           = "VIDEO7 VGA VRAM 640x480x4"
  80.     "TRIDENT VGA"               = "VGA"
  81.     "TRIDENT VGA 9100"          = "VGA"
  82.     "PARADISE VGA"              = "VGA"
  83.     "PARADISE VGA PROM"         = "VGA"
  84.     "PARADISE VGA CHIP 1F"      = "VGA"
  85.     "ATI VGA"            = "VGA"
  86.     "ATI VGA WONDER"        = "VGA"
  87.     "TSENGLAB VGA ET3000"       = "VGA"
  88.     "TSENGLAB VGA ET4000"       = "TSENGLAB VGA ET4000 640x480x4x60"
  89.     "CIRRUS VGA"                = "VGA"
  90.     "CIRRUS VGA 610-620 REVC"   = "VGA"
  91.     "XGA"                       = "XGA 640x480x8"
  92.     "DELL DGX"                  = "DELL DGX 640x480x8"
  93.     "S3 VGA"                    = "S3 VGA 640x480x8"
  94.     "PRODESIGNER II"            = "TSENGLAB VGA ET4000 640x480x4x60"
  95.  
  96.  
  97. ;
  98. ; Order of the information:
  99. ;
  100. ; Port driver = Type, Group, ErrorControl, Tag, InstalledDisplay, VgaCompatible( 0/1 ), EventMessageFile, TypesSupported
  101. ;
  102.  
  103. [MiniportDrivers]
  104.     ati   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 11,  {ati}, 0, "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\drivers\ati.sys" , 7
  105.  
  106.  
  107. ;-----------------------------------------------------------------------
  108. ; OPTION TEXT SECTION
  109. ; -------------------
  110. ; These are text strings used to identify the option to the user.  There
  111. ; are separate sections for each language supported.  The format of the
  112. ; section name is "OptionsText" concatenated with the Language represented
  113. ; by the section.
  114. ;
  115. ;-----------------------------------------------------------------------
  116.  
  117. [OptionsTextENG]
  118.     "ATI Graphics Accelerators 640x480x4"   = "ATI Graphics Accelerators 640x480, 16 colors"
  119.     "ATI Graphics Accelerators 640x480x8"   = "ATI Graphics Accelerators 640x480, 256 colors"
  120.     "ATI Graphics Accelerators 640x480x16"  = "ATI Graphics Accelerators 640x480, 65536 colors"
  121.     "ATI Graphics Accelerators 640x480x24"  = "ATI Graphics Accelerators 640x480, 16777216 colors"
  122.     "ATI Graphics Accelerators 640x480x32"  = "ATI Graphics Accelerators 640x480, TRUE color"
  123.     "ATI Graphics Accelerators 800x600x4"   = "ATI Graphics Accelerators 800x600, 16 colors"
  124.     "ATI Graphics Accelerators 800x600x8"   = "ATI Graphics Accelerators 800x600, 256 colors"
  125.     "ATI Graphics Accelerators 800x600x16"  = "ATI Graphics Accelerators 800x600, 65536 colors"
  126.     "ATI Graphics Accelerators 800x600x24"  = "ATI Graphics Accelerators 800x600, 16777216 colors"
  127.     "ATI Graphics Accelerators 800x600x32"  = "ATI Graphics Accelerators 800x600, TRUE color"
  128.     "ATI Graphics Accelerators 1024x768x4"  = "ATI Graphics Accelerators 1024x768, 16 colors"
  129.     "ATI Graphics Accelerators 1024x768x8"  = "ATI Graphics Accelerators 1024x768, 256 colors"
  130.     "ATI Graphics Accelerators 1024x768x16" = "ATI Graphics Accelerators 1024x768, 65536 colors"
  131.     "ATI Graphics Accelerators 1024x768x24" = "ATI Graphics Accelerators 1024x768, 16777216 colors"
  132.     "ATI Graphics Accelerators 1024x768x32" = "ATI Graphics Accelerators 1024x768, TRUE color"
  133.     "ATI Graphics Accelerators 1280x1024x4" = "ATI Graphics Accelerators 1280x1024, 16 colors"
  134.     "ATI Graphics Accelerators 1280x1024x8" = "ATI Graphics Accelerators 1280x1024, 256 colors"
  135.     "ATI Graphics Accelerators 1280x1024x16" = "ATI Graphics Accelerators 1280x1024, 65536 colors"
  136.     "ATI Graphics Accelerators 1280x1024x24" = "ATI Graphics Accelerators 1280x1024, 16777216 colors"
  137.  
  138.  
  139. ;---------------------------------------------------------------------------
  140. ; 1. Identify
  141. ;
  142. ; DESCRIPTION:   To verify that this INF deals with the same type of options
  143. ;                as we are choosing currently.
  144. ;
  145. ; INPUT:         None
  146. ;
  147. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  148. ;                $($R1): Option Type (COMPUTER ...)
  149. ;                $($R2): Diskette description
  150. ;---------------------------------------------------------------------------
  151.  
  152. [Identify]
  153.     ;
  154.     ;
  155.     read-syms Identification
  156.  
  157.     set Status     = STATUS_SUCCESSFUL
  158.     set Identifier = $(OptionType)
  159.     set Media      = #("Source Media Descriptions", 1, 1)
  160.  
  161.     Return $(Status) $(Identifier) $(Media)
  162.  
  163.  
  164.  
  165. ;------------------------------------------------------------------------
  166. ; 2. ReturnOptions:
  167. ;
  168. ; DESCRIPTION:   To return the option list supported by this INF and the
  169. ;                localised text list representing the options.
  170. ;
  171. ;
  172. ; INPUT:         $($0):  Language used. ( ENG | FRN | ... )
  173. ;
  174. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL |
  175. ;                                STATUS_NOLANGUAGE
  176. ;                                STATUS_FAILED
  177. ;
  178. ;                $($R1): Option List
  179. ;                $($R2): Option Text List
  180. ;------------------------------------------------------------------------
  181.  
  182. [ReturnOptions]
  183.     ;
  184.     ;
  185.     set Status        = STATUS_FAILED
  186.     set OptionList     = {}
  187.     set OptionTextList = {}
  188.  
  189.     ;
  190.     ; Check if the language requested is supported
  191.     ;
  192.     set LanguageList = ^(LanguagesSupported, 1)
  193.     Ifcontains(i) $($0) in $(LanguageList)
  194.         goto returnoptions
  195.     else
  196.         set Status = STATUS_NOLANGUAGE
  197.         goto finish_ReturnOptions
  198.     endif
  199.  
  200.     ;
  201.     ; form a list of all the options and another of the text representing
  202.     ;
  203.  
  204. returnoptions = +
  205.     set OptionList     = ^(Options, 0)
  206.     set OptionTextList = ^(OptionsText$($0), 1)
  207.     set Status         = STATUS_SUCCESSFUL
  208.  
  209. finish_ReturnOptions = +
  210.     Return $(Status) $(OptionList) $(OptionTextList)
  211.  
  212.  
  213.  
  214. ;---------------------------------------------------------------------------
  215. ; MapToSupportedOption
  216. ;
  217. ; DESCRIPTION:   To map a hardware detected option to the NT Supported
  218. ;                option which represents it.
  219. ;
  220. ; INPUT:         $($0): Option
  221. ;
  222. ; OUTPUT:        $($R0): STATUS: STATUS_SUCCESSFUL
  223. ;                $($R1): Mapped Option
  224. ;
  225. ;---------------------------------------------------------------------------
  226.  
  227. [MapToSupportedOption]
  228.     ;
  229.     set Status = STATUS_FAILED
  230.     set MappedOption = $($0)
  231.  
  232.     ;
  233.     ; If the option is one we can support using one of our standard options
  234.     ; then map it to the standard option else map it to the default option
  235.     ; which is VGA.
  236.     ;
  237.  
  238.     set OptionList = ^(MapOfOptions, 0)
  239.     ifcontains $($0) in $(OptionList)
  240.         set MappedOption = #(MapOfOptions, $($0), 1)
  241.     else
  242.         set MappedOption = "VGA"
  243.     endif
  244.  
  245.     set Status = STATUS_SUCCESSFUL
  246.     Return $(Status) $(MappedOption)
  247.  
  248.  
  249.  
  250. [ServicesEntry]
  251.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  252.  
  253.  
  254. ;
  255. ; InstallOption:
  256. ;
  257. ; FUNCTION:  To copy files representing Options
  258. ;            To configure the installed option
  259. ;            To update the registry for the installed option
  260. ;
  261. ; INPUT:     $($0):  Language to use
  262. ;            $($1):  OptionID to install
  263. ;            $($2):  SourceDirectory
  264. ;            $($3):  AddCopy  (YES | NO)
  265. ;            $($4):  DoCopy   (YES | NO)
  266. ;            $($5):  DoConfig (YES | NO)
  267. ;
  268. ; OUTPUT:    $($R0): STATUS: STATUS_SUCCESSFUL |
  269. ;                            STATUS_NOLANGUAGE |
  270. ;                            STATUS_USERCANCEL |
  271. ;                            STATUS_FAILED
  272. ;
  273.  
  274. [InstallOption]
  275.  
  276.     ;
  277.     ; Set default values for
  278.     ;
  279.     set Status       = STATUS_FAILED
  280.     set DrivesToFree = {}
  281.  
  282.     ;
  283.     ; extract parameters
  284.     ;
  285.     set Option   = $($1)
  286.     set SrcDir   = $($2)
  287.     set AddCopy  = $($3)
  288.     set DoCopy   = $($4)
  289.     set DoConfig = $($5)
  290.  
  291.     ;
  292.     ; Check if the language requested is supported
  293.     ;
  294.     set LanguageList = ^(LanguagesSupported, 1)
  295.     Ifcontains(i) $($0) in $(LanguageList)
  296.     else
  297.         set Status = STATUS_NOLANGUAGE
  298.         goto finish_InstallOption
  299.     endif
  300.     read-syms Strings$($0)
  301.  
  302.     ;
  303.     ; check to see if Option is supported.
  304.     ;
  305.  
  306.     set OptionList = ^(Options, 0)
  307.     ifcontains $(Option) in $(OptionList)
  308.     else
  309.         goto finish_InstallOption
  310.     endif
  311.     set OptionList = ""
  312.  
  313.     ;
  314.     ; Option has been defined already
  315.     ;
  316.     set MiniportDriver    = #(Options, $(Option), 1)
  317.     set BitsPerPel        = #(Options, $(Option), 2)
  318.     set XResolution       = #(Options, $(Option), 3)
  319.     set YResolution       = #(Options, $(Option), 4)
  320.     set VRefresh          = #(Options, $(Option), 5)
  321.     set Interlaced        = #(Options, $(Option), 6)
  322.  
  323.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  324.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  325.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  326.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  327.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  328.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  329.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  330.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  331.  
  332.     read-syms ServicesEntry
  333.     detect    ServicesEntry
  334.  
  335. installtheoption = +
  336.  
  337.     ;
  338.     ; Code to add files to copy list
  339.     ;
  340.  
  341.     ifstr(i) $(AddCopy) == "YES"
  342.         set DoActualCopy = NO
  343.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  344.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  345.         ifstr(i) $(STATUS) == NO
  346.             set DoActualCopy = YES
  347.             goto addfiles
  348.         endif
  349.         ForListDo $(InstalledDisplays)
  350.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  351.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  352.             ifstr(i) $(STATUS) == NO
  353.                 set DoActualCopy = YES
  354.             endif
  355.         EndForListDo
  356.  
  357. addfiles = +
  358.         ifstr(i) $(DoActualCopy) == NO
  359.             shell "subroutn.inf" DriversExist $($0) $(String1)
  360.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  361.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  362.                 goto finish_InstallOption
  363.             endif
  364.  
  365.             ifstr(i) $($R0) == STATUS_CURRENT
  366.             else-ifstr(i) $($R0) == STATUS_NEW
  367.                 set DoActualCopy = YES
  368.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  369.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  370.                 goto finish_InstallOption
  371.             else
  372.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  373.                 goto finish_InstallOption
  374.             endif
  375.         endif
  376.  
  377.         ifstr(i) $(DoActualCopy) == YES
  378.  
  379.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  380.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  381.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  382.                 goto finish_InstallOption
  383.             endif
  384.  
  385.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  386.                 set SrcDir = $($R1)
  387.                 ifstr(i) $($R2) != ""
  388.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  389.                 endif
  390.             else
  391.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  392.                 goto finish_InstallOption
  393.             endif
  394.  
  395.             install Install-AddCopyOption
  396.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  397.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  398.                 goto finish_InstallOption
  399.             endif
  400.         else
  401.             set DoCopy = NO
  402.         endif
  403.  
  404.     endif
  405.  
  406.     ifstr(i) $(DoCopy) == "YES"
  407.         read-syms ProgressCopy$($0)
  408.         install Install-DoCopyOption
  409.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  410.             Debug-Output "Copying files failed"
  411.             goto finish_InstallOption
  412.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  413.             set Status = STATUS_USERCANCEL
  414.             goto finish_InstallOption
  415.         endif
  416.     endif
  417.  
  418.     ifstr(i) $(DoConfig) == "YES"
  419.  
  420.         ;
  421.         ; first run a privilege check on modifying the setup node
  422.         ;
  423.  
  424.         shell "registry.inf" CheckSetupModify
  425.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  426.             goto finish_InstallOption
  427.         endif
  428.  
  429.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  430.             goto finish_InstallOption
  431.         endif
  432.  
  433.         ;
  434.         ; first make a new video entry, the entry is created automatically
  435.         ; enabled
  436.         ;
  437.  
  438.         set ServiceNode   = $(MiniportDriver)
  439.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  440.  
  441.         set ServicesValues   = { +
  442.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  443.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  444.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  445.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  446.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  447.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  448.                 }
  449.  
  450.         set ParametersValues = { +
  451.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  452.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  453.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  454.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  455.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  456.                 }
  457.  
  458.         ifstr(i) $(VRefresh) != ""
  459.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  460.             set ParametersValue = >($(ParametersValue), $(VRefreshValue))
  461.         endif
  462.  
  463.         ifstr(i) $(Interlaced) != ""
  464.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  465.             set ParametersValue = >($(ParametersValue), $(InterlacedValue))
  466.         endif
  467.  
  468.         set DeviceValues     = {}
  469.         set EventLogValues   = { +
  470.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  471.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  472.                 }
  473.  
  474.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  475.                                                 $(ServicesValues)   +
  476.                                                 $(ParametersValues) +
  477.                                                 $(DeviceValues)     +
  478.                                                 $(EventLogValues)   +
  479.                                                 Device0
  480.  
  481.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  482.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  483.             goto finish_InstallOption
  484.         endif
  485.  
  486.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  487.             Debug-Output "MakeServicesEntry failed for video"
  488.             goto finish_InstallOption
  489.         endif
  490.  
  491.         ;
  492.         ;
  493.         ; then disable the previous video entry
  494.         ;
  495.  
  496.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  497.             ifstr(i) $(CurrentEntry) != VGA
  498.                 ifstr(i) $(CurrentEntry) != ""
  499.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  500.  
  501.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  502.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  503.                         goto errorconfig
  504.                     endif
  505.  
  506.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  507.                         Debug-Output "DisableServices entry failed"
  508.                     endif
  509.                 endif
  510.             endif
  511.         endif
  512.  
  513.         goto configdone
  514.  
  515. errorconfig = +
  516.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  517.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  518.             ifstr(i) $(CurrentEntry) != ""
  519.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  520.             endif
  521.         endif
  522.         goto finish_InstallOption
  523.  
  524. configdone = +
  525.  
  526.     endif
  527.  
  528.     set Status = STATUS_SUCCESSFUL
  529.  
  530. finish_InstallOption = +
  531.     ForListDo $(DrivesToFree)
  532.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  533.     EndForListDo
  534.  
  535.     Return $(Status)
  536.  
  537.  
  538. [Install-AddCopyOption]
  539.  
  540.     set STF_VITAL = ""
  541.     ;
  542.     ; Add the files to the copy list
  543.     ;
  544.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  545.                                   $(MiniportDriver)              +
  546.                                   $(SrcDir)                      +
  547.                                   $(!STF_WINDOWSSYSPATH)\drivers
  548.  
  549.     ForListDo $(InstalledDisplays)
  550.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  551.                                       $($)                       +
  552.                                       $(SrcDir)                  +
  553.                                       $(!STF_WINDOWSSYSPATH)
  554.  
  555.     EndForListDo
  556.  
  557.     exit
  558.  
  559.  
  560. [Install-DoCopyOption]
  561.  
  562.     ;
  563.     ; Copy files in the copy list
  564.     ;
  565.     CopyFilesInCopyList
  566.     exit
  567.  
  568. ;**************************************************************************
  569. ; PROGRESS GUAGE VARIABLES
  570. ;**************************************************************************
  571.  
  572. [ProgressCopyENG]
  573.     ProCaption   = "Windows NT Setup"
  574.     ProCancel    = "Cancel"
  575.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  576.                    "to cancel copying files?"
  577.     ProCancelCap = "Setup Message"
  578.     ProText1     = "Copying:"
  579.     ProText2     = "To:"
  580.  
  581. [StringsENG]
  582.     String1 = "Display"
  583.     String2 = "Please enter the full path to the OEM Display "+
  584.               "driver files.  Then choose Continue."
  585.  
  586. ;-----------------------------------------------------------------------
  587. ; SOURCE MEDIA DESCRIPTIONS
  588. ; -------------------------
  589. ; The OEM should list all the diskette labels here.  The source media
  590. ; description is used during copy to prompt the user for a diskette
  591. ; if the source is diskettes.
  592. ;
  593. ; Use 1 = "Diskette 1 Label" , TAGFILE = disk1
  594. ;     2 = "Diskette 2 Label" , TAGFILE = disk2
  595. ;     ...
  596. ;-----------------------------------------------------------------------
  597.  
  598. ;--------------------------------------------------------------------
  599. ; THE SECTIONS BELOW SHOULD BE AUTOMATICALLY GENERATED BY THE EXCEL
  600. ; SPREAD SHEETS
  601. ;--------------------------------------------------------------------
  602.  
  603. [Source Media Descriptions]
  604.     1  = "ATI Installation DISK (VIDEO)"  , TAGFILE = nt\ati_vid
  605.  
  606. [Files-DisplayDLLs]
  607. ati = 1,ati.dll , SIZE=999
  608.  
  609. [Files-DisplayMiniportDrivers]
  610. ati = 1,ati.sys , SIZE=999
  611. 
  612.