home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / spea / mirage / ntmiv311 / ntmiv311.exe / rar / OEMSETUP.INF < prev    next >
INI File  |  1996-02-01  |  16KB  |  372 lines

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