home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1995 April / MG1.ISO / spea / install / nt / oemsetup.inf < prev    next >
INI File  |  1995-02-02  |  13KB  |  314 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_IGNORE, 12,  {bignts3},                0 , %SystemRoot%\System32\IoLogMsg.dll , 12
  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. 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.                 }
  192.         ifstr(i) $(VRefresh) != ""
  193.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  194.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  195.         endif
  196.         ifstr(i) $(Interlaced) != ""
  197.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  198.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  199.         endif
  200.         set DeviceValues     = {}
  201.         set EventLogValues   = { +
  202.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  203.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  204.                 }
  205.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  206.                                                 $(ServicesValues)   +
  207.                                                 $(ParametersValues) +
  208.                                                 $(DeviceValues)     +
  209.                                                 $(EventLogValues)   +
  210.                                                 Device0
  211.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  212.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  213.             goto finish_InstallOption
  214.         endif
  215.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  216.             Debug-Output "MakeServicesEntry failed for video"
  217.             goto finish_InstallOption
  218.         endif
  219.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  220.             ifstr(i) $(CurrentEntry) != VGA
  221.                 ifstr(i) $(CurrentEntry) != ""
  222.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  223.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  224.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  225.                         goto errorconfig
  226.                     endif
  227.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  228.                         Debug-Output "DisableServices entry failed"
  229.                     endif
  230.                 endif
  231.             endif
  232.         endif
  233.         goto configdone
  234. errorconfig = +
  235.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  236.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  237.             ifstr(i) $(CurrentEntry) != ""
  238.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  239.             endif
  240.         endif
  241.         goto finish_InstallOption
  242. configdone = +
  243.         set BS_KeyServices = ""
  244.         set MAXIMUM_ALLOWED = 33554432
  245.     endif
  246.     set Status = STATUS_SUCCESSFUL
  247. finish_InstallOption = +
  248.     ForListDo $(DrivesToFree)
  249.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  250.     EndForListDo
  251.     Return $(Status)
  252.  
  253. [Install-AddCopyOption]
  254.     set STF_VITAL = ""
  255.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  256.                                   $(MiniportDriver)              +
  257.                                   $(SrcDir)                      +
  258.                                   $(!STF_WINDOWSSYSPATH)\drivers
  259.     ForListDo $(InstalledDisplays)
  260.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  261.                                       $($)                       +
  262.                                       $(SrcDir)                  +
  263.                                       $(!STF_WINDOWSSYSPATH)
  264.         AddSectionFilesToCopyList   Files-V7SetNt          +
  265.                                       $(SrcDir)                  +
  266.                                       $(!STF_WINDOWSSYSPATH)\..
  267.  
  268.     EndForListDo
  269.     exit
  270.  
  271. [Install-DoCopyOption]
  272.     CopyFilesInCopyList
  273.     exit
  274.  
  275. [ProgressCopyENG]
  276.     ProCaption   = "SPEA V7 Display Driver Setup"
  277.     ProCancel    = "Cancel"
  278.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  279.                    "to cancel copying files?"
  280.     ProCancelCap = "Setup Message"
  281.     ProText1     = "Copying:"
  282.     ProText2     = "To:"
  283.  
  284. [ProgressCopyGER]
  285.     ProCaption   = "SPEA V7 Display Driver Setup"
  286.     ProCancel    = "Abbrechen"
  287.     ProCancelMsg = "Windows NT ist nicht korrekt installiert.  Are you sure you want "+
  288.                    "to cancel copying files?"
  289.     ProCancelCap = "Setup Information"
  290.     ProText1     = "Kopiere:"
  291.     ProText2     = "Nach:"
  292.  
  293. [StringsENG]
  294.     String1 = "Display"
  295.     String2 = "Please enter the full path to the SPEA V7 Display "+
  296.               "driver files.  Then choose Continue."
  297.  
  298. [StringsGER]
  299.     String1 = "Display"
  300.     String2 = "Bitte geben Sie den vollstaendigen Pfad zu den SPEA V7 Display "+
  301.               "Treiber Dateien an.  Then choose Continue."
  302.  
  303. [Source Media Descriptions]
  304.     1  = "SPEA V7 Display Driver Installation Disk"  , TAGFILE = disk1
  305.  
  306. [Files-DisplayDLLs]
  307. bignts3 = 1,bignts3.dll , SIZE=153088
  308.  
  309. [Files-V7SetNt]
  310. bignts3 = 1,v7setnt.exe , SIZE=56000
  311.  
  312. [Files-DisplayMiniportDrivers]
  313. bignts3 = 1,bignts3.sys , SIZE=25088
  314.