home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 July / VPR9607B.BIN / driver / iodata / dvnt120 / winnt35 / oemsetup.inf < prev    next >
INI File  |  1995-04-11  |  19KB  |  550 lines

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