home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 v2.4 Fix / W95-v2.4fix.iso / SPANISH / I386 / NETDTECT.IN_ / netdtect.inf
Encoding:
INI File  |  1995-06-23  |  11.8 KB  |  321 lines

  1. [Identification]
  2.     OptionType = NetDriver
  3. [Options]
  4.     NCDETECT
  5. [FileConstants]
  6. UtilityInf      = "UTILITY.INF"
  7. subroutineinf   = "SUBROUTN.INF"
  8. SoftwareType    = "driver"
  9. Exit_Code       = 0
  10. [GeneralConstants]
  11. from      = ""
  12. to        = ""
  13. ExitCodeOk     = 0
  14. ExitCodeCancel = 1
  15. ExitCodeFatal  = 2
  16. KeyNull         = ""
  17. MAXIMUM_ALLOWED   = 33554432
  18. RegistryErrorIndex = NO_ERROR
  19. KeyProduct      = ""
  20. KeyParameters   = ""
  21. TRUE            = 1
  22. FALSE           = 0
  23. NoTitle            = 0
  24. ExitState   = "Active"
  25. OldVersionExisted = $(FALSE)
  26. DriverPath      = $(!STF_NTPATH)\drivers
  27. ServiceKeyName  = "NetDetect"
  28. ServiceKeyPath  = "System\CurrentControlSet\Services\NcDetect"
  29. ServiceSysPath  = "%SystemRoot%\System32\Drivers\netdtect.sys"
  30. [Identify]
  31.     read-syms Identification
  32.     set Status     = STATUS_SUCCESSFUL
  33.     set Identifier = $(OptionType)
  34.     set Media      = #("Source Media Descriptions", 1, 1)
  35.     Return $(Status) $(Identifier) $(Media)
  36. [ReturnOptions]
  37.     set Status        = STATUS_FAILED
  38.     set OptionList     = {}
  39.     set OptionTextList = {}
  40.     set LanguageList = ^(LanguagesSupported, 1)
  41.     Ifcontains(i) $($0) in $(LanguageList)
  42.         goto returnoptions
  43.     else
  44.         set Status = STATUS_NOLANGUAGE
  45.         goto finish_ReturnOptions
  46.     endif
  47. returnoptions = +
  48.     set OptionList     = ^(Options, 1)
  49.     set OptionTextList = ^(OptionsText$($0), 1)
  50.     set Status         = STATUS_SUCCESSFUL
  51. finish_ReturnOptions = +
  52.     Return $(Status) $(OptionList) $(OptionTextList)
  53. [InstallOption]
  54.     set Option   = $($1)
  55.     set SrcDir   = $($2)
  56.     set AddCopy  = $($3)
  57.     set DoCopy   = $($4)
  58.     set DoConfig = $($5)
  59.     set LanguageList = ^(LanguagesSupported, 1)
  60.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  61.         Return STATUS_NOLANGUAGE
  62.     endif
  63.     set-subst LF = "\n"
  64.     read-syms GeneralConstants
  65.     read-syms FileConstants
  66.     read-syms DialogConstants$(!STF_LANGUAGE)
  67.     read-syms FileConstants$(!STF_LANGUAGE)
  68.     set-title  $(FunctionTitle)
  69.     set to   = Begin
  70.     set from = Begin
  71.     set CommonStatus = STATUS_SUCCESSFUL
  72.     EndWait
  73. Begin = +
  74.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  75.         set StartLabel = removeadapter
  76.     else-Ifstr(i) $(!NTN_InstallMode) == update
  77.         set StartLabel = UpgradeSoftware
  78.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  79.         set StartLabel = bindingadapter
  80.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  81.         set StartLabel = configureadapter
  82.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  83.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  84.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  85.                 Debug-Output "ShellCode error: cannot get an error string."
  86.                 goto ShellCodeError
  87.             endif
  88.             set Error = $($R0)
  89.             set from = end
  90.             set to = end
  91.             goto Warning
  92.         endif
  93.     else
  94.         set StartLabel = installadapter
  95.     endif
  96.     set from = $(fatal)
  97.     set to = $(fatal)
  98.     goto $(StartLabel)
  99. installadapter = +
  100.     OpenRegKey $(!REG_H_LOCAL) "" $(ServiceKeyPath) $(MAXIMUM_ALLOWED) KeyService
  101.     Ifstr $(KeyProduct) != $(KeyNull)
  102.         CloseRegKey $(KeyService)
  103.         Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  104.             $(ProductVersion)
  105.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  106.             Debug-Output "ShellCode error: cannot get an error string."
  107.             goto ShellCodeError
  108.         endif
  109.         goto end
  110.     endif
  111.     goto nextstep
  112. configureadapter = +
  113.     set OldVersionExisted = $(TRUE )
  114.     goto nextstep
  115. nextstep = +
  116.     StartWait
  117.     Goto nofilestocopy
  118.     ifstr(i) $(!NTN_InstallMode) == "install"
  119.         Ifstr(i) $(DoCopy) == "YES"
  120.            Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  121.            Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  122.                Goto fatal
  123.            Else-Ifstr(i) $($R0) == STATUS_FAILED
  124.                Goto fatal
  125.            Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  126.                Goto successful
  127.            Endif
  128.            Set SrcDir = $($R1)
  129.         Endif
  130.         install "Install-Option"
  131.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  132.            goto fatal
  133.         endif
  134.     endif
  135. nofilestocopy =+
  136.     Ifint $(OldVersionExisted) != $(FALSE)
  137.         Goto writeparameters
  138.     Endif
  139.     set OEM_ABANDON_ON = TRUE
  140. createservice =+
  141.    Shell $(UtilityInf), CreateService, $(ServiceKeyName), $(ServiceDisplayName),+
  142.          $(ServiceSysPath), "kernel", "", {}, "", "%SystemRoot%\System32\IoLogMsg.dll"
  143.    Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  144.        Debug-Output "OEMNSVRP.INF: ShellCode error creating NETDTECT service"
  145.        goto ShellCodeError
  146.    endif
  147.    Set RegistryErrorIndex = $($R0)
  148.    CloseRegKey $($R1)
  149.    CloseRegKey $($R2)
  150.    CloseRegKey $($R3)
  151.    Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  152.       EndWait
  153.       Debug-Output "OEMNSVRD.INF: Registry error: creating NETDTECT service"
  154.       CloseRegKey $($R2)
  155.       Goto fatalregistry
  156.    Endif
  157.     Shell $(UtilityInf) UpdateDetectionDllNames
  158. writeparameters = +
  159.     EndWait
  160.     goto successful
  161. bindingadapter =+
  162.     set Error = "RPC INF file invoked during bindings review."
  163.     goto fatal
  164. removeadapter = +
  165.     Set OEM_ABANDON_OPTIONS = {$(ServiceKeyName)}
  166.     ForListDo $(OEM_ABANDON_OPTIONS)
  167.         debug-output "OEMNSVRP.INF: Remove component: "$($)
  168.         Shell $(UtilityInf), RemoveService, $($), $(UseSvcctrl)
  169.     EndForListDo
  170.     goto end
  171. UpgradeSoftware = +
  172.     set Error = "Upgrade/update not supported for this product yet."
  173.     goto fatal
  174. successful = +
  175.     goto end
  176. warning = +
  177.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), STATUS, $(Error)
  178.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  179.         goto ShellCodeError
  180.     endif
  181.     ifstr(i) $($R1) == "OK"
  182.         goto $(to)
  183.     else-ifstr(i) $($R1) == "CANCEL"
  184.         goto $(from)
  185.     else
  186.         goto "end"
  187.     endif
  188. nonfatal = +
  189.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "NONFATAL", $(Error)
  190.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  191.         goto ShellCodeError
  192.     endif
  193.     ifstr(i) $($R1) == "OK"
  194.         goto $(from)
  195.     else
  196.         goto "end"
  197.     endif
  198. fatalregistry = +
  199.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  200.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  201.         goto ShellCodeError
  202.     endif
  203.     set Error = $($R0)
  204.     goto fatal
  205. fatal = +
  206.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  207.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  208.         goto ShellCodeError
  209.     endif
  210.     goto setfailed
  211. ShellCodeError = +
  212.     set DlgType      = "MessageBox"
  213.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  214.     set STF_MB_TEXT  = $(ShellCodeErrorText)
  215.     set STF_MB_TYPE  = 1
  216.     set STF_MB_ICON  = 3
  217.     set STF_MB_DEF   = 1
  218.     ui start "Error Message"
  219.     goto setfailed
  220. setfailed = +
  221.     set CommonStatus = STATUS_FAILED
  222.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  223.         set OEM_ABANDON_ON = FALSE
  224.         goto removeadapter
  225.     endif
  226.     goto end
  227. end = +
  228.     goto term
  229. term = +
  230.     Return $(CommonStatus)
  231. [Install-Option]
  232.     set STF_VITAL = ""
  233.     ifstr(i) $(AddCopy) == "YES"
  234.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  235.     endif
  236.     ifstr(i) $(DoCopy) == "YES"
  237.        CopyFilesInCopyList
  238.     endif
  239.     ifstr(i) $(DoConfig) == "YES"
  240.     endif
  241.     Exit
  242. [Install-Update]
  243.    set STF_VITAL        = ""
  244.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  245.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  246.    AddSectionFilesToCopyList Files-DLL-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)
  247.    CopyFilesInCopyList
  248.    exit
  249. [Source Media Descriptions]
  250.      1 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 4" , TAGFILE = disk1.w
  251.      2 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 5" , TAGFILE = disk2.w
  252.      3 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 6" , TAGFILE = disk3.w
  253.      4 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 7" , TAGFILE = disk4.w
  254.      5 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 8" , TAGFILE = disk5.w
  255.      6 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 9" , TAGFILE = disk6.w
  256.      7 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 10", TAGFILE = disk7.w
  257.      8 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 11", TAGFILE = disk8.w
  258.      9 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 12", TAGFILE = disk9.w
  259.     10 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 13", TAGFILE = disk10.w
  260.     11 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 14", TAGFILE = disk11.w
  261.     12 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 15", TAGFILE = disk12.w
  262.     13 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 16", TAGFILE = disk13.w
  263.     14 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 17", TAGFILE = disk14.w
  264.     15 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 18", TAGFILE = disk15.w
  265.     16 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 19", TAGFILE = disk16.w
  266.     17 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 20", TAGFILE = disk17.w
  267.     18 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 21", TAGFILE = disk18.w
  268.     19 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 22", TAGFILE = disk19.w
  269.     20 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 23", TAGFILE = disk20.w
  270.     21 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 24", TAGFILE = disk21.w
  271.     22 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 25", TAGFILE = disk22.w
  272.     23 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 26", TAGFILE = disk23.w
  273.     24 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 27", TAGFILE = disk24.w
  274.     25 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 28", TAGFILE = disk25.w
  275.     26 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 29", TAGFILE = disk26.w
  276.     27 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 30", TAGFILE = disk27.w
  277.     28 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 31", TAGFILE = disk28.w
  278.     29 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 32", TAGFILE = disk29.w
  279.     30 = "CD-ROM o disquete de instalaci≤n de Windows NT Workstation N║ 33", TAGFILE = disk30.w
  280. [Signature]
  281.     FileType = MICROSOFT_FILE
  282. [GetSignature]
  283.     read-syms Signature
  284.     return $(FileType)
  285. [ProductType]
  286. STF_PRODUCT  = Winnt
  287. STF_PLATFORM = I386
  288. [Files-Inf]
  289. 2,    oemsetup.inf,     SIZE=1000,    RENAME=$(!UG_Filename)
  290. [Files-DLL-NCDETECT]
  291. 6, MSNCDET.DLL, SIZE=75776
  292. 7, NETDTECT.DLL, SIZE=8192
  293. [Files-NCDETECT]
  294. 7,NETDTECT.SYS , SIZE=8192
  295. [LanguagesSupported]
  296.     ENG
  297. [OptionsTextENG]
  298.     NCDETECT = "DLLs y controlador de detecci≤n automatica Netcard"
  299. [FileConstantsENG]
  300. ProCaption   = "Instalaci≤n de Windows NT"
  301. ProCancel    = "Cancelar"
  302. ProCancelMsg = "La red de Windows NT no estß instalada correctamente. "+
  303.            "┐Estß seguro de que desea cancelar esta operaci≤n?"
  304. ProCancelCap = "Mensajes de instalaci≤n de red"
  305. ProText1     = "Copiando:"
  306. ProText2     = "A:"
  307. FunctionTitle   = "Instalaci≤n de controlador de detector automßtico Netcard"
  308. ProductSoftwareTitle = "Controlador de detector automßtico Netcard"
  309. ProductVersion = "1.0"
  310. ServiceDisplayName = "NetDetect"
  311. ShellCodeErrorTitle     = "Error: "$(FunctionTitle)
  312. ShellCodeErrorText      = "Error de c≤digo."
  313. [DialogConstantsENG]
  314. Help        = "Ay&uda"
  315. Exit        = "Cancelar"
  316. OK          = "Aceptar"
  317. HelpContext = ""
  318. Continue    = "C&ontinuar"
  319. Cancel      = "C&ancelar"
  320. [FileDependentDlgENG]
  321.