home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 July / VPR9707B.ISO / DRIVER / EPSON / M8KA10 / DISK1 / WINNT351 / PRINTER.INF < prev   
INI File  |  1997-02-18  |  16KB  |  411 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3.  
  4. [Options]
  5. "EPSON MJ-8000C" = e_cudj, e_c80j, e_cpdj
  6.  
  7. [Identify]
  8.     read-syms Identification
  9.     set Status     = STATUS_SUCCESSFUL
  10.     set Identifier = $(OptionType)
  11. ;    set Media      = #("Source Media Descriptions", 1, 1)
  12.     set Media      = #("Source Media Descriptions", 2, 2)
  13.     Return $(Status) $(Identifier) $(Media)
  14.  
  15. [ReturnOptions]
  16.     set Status        = STATUS_FAILED
  17.     set OptionList     = {}
  18.     set OptionTextList = {}
  19.     set LanguageList = ^(LanguagesSupported, 1)
  20.     Ifcontains(i) $($0) in $(LanguageList)
  21.         goto returnoptions
  22.     else
  23.         set Status = STATUS_NOLANGUAGE
  24.         goto finish_ReturnOptions
  25.     endif
  26. returnoptions = +
  27.     set OptionList     = ^(Options, 0)
  28.     set OptionTextList = ^(OptionsText$($0), 1)
  29.     set Status         = STATUS_SUCCESSFUL
  30. finish_ReturnOptions = +
  31.     Return $(Status) $(OptionList) $(OptionTextList)
  32.  
  33. [InstallOption]
  34.     set Status   = STATUS_FAILED
  35.     set Option   = $($1)
  36.     set SrcDir   = $($2)
  37. ;    set AddCopy  = $($3)
  38. ;    set DoCopy   = $($4)
  39. ;    set DoConfig = $($5)
  40.     set AddCopy  = "YES"
  41.     set DoCopy   = "YES"
  42.     set DoConfig = "YES"
  43.     set LanguageList = ^(LanguagesSupported, 1)
  44.     Ifcontains(i) $($0) in $(LanguageList)
  45.     else
  46.         set Status = STATUS_NOLANGUAGE
  47.         goto finish_InstallOption
  48.     endif
  49.     read-syms Strings$($0)
  50.     set OptionList = ^(Options, 0)
  51.     ifcontains $(Option) in $(OptionList)
  52.     else
  53.         goto finish_InstallOption
  54.     endif
  55.     set OptionList = ""
  56.     set ConfigOption = #(Options, $(Option), 1)
  57.     set DataOption   = #(Options, $(Option), 2)
  58.     set DriverOption = #(Options, $(Option), 3)
  59. installtheoption = +
  60.     ifstr(i) $(AddCopy) == "YES"
  61.         install Install-AddCopyOption
  62.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  63.             Debug-Output "Adding video files to copy list failed"
  64.             goto finish_InstallOption
  65.         endif
  66.     endif
  67.     ifstr(i) $(DoCopy) == "YES"
  68.         read-syms ProgressCopy$($0)
  69.         install Install-DoCopyOption
  70.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  71.             Debug-Output "Copying files failed"
  72.             goto finish_InstallOption
  73.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  74.             set Status = STATUS_USERCANCEL
  75.             goto finish_InstallOption
  76.         endif
  77.     endif
  78.     ifstr(i) $(DoConfig) == "YES"
  79.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  80.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  81.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  82.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  83.         ifstr(i) $(STATUS) == YES
  84.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  85.             ifstr(i) $(STATUS) == YES
  86.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  87.             endif
  88.         endif
  89.         ifstr(i) $(STATUS) == NO
  90.             set OptionText = #(OptionsText$($0), $(Option), 1)
  91.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  92.             Debug-Output "Copying printer files failed"
  93.             goto finish_InstallOption
  94.         endif
  95.         install Install-Configure
  96.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  97.             Debug-Output "Installing printer driver failed"
  98.             goto finish_InstallOption
  99.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  100.             set Status = STATUS_USERCANCEL
  101.             goto finish_InstallOption
  102.         endif
  103.         ifstr(i) $(STATUS) != "ADDED"
  104.             set OptionText = #(OptionsText$($0), $(Option), 1)
  105.             ifstr(i) $(STATUS) == "PRESENT"
  106.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  107.                 set Status = STATUS_SUCCESSFUL
  108.             else-ifstr(i) $(STATUS) == "DENIED"
  109.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  110.             else
  111.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  112.             endif
  113.             goto finish_InstallOption
  114.         endif
  115.     endif
  116.     set Status = STATUS_SUCCESSFUL
  117. finish_InstallOption = +
  118.     Return $(Status)
  119.  
  120. [Install-AddCopyOption]
  121.     set STF_VITAL = ""
  122. ;    set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  123.     set STF_OVERWRITE   = "ALWAYS"
  124.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  125.                                   $(ConfigOption)              +
  126.                                   $(SrcDir)                    +
  127.                                   $(!STF_PRNDRIVERPATH)
  128.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  129.                                   $(DataOption)                +
  130.                                   $(SrcDir)                    +
  131.                                   $(!STF_PRNDRIVERPATH)
  132.     AddSectionKeyFileToCopyList   Files-PrinterData2           +
  133.                                   $(DataOption)                +
  134.                                   $(SrcDir)                    +
  135.                                   $(!STF_WINDOWSSYSPATH)
  136.     AddSectionKeyFileToCopyList   Files-PrinterData3           +
  137.                                   $(DataOption)                +
  138.                                   $(SrcDir)                    +
  139.                                   $(!STF_WINDOWSSYSPATH)
  140.     AddSectionKeyFileToCopyList   Files-PrinterData4           +
  141.                                   $(DataOption)                +
  142.                                   $(SrcDir)                    +
  143.                                   $(!STF_WINDOWSSYSPATH)
  144.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  145.                                   $(DriverOption)              +
  146.                                   $(SrcDir)                    +
  147.                                   $(!STF_PRNDRIVERPATH)
  148.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  149.                                   $(DriverOption)              +
  150.                                   $(SrcDir)                    +
  151.                                   $(!STF_PRNDRIVERPATH)
  152.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp2     +
  153.                                   $(DriverOption)              +
  154.                                   $(SrcDir)                    +
  155.                                   $(!STF_PRNDRIVERPATH)
  156.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelpCnt   +
  157.                                   $(DriverOption)              +
  158.                                   $(SrcDir)                    +
  159.                                   $(!STF_PRNDRIVERPATH)
  160.     AddSectionKeyFileToCopyList   Files-PrinterConfig2         +
  161.                                   $(ConfigOption)              +
  162.                                   $(SrcDir)                    +
  163.                                   $(!STF_PRNDRIVERPATH)
  164.     AddSectionKeyFileToCopyList   Files-PrinterConfig3         +
  165.                                   $(ConfigOption)              +
  166.                                   $(SrcDir)                    +
  167.                                   $(!STF_PRNDRIVERPATH)
  168.     AddSectionKeyFileToCopyList   Files-PrinterData5           +
  169.                                   $(DataOption)                +
  170.                                   $(SrcDir)                    +
  171.                                   $(!STF_WINDOWSSYSPATH)
  172.     AddSectionKeyFileToCopyList   Files-PrinterUtil1           +
  173.                                   $(DataOption)                +
  174.                                   $(SrcDir)                    +
  175.                                   $(!STF_WINDOWSSYSPATH)
  176.     AddSectionKeyFileToCopyList   Files-PrinterUtil2           +
  177.                                   $(DataOption)                +
  178.                                   $(SrcDir)                    +
  179.                                   $(!STF_WINDOWSSYSPATH)
  180.     AddSectionKeyFileToCopyList   Files-PrinterUtil3           +
  181.                                   $(DataOption)                +
  182.                                   $(SrcDir)                    +
  183.                                   $(!STF_WINDOWSSYSPATH)
  184.     AddSectionKeyFileToCopyList   Files-PrinterUtil4           +
  185.                                   $(DataOption)                +
  186.                                   $(SrcDir)                    +
  187.                                   $(!STF_WINDOWSSYSPATH)
  188.     AddSectionKeyFileToCopyList   Files-PrinterUtil5           +
  189.                                   $(DataOption)                +
  190.                                   $(SrcDir)                    +
  191.                                   $(!STF_WINDOWSSYSPATH)
  192.     AddSectionKeyFileToCopyList   Files-PrinterUtil6           +
  193.                                   $(DataOption)                +
  194.                                   $(SrcDir)                    +
  195.                                   $(!STF_WINDOWSSYSPATH)
  196.     exit
  197.  
  198. [Install-DoCopyOption]
  199.     CopyFilesInCopyList
  200.     exit
  201.  
  202. [Install-Configure]
  203.     set Model       = $(Option)
  204.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  205.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  206.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  207.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  208.                                                $(Model)            +
  209.                                                $(!STF_PRNENVIRONM) +
  210.                                                $(Driver)           +
  211.                                                $(DataFile)         +
  212.                                                $(ConfigFile)       +
  213.                                                $(!STF_PRINTSERVER)
  214.     exit
  215.  
  216. [ExternalInstallOption]
  217.     Set !G:DebugOutputControl = 0
  218.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  219.     set DrivesToFree = {}
  220.     install LoadSetupLibrary
  221.     ifstr(i)      $(STF_LANGUAGE)  == ""
  222.         goto end
  223.     else-ifstr(i) $(OPTION)        == ""
  224.         goto end
  225.     else-ifstr(i) $(ADDCOPY)       == ""
  226.         goto end
  227.     else-ifstr(i) $(DOCOPY)        == ""
  228.         goto end
  229.     else-ifstr(i) $(DOCONFIG)      == ""
  230.         goto end
  231.     endif
  232.     read-syms PlatformID
  233.     read-syms ProductType
  234.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  235.         set STF_PRNPLATFORM = "w32x86"
  236.         set STF_PRNENVIRONM = "Windows NT x86"
  237.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  238.         set STF_PRNPLATFORM = "w32mips"
  239.         set STF_PRNENVIRONM = "Windows NT R4000"
  240.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  241.         set STF_PRNPLATFORM = "w32alpha"
  242.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  243.     else
  244.         goto end
  245.     endif
  246.     read-syms UiVars
  247.     detect    UiVars
  248.     read-syms Strings$(STF_LANGUAGE)
  249.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  250.         goto skip_asksource
  251.     endif
  252.     set STF_SRCDIR = A:\
  253.     shell "registry.inf" GetNTSource
  254.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  255.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  256.     else
  257.         set STF_SRCDIR = $($R1)
  258.     endif
  259.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  260.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  261.         Debug-Output "shelling DoAskSource failed"
  262.         goto end
  263.     endif
  264.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  265.         set STF_SRCDIR  = $($R1)
  266.         ifstr(i) $($R2) != ""
  267.             set DrivesToFree = >($(DrivesToFree), $($R2))
  268.         endif
  269.     else
  270.         goto end
  271.     endif
  272. skip_asksource = +
  273.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  274.     ifstr(i) $(IsFullPath) == "NO"
  275.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  276.         ifstr(i) $(STATUS) == "ERROR"
  277.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  278.             goto end
  279.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  280.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  281.             goto end
  282.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  283.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  284.             goto end
  285.         else
  286.             set STF_PRNDRIVERPATH = $(STATUS)
  287.         endif
  288.     endif
  289.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  290.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  291.         Debug-Output "Execing InstallOption failed"
  292.         goto end
  293.     endif
  294.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  295.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  296.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  297.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  298.     endif
  299. end =+
  300.     ForListDo $(DrivesToFree)
  301.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  302.     EndForListDo
  303.     install   FreeSetupLibrary
  304.     exit
  305.  
  306. [LoadSetupLibrary]
  307.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  308.     exit
  309.  
  310. [FreeSetupLibrary]
  311.     FreeLibrary $(!LIBHANDLE)
  312.     exit
  313.  
  314. [PlatformID]
  315.     PlatformID_I386  = I386
  316.     PlatformID_Mips  = Mips
  317.     PlatformID_Alpha  = Alpha
  318.  
  319. [UiVars]
  320.     STF_CONTROLSET     = CurrentControlSet
  321.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  322.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  323.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  324.  
  325. [Source Media Descriptions]
  326.     1  = "MJ-8000C プリンタドライバ・ユーティリティディスク  Windows NT 3.51用 セットアップディスク 1 (DISK #1)"  , TAGFILE = disk1
  327.     2  = "MJ-8000C プリンタドライバ・ユーティリティディスク  Windows NT 3.51用 セットアップディスク 2 (DISK #2)"  , TAGFILE = disk2
  328.  
  329. [ProductType]
  330. STF_PRODUCT  = Winnt
  331. STF_PLATFORM = I386
  332.  
  333. [Files-PrinterConfig]
  334. e_cudj = 1,e_cudj11.dll , SIZE=999
  335.  
  336. [Files-PrinterData]
  337. e_c80j  = 1,e_c80j11.dll  , SIZE=999
  338.  
  339. [Files-PrinterData2]
  340. e_c80j =  1,e_c80j11.dat  , SIZE=999
  341.  
  342. [Files-PrinterData3]
  343. e_c80j =  1,e_c80j11.cfg  , SIZE=999
  344.  
  345. [Files-PrinterData4]
  346. e_c80j =  1,e_cnkj11.dat  , SIZE=999
  347.  
  348. [Files-PrinterDriver]
  349. e_cpdj = 1,e_cpdj11.dll, SIZE=999
  350.  
  351. [Files-PrinterConfig2]
  352. e_cudj = 2,e_cupj11.dll , SIZE=999
  353.  
  354. [Files-PrinterConfig3]
  355. e_cudj = 2,e_cupw11.dll , SIZE=999
  356.  
  357. [Files-PrinterData5]
  358. e_c80j =  2,epset32.dll  , SIZE=999
  359.  
  360. [Files-PrinterDriverHelpCnt]
  361. e_cpdj = 2,e_cupj11.cnt , SIZE=999
  362.  
  363. [Files-PrinterDriverHelp]
  364. e_cpdj = 2,e_cupj11.hlp , SIZE=999
  365.  
  366. [Files-PrinterDriverHelp2]
  367. e_cpdj = 2,e_cupw11.hlp , SIZE=999
  368.  
  369. [Files-PrinterUtil1]
  370. e_c80j =  2,epu_dlgj.dll  , SIZE=999
  371.  
  372. [Files-PrinterUtil2]
  373. e_c80j =  2,epuprn32.dll  , SIZE=999
  374.  
  375. [Files-PrinterUtil3]
  376. e_c80j =  2,epures32.dll  , SIZE=999
  377.  
  378. [Files-PrinterUtil4]
  379. e_c80j =  2,eputi21.dll  , SIZE=999
  380.  
  381. [Files-PrinterUtil5]
  382. e_c80j =  2,eputpi10.dtx  , SIZE=999
  383.  
  384. [Files-PrinterUtil6]
  385. e_c80j =  2,eputpi11.dtx  , SIZE=999
  386.  
  387. [LanguagesSupported]
  388.     ENG
  389.  
  390. [OptionsTextENG]
  391. "EPSON MJ-8000C"  = "EPSON MJ-8000C"
  392.  
  393. [StringsENG]
  394.     String1 = "プリンタ"
  395.     String2 = " はすでに組み込まれています。"
  396.     String3 = "プリント サーバーへの接続に失敗しました。"
  397.     String4 = "プリンタ のドライバ ファイル"
  398.     String5 = "をコピーできませんでした。このプリンタの組み込みに失敗しました。"
  399.     String6 = "アクセスが拒否されました。この操作を行うには、管理者グループの"+
  400.               "メンバーとしてログオンしなければなりません。"
  401.     String7 = "を組み込むことができませんでした。"
  402.  
  403. [ProgressCopyENG]
  404.     ProCaption   = "Windows NT セットアップ"
  405.     ProCancel    = "キャンセル"
  406.     ProCancelMsg = "Windows NT は正しく組み込まれていません。"+
  407.                    "ファイルのコピーを中止しますか?"
  408.     ProCancelCap = "セットアップ メッセージ"
  409.     ProText1     = "コピー元:"
  410.     ProText2     = "コピー先:"
  411.