home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 November / VPR9611B.ISO / driver / canopus / nt / pwnt_115 / pwnt_115.lzh / OEMSETUP.INF next >
INI File  |  1996-02-23  |  17KB  |  495 lines

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