home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / fire_gl / ntfgl326 / ntfgl326.exe / rar / OEMSETUP.INF < prev    next >
INI File  |  1996-03-26  |  16KB  |  364 lines

  1.  
  2. [Identification]
  3.     OptionType = VIDEO
  4.  
  5. [LanguagesSupported]
  6.     ENG
  7.     GER
  8.  
  9. [Options]
  10.     "BIGWIN NT 640x480"        = bignts3, 8, 640, 480, 0, 0
  11.  
  12. [MiniportDrivers]
  13.     bignts3   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_NORMAL, 12,  {bignts3},                0 , "%SystemRoot%\System32\IoLogMsg.dll;%SystemRoot%\System32\Drivers\bignts3.sys" , 7
  14.  
  15. [OptionsTextENG]
  16.     "BIGWIN NT 640x480"        = "BIGWIN NT 640x480 256 colors"
  17.  
  18. [OptionsTextGER]
  19.     "BIGWIN NT 640x480"        = "BIGWIN NT 640x480 256 Farben"
  20.  
  21. [Identify]
  22.     read-syms Identification
  23.     set Status     = STATUS_SUCCESSFUL
  24.     set Identifier = $(OptionType)
  25.     set Media      = #("Source Media Descriptions", 1, 1)
  26.     Return $(Status) $(Identifier) $(Media)
  27.  
  28. [ReturnOptions]
  29.     set Status        = STATUS_FAILED
  30.     set OptionList     = {}
  31.     set OptionTextList = {}
  32.     set LanguageList = ^(LanguagesSupported, 1)
  33.     Ifcontains(i) $($0) in $(LanguageList)
  34.         goto returnoptions
  35.     else
  36.         set Status = STATUS_NOLANGUAGE
  37.         goto finish_ReturnOptions
  38.     endif
  39. returnoptions = +
  40.     set OptionList     = ^(Options, 0)
  41.     set OptionTextList = ^(OptionsText$($0), 1)
  42.     set Status         = STATUS_SUCCESSFUL
  43. finish_ReturnOptions = +
  44.     Return $(Status) $(OptionList) $(OptionTextList)
  45.  
  46. ;[MapToSupportedOption]
  47. ;    set MappedOption = "VGA"
  48. ;    set Status = STATUS_SUCCESSFUL
  49. ;    Return $(Status) $(MappedOption)
  50.  
  51. [ServicesEntry]
  52.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  53.  
  54. [InstallOption]
  55.     set Status       = STATUS_FAILED
  56.     set DrivesToFree = {}
  57.     set Option   = $($1)
  58.     set SrcDir   = $($2)
  59.     set AddCopy  = $($3)
  60.     set DoCopy   = $($4)
  61.     set DoConfig = $($5)
  62.     set LanguageList = ^(LanguagesSupported, 1)
  63.     Ifcontains(i) $($0) in $(LanguageList)
  64.     else
  65.         set Status = STATUS_NOLANGUAGE
  66.         goto finish_InstallOption
  67.     endif
  68.     read-syms Strings$($0)
  69.     set OptionList = ^(Options, 0)
  70.     ifcontains $(Option) in $(OptionList)
  71.     else
  72.         goto finish_InstallOption
  73.     endif
  74.     set OptionList = ""
  75.     set MiniportDriver    = #(Options, $(Option), 1)
  76.     set BitsPerPel        = #(Options, $(Option), 2)
  77.     set XResolution       = #(Options, $(Option), 3)
  78.     set YResolution       = #(Options, $(Option), 4)
  79.     set VRefresh          = #(Options, $(Option), 5)
  80.     set Interlaced        = #(Options, $(Option), 6)
  81.     set DevDescription    = "BIGWIN NT 640x480 256 colors"
  82.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  83.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  84.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  85.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  86.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  87.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  88.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  89.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  90.     read-syms ServicesEntry
  91.     detect    ServicesEntry
  92. installtheoption = +
  93.     ifstr(i) $(AddCopy) == "YES"
  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 $(InstalledDisplays)
  102.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  103.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  104.             ifstr(i) $(STATUS) == NO
  105.                 set DoActualCopy = YES
  106.             endif
  107.         EndForListDo
  108.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"3dogldrv.dll
  109.         ifstr(i) $(STATUS) == NO
  110.             set DoActualCopy = YES
  111.             goto addfiles
  112.         endif
  113. addfiles = +
  114.         ifstr(i) $(DoActualCopy) == NO
  115.             shell "subroutn.inf" DriversExist $($0) $(String1)
  116.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  117.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  118.                 goto finish_InstallOption
  119.             endif
  120.             ifstr(i) $($R0) == STATUS_CURRENT
  121.             else-ifstr(i) $($R0) == STATUS_NEW
  122.                 set DoActualCopy = YES
  123.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  124.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  125.                 goto finish_InstallOption
  126.             else
  127.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  128.                 goto finish_InstallOption
  129.             endif
  130.         endif
  131.         ifstr(i) $(DoActualCopy) == YES
  132.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  133.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  134.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  135.                 goto finish_InstallOption
  136.             endif
  137.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  138.                 set SrcDir = $($R1)
  139.                 ifstr(i) $($R2) != ""
  140.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  141.                 endif
  142.             else
  143.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  144.                 goto finish_InstallOption
  145.             endif
  146.             install Install-AddCopyOption
  147.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  148.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  149.                 goto finish_InstallOption
  150.             endif
  151.         else
  152.             set DoCopy = NO
  153.         endif
  154.     endif
  155.     ifstr(i) $(DoCopy) == "YES"
  156.         read-syms ProgressCopy$($0)
  157.         install Install-DoCopyOption
  158.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  159.             Debug-Output "Copying files failed"
  160.             goto finish_InstallOption
  161.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  162.             set Status = STATUS_USERCANCEL
  163.             goto finish_InstallOption
  164.         endif
  165.     endif
  166.     ifstr(i) $(DoConfig) == "YES"
  167.         shell "registry.inf" CheckSetupModify
  168.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  169.             goto finish_InstallOption
  170.         endif
  171.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  172.             goto finish_InstallOption
  173.         endif
  174.         set ServiceNode   = $(MiniportDriver)
  175.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  176.         set ServicesValues   = { +
  177.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  178.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  179.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  180.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  181.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  182.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  183.                 }
  184.         set ParametersValues = { +
  185.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  186.                 {"Device Description",        0, $(!REG_VT_SZ),       $(DevDescription)    }, +
  187.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  188.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  189.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  190.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       },  +
  191.                 {GlintClockSpeed,               0, $(!REG_VT_DWORD),   0                   }, +
  192.                 {GlintDMA.SizeOfBuffer,         0, $(!REG_VT_DWORD),   65536               }, +
  193.                 {GlintDMA.NumberOfBuffers,      0, $(!REG_VT_DWORD),   4                   }, +
  194.                 {GlintDMA.NumberOfSubBuffers,   0, $(!REG_VT_DWORD),   5                   }, +
  195.                 {GlintDMA.LatencyTimer,         0, $(!REG_VT_DWORD),   0                   }, +
  196.                 {3DInterfaceBuffer.SizeLongs,   0, $(!REG_VT_DWORD),   8192                }, +
  197.                 {3DExtensions.SupportGDIsingle, 0, $(!REG_VT_DWORD),   1                   }, +
  198.                 {3DExtensions.SupportGDIdouble, 0, $(!REG_VT_DWORD),   0                   }, +
  199.                 {DisableGlintInterrupts,        0, $(!REG_VT_DWORD),   0                   }, +
  200.                 {DoubleBuffer.NumberOfBuffers,  0, $(!REG_VT_DWORD),   2                   }, +
  201.                 {DoubleBuffer.SP_DBMode,        0, $(!REG_VT_DWORD),   1                   }, +
  202.                 {DoubleBuffer.FullScnTopBoarder,0, $(!REG_VT_DWORD),   64                  }, +
  203.                 {DoubleBuffer.MultiColorSpace,  0, $(!REG_VT_DWORD),   0                   }  +
  204.                 }
  205.       set KeyPath = { +
  206.                 {SOFTWARE,       0, $(MaskAllAccess)}, +
  207.                 {Microsoft,      0, $(MaskAllAccess)}, +
  208.                 {"Windows NT",   0, $(MaskAllAccess)}, +
  209.                 {CurrentVersion, 0, $(MaskAllAccess)}, +
  210.                 {OpenGLDrivers,  0, $(MaskAllAccess)}  +
  211.                 }
  212.  
  213.         set KeyValue = { +
  214.                 {"3DLabs GLINT driver", 0, $(!REG_VT_SZ), 3DOGLDRV } +
  215.                 }
  216.         ifstr(i) $(VRefresh) != ""
  217.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  218.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  219.         endif
  220.         ifstr(i) $(Interlaced) != ""
  221.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  222.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  223.         endif
  224.         set DeviceValues     = {}
  225.         set EventLogValues   = { +
  226.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  227.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  228.                 }
  229.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  230.                                                 $(ServicesValues)   +
  231.                                                 $(ParametersValues) +
  232.                                                 $(DeviceValues)     +
  233.                                                 $(EventLogValues)   +
  234.                                                 Device0
  235.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  236.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  237.             goto finish_InstallOption
  238.         endif
  239.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  240.             Debug-Output "MakeServicesEntry failed for video"
  241.             goto finish_InstallOption
  242.         endif
  243.         shell "registry.inf" CreateKey $(!REG_H_LOCAL) $(KeyPath) $(KeyValue)
  244.         Debug-Output "just did an OGL section"
  245.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  246.             Debug-Output "Couldn't execute CreateKey in registry.inf"
  247.             goto finish_InstallOption
  248.         endif
  249.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  250.             Debug-Output "CreateKey failed for OGLDrivers"
  251.             goto finish_InstallOption
  252.         endif
  253.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  254.             ifstr(i) $(CurrentEntry) != VGA
  255.                 ifstr(i) $(CurrentEntry) != ""
  256.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  257.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  258.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  259.                         goto errorconfig
  260.                     endif
  261.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  262.                         Debug-Output "DisableServices entry failed"
  263.                     endif
  264.                 endif
  265.             endif
  266.         endif
  267.         goto configdone
  268. errorconfig = +
  269.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  270.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  271.             ifstr(i) $(CurrentEntry) != ""
  272.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  273.             endif
  274.         endif
  275.         goto finish_InstallOption
  276. configdone = +
  277.         set BS_KeyServices = ""
  278.         set MAXIMUM_ALLOWED = 33554432
  279.     endif
  280.     set Status = STATUS_SUCCESSFUL
  281. finish_InstallOption = +
  282.     ForListDo $(DrivesToFree)
  283.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  284.     EndForListDo
  285.     Return $(Status)
  286.  
  287. [Install-AddCopyOption]
  288.     set STF_VITAL = ""
  289.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  290.                                   $(MiniportDriver)              +
  291.                                   $(SrcDir)                      +
  292.                                   $(!STF_WINDOWSSYSPATH)\drivers
  293.     ForListDo $(InstalledDisplays)
  294.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  295.                                       $($)                       +
  296.                                       $(SrcDir)                  +
  297.                                       $(!STF_WINDOWSSYSPATH)
  298.         AddSectionFilesToCopyList   Files-OpenGl                 +
  299.                                       $(SrcDir)                  +
  300.                                       $(!STF_WINDOWSSYSPATH)
  301.         AddSectionFilesToCopyList   Files-Dat                      +
  302.                                       $(SrcDir)                  +
  303.                                       $(!STF_WINDOWSSYSPATH)
  304.  
  305.     EndForListDo
  306.     exit
  307.  
  308. [Install-DoCopyOption]
  309.     CopyFilesInCopyList
  310.     exit
  311.  
  312. [ProgressCopyENG]
  313.     ProCaption   = "Display Driver Setup"
  314.     ProCancel    = "Cancel"
  315.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  316.                    "to cancel copying files?"
  317.     ProCancelCap = "Setup Message"
  318.     ProText1     = "Copying:"
  319.     ProText2     = "To:"
  320.  
  321. [ProgressCopyGER]
  322.     ProCaption   = "Display Driver Setup"
  323.     ProCancel    = "Abbrechen"
  324.     ProCancelMsg = "Windows NT ist nicht korrekt installiert.  Are you sure you want "+
  325.                    "to cancel copying files?"
  326.     ProCancelCap = "Setup Information"
  327.     ProText1     = "Kopiere:"
  328.     ProText2     = "Nach:"
  329.  
  330. [StringsENG]
  331.     String1 = "Display"
  332.     String2 = "Please enter the full path to the Display "+
  333.               "driver files.  Then choose Continue."
  334.  
  335. [StringsGER]
  336.     String1 = "Display"
  337.     String2 = "Bitte geben Sie den vollstaendigen Pfad zu den Display "+
  338.               "Treiber Dateien an.  Then choose Continue."
  339.  
  340. [Source Media Descriptions]
  341.     1  = "Display Driver Installation Disk"  , TAGFILE = disk1
  342.  
  343. [Files-DisplayDLLs]
  344. bignts3 = 1,bignts3.dll , SIZE=153088
  345.  
  346. [Files-DisplayMiniportDrivers]
  347. bignts3 = 1,bignts3.sys , SIZE=25088
  348.  
  349. [Files-OpenGl]
  350. bignts3 = 1,3dogldrv.dll , SIZE=380000
  351.  
  352. [Files-Dat]
  353. bignts3 = 1,figl-0.dat  , SIZE=21000
  354. bignts3 = 1,figl-2.dat  , SIZE=21000
  355. bignts3 = 1,figl-3.dat  , SIZE=21000
  356. bignts3 = 1,figl-4.dat  , SIZE=21000
  357. bignts3 = 1,figl-5.dat  , SIZE=21000
  358. bignts3 = 1,figl-6.dat  , SIZE=21000
  359. bignts3 = 1,figl-7.dat  , SIZE=21000
  360. bignts3 = 1,figl-8.dat  , SIZE=21000
  361. bignts3 = 1,figl-9.dat  , SIZE=21000
  362. bignts3 = 1,figl-10.dat , SIZE=21000
  363. bignts3 = 1,figl-11.dat , SIZE=21000
  364.