home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / i386 / ncpashel.in_ / ncpashel.inf
INI File  |  1995-10-25  |  16KB  |  365 lines

  1. [StfVariableDetect]
  2.     STF_PROCESSOR = "" ? $(!LIBHANDLE) GetProcessor
  3.     STF_PLATFORM  = "I386"        
  4.     STF_LANGUAGE   = "" ? $(!LIBHANDLE) GetLanguage
  5.     LanguageList   = ^(LanguageID, 1)
  6.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  7.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  8.     STF_NTPATH         = $(!STF_WINDOWSPATH)
  9.     STF_COMPUTERNAME   = "" ? $(!LIBHANDLE) GetMyComputerName
  10.     STF_BUSTYPE        = "" ? $(!LIBHANDLE) GetMyBusType
  11.     STF_BUSTYPELIST    = "" ? $(!LIBHANDLE) GetMyBusTypeList
  12. [StfVariableSyms]
  13.     ProcessorID_I386  = I386
  14.     ProcessorID_I486  = I486
  15.     ProcessorID_I586  = I586
  16.     ProcessorID_R4000 = R4000
  17.     ProcessorID_Alpha = Alpha_AXP
  18.     ProcessorID_PPC601  = PPC601
  19.     ProcessorID_PPC603  = PPC603
  20.     ProcessorID_PPC604  = PPC604
  21.     ProcessorID_PPC620  = PPC620
  22.     PlatformID_I386   = I386
  23.     PlatformID_Mips   = Mips
  24.     PlatformID_Alpha  = Alpha
  25.     PlatformID_PPC    = ppc
  26.     STF_PRODUCT        = WINNT    
  27.     STF_USERNAME       = ""       
  28.     STF_INSTALL_MODE   = "CUSTOM" 
  29.     STF_UPDGRADE       = NO       
  30.     STF_NCDETECT       = NO       
  31.     STF_NCOPTION       = ""       
  32.     STF_NCDETCARD      = 99999    
  33.     STF_NCDETINFO      = {}       
  34.     STF_NC_PARAMS      = {}       
  35.     STF_NC_PNAMES      = {}       
  36.     STF_SRCDIR_KEYED   = ""       
  37.     STF_SRCDIR_USED    = ""       
  38.     STF_SRCDIR_OVERRIDE = ""      
  39.     STF_SRCDIR_WINNT   = ""       
  40.     STF_TEMPLATE_CRITERR = "CRITERR2"
  41.     STF_TEMPLATE_NONCRITERR = "NONCRITERR2"
  42.     STF_INSTALLED_OS = {} ? $(!LIBHANDLE) GetInstalledOSNames
  43.     FatalErrorIndex = 1
  44.     !Exit_Code = 0
  45. [DoAskOemsetupSource]
  46.     read-syms DoAskUpgradeSrcDlgText$(!STF_LANGUAGE)
  47.     shell "subroutn.inf" DoAskSourceEx $($0) $(DlgText)
  48.     Return $($R0) $($R1) $($R2) $($R3)
  49. [Shell Commands]
  50.      set-title "Windows NT Setup"
  51.      Set !G:DebugOutputControl = 0
  52.      LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  53.      Set !NCPA_HANDLE = ""
  54.      Ifstr(i) $(NTN_InfSection) != OemSoftwareInstall
  55.          LoadLibrary "y" $(!STF_CWDDIR)ncpa.cpl !NCPA_HANDLE
  56.      Endif
  57.      Shell "subroutn.inf" ReadSetupHelpIds
  58.      SetHelpFile "setupnt.hlp" $(!MinimumID) $(!MaximumID)
  59.      set-subst LF = "\n"
  60.      StartWait
  61.      read-syms StfVariableSyms
  62.      read-syms StfVariableDetect
  63.      detect StfVariableDetect
  64.      Set !STF_NTPATH = $(!STF_WINDOWSSYSPATH)
  65.      OpenRegKey $(!REG_H_LOCAL) "" "System\CurrentControlSet\Control\ProductOptions" 33554432 KeyProductOption
  66.      ifstr(i) $(KeyProductOption) != ""
  67.          GetRegValue $(KeyProductOption) "ProductType" ProductTypeList
  68.          set TempProductType = *($(ProductTypeList),4)
  69.          ifstr(i) $(TempProductType) == "winnt"
  70.              set !STF_PRODUCT = WINNT
  71.          else-ifstr(i) $(TempProductType) == "lanmannt"
  72.              set !STF_PRODUCT = LANMANNT
  73.          else-ifstr(i) $(TempProductType) == "servernt"
  74.              set !STF_PRODUCT = SERVERNT
  75.          endif
  76.          CloseRegKey $(KeyProductOptions)
  77.      endif
  78.      Debug-Output "NCPASHEL.INF: STF_SRCDIR is "$(!STF_SRCDIR)
  79.      OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Ncpa\CurrentVersion" 33554432 KeyNcpa
  80.      Set !STF_SRCDIR = ""
  81.      Set !STF_IDW = FALSE
  82.      Ifstr(i) $(KeyNcpa) != ""
  83.          GetRegValue $(KeyNcpa) "IDW" IdwValueList
  84.          Set IdwValue = *($(IdwValueList),4)
  85.          Ifint $(IdwValue) > 0
  86.              Debug-Output "NCPASHEL.INF: IDW Installation"
  87.              Set !STF_IDW = TRUE
  88.          Endif
  89.          CloseRegKey $(KeyNcpa)
  90.      Else
  91.          Debug-Output "NCPASHEL.INF:  COULDN'T OPEN NCPA KEY!"
  92.      Endif
  93.      OpenRegKey $(!REG_H_LOCAL) "" "SOFTWARE\Microsoft\Windows Nt\CurrentVersion" $(!REG_KEY_READ) KeyNt
  94.      Ifstr(i) $(KeyNt) != ""
  95.          GetRegValue $(KeyNt) "SourcePath" SourcePathValue
  96.          Set !STF_SRCDIR = *($(SourcePathValue),4)
  97.          Debug-Output "NCPASHEL.INF: SourcePath retrieved is "$(!STF_SRCDIR)
  98.          CloseRegKey $(KeyNt)
  99.      Endif
  100.      Ifstr(i) $(!STF_SRCDIR) == ""
  101.        Set !STF_SRCDIR = "A:\"
  102.      Endif
  103.      Set SetupInp = 0
  104.      Set !NTN_InstallPhase = secondary
  105.      OpenRegKey $(!REG_H_LOCAL) "" "SYSTEM\Setup" $(!REG_KEY_READ) KeySetup
  106.      Ifstr(i) $(KeySetup) != ""
  107.          GetRegValue $(KeySetup) "SystemSetupInProgress" SetupInpValue
  108.          Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS)
  109.              Set SetupInp = *($(SetupInpValue),4)
  110.              Debug-Output "NCPASHEL.INF: SetupInp = "$(SetupInp)
  111.          Endif
  112.          Ifint $(SetupInp) == 1
  113.              Set !NTN_InstallPhase = primary
  114.              GetRegValue $(KeySetup) "WinntPath" SetupPathValue
  115.              Ifint $(RegLastError) == $(!REG_ERROR_SUCCESS)
  116.                  Set !STF_SRCDIR_WINNT = *($(SetupPathValue),4)
  117.                  Debug-Output "NCPASHEL.INF: STF_SRCDIR_WINNT = "$(!STF_SRCDIR_WINNT)
  118.              Endif
  119.          Endif
  120.          CloseRegKey $(KeySetup)
  121.      Endif
  122.      Debug-Output "NCPASHEL.INF: Setup phase = "$(!NTN_InstallPhase)
  123.    Ifstr(i) $(NTN_InfSection) == BindingsReview
  124.         Goto skipdetection
  125.    Endif
  126.    Ifstr(i) $(NTN_InstallMode) == install
  127.         Goto startdetection
  128.    Endif
  129.    Ifstr(i) $(NTN_InstallMode) == configure
  130.         Goto startdetection
  131.    Endif
  132.    Goto skipdetection
  133. startdetection = +
  134.    Ifstr(i) $(!NCPA_HANDLE) != ""
  135.        Debug-Output "NCPASHEL.INF: Enable netcard detection from NCPA.CPL"
  136.        Shell "NCPARAM.INF" Param_ControlDetection DTSTART
  137.    Endif
  138. skipdetection = +
  139.      ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I386)
  140.          set STF_PLATFORM = $(PlatformID_I386)
  141.          set SYS      = $(ProcessorID_I386)
  142.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I486)
  143.          set STF_PLATFORM = $(PlatformID_I386)
  144.          set SYS      = $(ProcessorID_I386)
  145.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_I586)
  146.          set STF_PLATFORM = $(PlatformID_I386)
  147.          set SYS      = $(ProcessorID_I386)
  148.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_R4000)
  149.          set STF_PLATFORM = $(PlatformID_Mips)
  150.          set SYS      = $(ProcessorID_R4000)
  151.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_Alpha)
  152.          set STF_PLATFORM = $(PlatformID_Alpha)
  153.          set SYS      = $(ProcessorID_Alpha)
  154.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_PPC601)
  155.          set STF_PLATFORM = $(PlatformID_PPC)
  156.          set SYS      = $(ProcessorID_PPC601)
  157.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_PPC603)
  158.          set STF_PLATFORM = $(PlatformID_PPC)
  159.          set SYS      = $(ProcessorID_PPC603)
  160.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_PPC604)
  161.          set STF_PLATFORM = $(PlatformID_PPC)
  162.          set SYS      = $(ProcessorID_PPC604)
  163.      else-ifstr(i) $(STF_PROCESSOR) == $(ProcessorID_PPC620)
  164.          set STF_PLATFORM = $(PlatformID_PPC)
  165.          set SYS      = $(ProcessorID_PPC620)
  166.      else
  167.          set STF_PLATFORM = $(PlatformID_I386)
  168.          set SYS      = $(ProcessorID_I386)
  169.      endif
  170.      Ifstr(i) $(!STF_LANGUAGE) != "ENG"    
  171.          Debug-Output "NCPASHEL: Language not set to English; resetting"
  172.          !STF_LANGUAGE = "ENG"
  173.      Endif
  174.      read-syms ProgressCopy$(!STF_LANGUAGE)
  175.     Ifstr(i) $(!NTN_RegBase) == ""
  176.         set !NTN_RegBase = ""
  177.     Endif
  178.     set !NTN_ServiceBase  = "SYSTEM\CurrentControlSet\SERVICES"
  179.     Ifstr(i) $(!NTN_InstallMode) == ""
  180.         Debug-Output "NCPASHEL:!NTN_InstallMode was not defined!"
  181.         set !NTN_InstallMode  = "configure"
  182.     Endif
  183.     Ifstr(i) $(!NTN_SoftwareBase) == ""
  184.         set !NTN_SoftwareBase = "SOFTWARE"
  185.     Endif
  186.     set !NTN_Origination = "ncpa"
  187.     Ifstr(i) $(!NTN_Infname) == ""
  188.         goto fatalnoinfname
  189.     Endif
  190.     Ifstr(i) $(!NTN_InfSection) == ""
  191.         Set !NTN_InfSection = "InstallOption"
  192.     Endif
  193.     ifstr(i) $(!NTN_InstallMode) == "Update"
  194.         Debug-Output "NCPASHEL.INF: Upgrade mode"
  195.         Shell "" DoAskOemsetupSource $(!STF_SRCDIR)
  196.         Ifstr(i) $($ShellCode) != $(!SHELL_CODE_OK)
  197.             goto shellerror
  198.         Endif
  199.         ifstr(i) $($R0) == STATUS_SUCCESSFUL
  200.             set !STF_SRCDIR = $($R1)
  201.         else-ifstr(i) $($R0) == STATUS_USERCANCEL
  202.             set Exit_Code = 1
  203.             goto end
  204.         else
  205.             set Exit_Code = 2
  206.             goto end
  207.         endif
  208.         Set !NTN_Infname = $(!STF_SRCDIR)oemsetup.inf
  209.     endif
  210.     Ifstr(i) $(!NTN_InstallMode) == install
  211.         set AddCopy  = YES
  212.         set DoCopy   = YES
  213.         set DoConfig = YES
  214.     Else-ifstr(i) $(!NTN_InstallMode) == "Update"
  215.         set AddCopy  = NO
  216.         set DoCopy   = NO
  217.         set DoConfig = NO
  218.         Debug-Output "NCPASHEL.INF: Shell to "$(!NTN_Infname)
  219.         Shell $(!NTN_Infname) ReturnOptions $(!STF_LANGUAGE)
  220.         Ifstr(i) $($ShellCode) != $(!SHELL_CODE_OK)
  221.            Debug-Output "NCPASHEL.INF: SHELL ERROR: "$($ShellCode)
  222.            goto shellerror
  223.         Endif
  224.         Ifstr(i) $($R0) == "STATUS_SUCCESSFUL"
  225.            IfContains(i) $(!NTN_InfOption) in $($R1)
  226.               goto ContinueUpgrade
  227.            endif
  228.         endif
  229.         read-syms IncorrectOemsetupDisk$(!STF_LANGUAGE)
  230.         shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(ErrorText)
  231.         set Exit_Code = 1
  232.         goto end
  233. ContinueUpgrade = +
  234.     Endif
  235.     Shell $(!NTN_Infname) $(!NTN_InfSection) +
  236.          $(!STF_LANGUAGE) $(!NTN_InfOption) +
  237.          $(!STF_SRCDIR) $(AddCopy) $(DoCopy) $(DoConfig)
  238.     Ifstr(i) $($ShellCode) != $(!SHELL_CODE_OK)
  239.        Debug-Output "NCPASHEL.INF: SHELL ERROR: "$($ShellCode)
  240.        goto shellerror
  241.     Endif
  242.     Debug-Output "NCPASHEL: INF return: "$($R0)
  243.     Ifstr(i) $($R0) == STATUS_SUCCESSFUL
  244.         set Exit_Code = 0
  245.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  246.         set Exit_Code = 1
  247.     else-ifstr(i) $($R0) == STATUS_NO_EFFECT
  248.         set Exit_Code = 3
  249.     else-ifstr(i) $($R0) == STATUS_REBIND
  250.         set Exit_Code = 4
  251.     else-ifstr(i) $($R0) == STATUS_REBOOT
  252.         set Exit_Code = 5
  253.     else
  254.         set Exit_Code = 2
  255.     Endif
  256.     EndWait
  257.     goto end
  258. shellerror = +
  259.    read-syms ShellError$(!$ShellCode)$(!STF_LANGUAGE)
  260.    Debug-Output "NCPASHEL: SHELL ERROR: "$(Error)
  261.    goto fatal
  262. fatalnoinfname = +
  263.    set FatalErrorIndex = 2
  264.    goto fatalmsg
  265. fatalmsg = +
  266.    read-syms FatalError$(FatalErrorIndex)$(!STF_LANGUAGE)
  267.    Debug-Output "NCPASHEL: FATAL ERROR: "$(Error)
  268.    goto fatal
  269. fatal = +
  270.    read-syms FatalDlg$(!STF_LANGUAGE)
  271.    ui start "FatalError"
  272.    goto end
  273. end = +
  274.    Ifstr(i) $(!LIBHANDLE) != ""
  275.        LibraryProcedure DontCare, $(!LIBHANDLE), DeleteAllConnections
  276.    Endif
  277.    Debug-Output "NCPASHEL: NCPASHEL: returning to NCPA"
  278.    goto term
  279. term = +
  280.    Debug-Output "NCPASHEL: Bye."
  281.    exit
  282. [Source Media Descriptions]
  283.      1 = "Windows NT Server CD-ROM または セットアップ ディスク #5" , TAGFILE = disk1.s
  284.      2 = "Windows NT Server CD-ROM または セットアップ ディスク #6" , TAGFILE = disk2.s
  285.      3 = "Windows NT Server CD-ROM または セットアップ ディスク #7" , TAGFILE = disk3.s
  286.      4 = "Windows NT Server CD-ROM または セットアップ ディスク #8" , TAGFILE = disk4.s
  287.      5 = "Windows NT Server CD-ROM または セットアップ ディスク #9" , TAGFILE = disk5.s
  288.      6 = "Windows NT Server CD-ROM または セットアップ ディスク #10" , TAGFILE = disk6.s
  289.      7 = "Windows NT Server CD-ROM または セットアップ ディスク #11", TAGFILE = disk7.s
  290.      8 = "Windows NT Server CD-ROM または セットアップ ディスク #12", TAGFILE = disk8.s
  291.      9 = "Windows NT Server CD-ROM または セットアップ ディスク #13", TAGFILE = disk9.s
  292.     10 = "Windows NT Server CD-ROM または セットアップ ディスク #14", TAGFILE = disk10.s
  293.     11 = "Windows NT Server CD-ROM または セットアップ ディスク #15", TAGFILE = disk11.s
  294.     12 = "Windows NT Server CD-ROM または セットアップ ディスク #16", TAGFILE = disk12.s
  295.     13 = "Windows NT Server CD-ROM または セットアップ ディスク #17", TAGFILE = disk13.s
  296.     14 = "Windows NT Server CD-ROM または セットアップ ディスク #18", TAGFILE = disk14.s
  297.     15 = "Windows NT Server CD-ROM または セットアップ ディスク #19", TAGFILE = disk15.s
  298.     16 = "Windows NT Server CD-ROM または セットアップ ディスク #20", TAGFILE = disk16.s
  299.     17 = "Windows NT Server CD-ROM または セットアップ ディスク #21", TAGFILE = disk17.s
  300.     18 = "Windows NT Server CD-ROM または セットアップ ディスク #22", TAGFILE = disk18.s
  301.     19 = "Windows NT Server CD-ROM または セットアップ ディスク #23", TAGFILE = disk19.s
  302.     20 = "Windows NT Server CD-ROM または セットアップ ディスク #24", TAGFILE = disk20.s
  303.     21 = "Windows NT Server CD-ROM または セットアップ ディスク #25", TAGFILE = disk21.s
  304.     22 = "Windows NT Server CD-ROM または セットアップ ディスク #26", TAGFILE = disk22.s
  305.     23 = "Windows NT Server CD-ROM または セットアップ ディスク #27", TAGFILE = disk23.s
  306.     24 = "Windows NT Server CD-ROM または セットアップ ディスク #28", TAGFILE = disk24.s
  307.     25 = "Windows NT Server CD-ROM または セットアップ ディスク #29", TAGFILE = disk25.s
  308.     26 = "Windows NT Server CD-ROM または セットアップ ディスク #30", TAGFILE = disk26.s
  309.     27 = "Windows NT Server CD-ROM または セットアップ ディスク #31", TAGFILE = disk27.s
  310.     28 = "Windows NT Server CD-ROM または セットアップ ディスク #32", TAGFILE = disk28.s
  311.     29 = "Windows NT Server CD-ROM または セットアップ ディスク #33", TAGFILE = disk29.s
  312.     30 = "Windows NT Server CD-ROM または セットアップ ディスク #34", TAGFILE = disk30.s
  313.     50 = "Windows NT Server CD-ROM または リモートブート ディスク #1", TAGFILE = disk50.s
  314.     51 = "Windows NT Server CD-ROM または リモートブート ディスク #2", TAGFILE = disk51.s
  315. [Signature]
  316.     FileType = MICROSOFT_FILE
  317. [GetSignature]
  318.     read-syms Signature
  319.     return $(FileType)
  320. [ProductType]
  321. STF_PRODUCT  = LanmanNT
  322. STF_PLATFORM = I386
  323. [Files-Inf]
  324. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  325. [LanguageID]
  326.    ENG
  327. [LanguageTextENG]
  328.    "日本語 (日本)"
  329. [ProgressCopyENG]
  330.     ProCaption   = "Windows NT ネットワーク セットアップ"
  331.     ProCancel    = "キャンセル"
  332.     ProCancelMsg = "Windows NT ネットワークは正しく組み込まれていません。"+
  333.                    "ファイルのコピーを中止しますか?"
  334.     ProCancelCap = "ネットワーク セットアップ メッセージ"
  335.     ProText1     = "コピー元:"
  336.     ProText2     = "コピー先:"
  337.     PlatformID_I386 = I386
  338.     PlatformID_Mips = Mips
  339.     PlatformID_PPC  = ppc
  340. [FatalDlgENG]
  341. STF_MB_TITLE = "セットアップ メッセージ"
  342. DlgType = "MessageBox"
  343. STF_MB_TEXT  = $(Error)
  344. STF_MB_TYPE  = 1
  345. STF_MB_ICON  = 3
  346. STF_MB_DEF   = 1
  347. [FatalError1ENG]
  348. Error = "初期化に失敗しました。"
  349. [FatalError2ENG]
  350. Error = "INF ファイル名が指定されていません。(NTN_Infname)"
  351. [FatalError3ENG]
  352. Error = "INF ファイル "$(!NTN_Infname)" のロードに失敗しました。"
  353. [ShellError1ENG]
  354. Error = "INF ファイル "$(!NTN_Infname)" が存在しません。"
  355. [ShellError2ENG]
  356. Error = "INF ファイル "$(!NTN_Infname)" にセクション "$(!NTN_InfSection)" がありません。"
  357. [ShellError3ENG]
  358. Error = "INF ファイル "$(!NTN_Infname)"、セクション "$(!NTN_InfSection)" に構文エラーがあります。"
  359. [DoAskUpgradeSrcDlgTextENG]
  360.     DlgText        = "更新する OEMSETUP.INF ファイルのフル パスを"+
  361.                      "入力してください。[続行]ボタンをクリックしてください。"
  362. [IncorrectOemsetupDiskENG]
  363.     ErrorText      = "更新を中止しました。OEMSETUP.INF は指定したコンポーネントの"+
  364.                      "更新をサポートしていません。"
  365.