home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 September / VPR9809B.ISO / DRIVER / nec / m2xefd / m2xefd22.exe / PRINTER.INF < prev    next >
INI File  |  1998-04-10  |  12KB  |  300 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4. "NEC MultiWriter 2200XE"                           = prmw3oeu,  mw2200xe,  prmw3oe
  5. [Identify]
  6.     read-syms Identification
  7.     set Status     = STATUS_SUCCESSFUL
  8.     set Identifier = $(OptionType)
  9.     set Media      = #("Source Media Descriptions", 1, 1)
  10.     Return $(Status) $(Identifier) $(Media)
  11. [ReturnOptions]
  12.     set Status        = STATUS_FAILED
  13.     set OptionList     = {}
  14.     set OptionTextList = {}
  15.     set LanguageList = ^(LanguagesSupported, 1)
  16.     Ifcontains(i) $($0) in $(LanguageList)
  17.         goto returnoptions
  18.     else
  19.         set Status = STATUS_NOLANGUAGE
  20.         goto finish_ReturnOptions
  21.     endif
  22. returnoptions = +
  23.     set OptionList     = ^(Options, 0)
  24.     set OptionTextList = ^(OptionsText$($0), 1)
  25.     set Status         = STATUS_SUCCESSFUL
  26. finish_ReturnOptions = +
  27.     Return $(Status) $(OptionList) $(OptionTextList)
  28. [InstallOption]
  29.     set Status   = STATUS_FAILED
  30.     set Option   = $($1)
  31.     set SrcDir   = $($2)
  32.     set AddCopy  = $($3)
  33.     set DoCopy   = $($4)
  34.     set DoConfig = $($5)
  35.     set LanguageList = ^(LanguagesSupported, 1)
  36.     Ifcontains(i) $($0) in $(LanguageList)
  37.     else
  38.         set Status = STATUS_NOLANGUAGE
  39.         goto finish_InstallOption
  40.     endif
  41.     read-syms Strings$($0)
  42.     set OptionList = ^(Options, 0)
  43.     ifcontains $(Option) in $(OptionList)
  44.     else
  45.         goto finish_InstallOption
  46.     endif
  47.     set OptionList = ""
  48.     set ConfigOption = #(Options, $(Option), 1)
  49.     set DataOption   = #(Options, $(Option), 2)
  50.     set DriverOption = #(Options, $(Option), 3)
  51. installtheoption = +
  52.     ifstr(i) $(AddCopy) == "YES"
  53.         install Install-AddCopyOption
  54.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  55.             Debug-Output "Adding video files to copy list failed"
  56.             goto finish_InstallOption
  57.         endif
  58.     endif
  59.     ifstr(i) $(DoCopy) == "YES"
  60.         read-syms ProgressCopy$($0)
  61.         install Install-DoCopyOption
  62.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  63.             Debug-Output "Copying files failed"
  64.             goto finish_InstallOption
  65.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  66.             set Status = STATUS_USERCANCEL
  67.             goto finish_InstallOption
  68.         endif
  69.     endif
  70.     ifstr(i) $(DoConfig) == "YES"
  71.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  72.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  73.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  74.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  75.         ifstr(i) $(STATUS) == YES
  76.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  77.             ifstr(i) $(STATUS) == YES
  78.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  79.             endif
  80.         endif
  81.         ifstr(i) $(STATUS) == NO
  82.             set OptionText = #(OptionsText$($0), $(Option), 1)
  83.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  84.             Debug-Output "Copying printer files failed"
  85.             goto finish_InstallOption
  86.         endif
  87.         install Install-Configure
  88.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  89.             Debug-Output "Installing printer driver failed"
  90.             goto finish_InstallOption
  91.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  92.             set Status = STATUS_USERCANCEL
  93.             goto finish_InstallOption
  94.         endif
  95.         ifstr(i) $(STATUS) != "ADDED"
  96.             set OptionText = #(OptionsText$($0), $(Option), 1)
  97.             ifstr(i) $(STATUS) == "PRESENT"
  98.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  99.                 set Status = STATUS_SUCCESSFUL
  100.             else-ifstr(i) $(STATUS) == "DENIED"
  101.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  102.             else
  103.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  104.             endif
  105.             goto finish_InstallOption
  106.         endif
  107.     endif
  108.     set Status = STATUS_SUCCESSFUL
  109. finish_InstallOption = +
  110.     Return $(Status)
  111. [Install-AddCopyOption]
  112.     set STF_VITAL = ""
  113.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  114.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  115.                                   $(ConfigOption)              +
  116.                                   $(SrcDir)                    +
  117.                                   $(!STF_PRNDRIVERPATH)
  118.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  119.                                   $(DataOption)                +
  120.                                   $(SrcDir)                    +
  121.                                   $(!STF_PRNDRIVERPATH)
  122.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  123.                                   $(DriverOption)              +
  124.                                   $(SrcDir)                    +
  125.                                   $(!STF_PRNDRIVERPATH)
  126.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  127.                                   $(DriverOption)              +
  128.                                   $(SrcDir)                    +
  129.                                   $(!STF_PRNDRIVERPATH)
  130.     AddSectionKeyFileToCopyList   Files-PrinterDriverCnt       +
  131.                                   $(DriverOption)              +
  132.                                   $(SrcDir)                    +
  133.                                   $(!STF_PRNDRIVERPATH)
  134.     exit
  135. [Install-DoCopyOption]
  136.     CopyFilesInCopyList
  137.     exit
  138. [Install-Configure]
  139.     set Model       = $(Option)
  140.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  141.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  142.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  143.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  144.                                                $(Model)            +
  145.                                                $(!STF_PRNENVIRONM) +
  146.                                                $(Driver)           +
  147.                                                $(DataFile)         +
  148.                                                $(ConfigFile)       +
  149.                                                $(!STF_PRINTSERVER)
  150.     exit
  151. [ExternalInstallOption]
  152.     Set !G:DebugOutputControl = 0
  153.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  154.     set DrivesToFree = {}
  155.     install LoadSetupLibrary
  156.     ifstr(i)      $(STF_LANGUAGE)  == ""
  157.         goto end
  158.     else-ifstr(i) $(OPTION)        == ""
  159.         goto end
  160.     else-ifstr(i) $(ADDCOPY)       == ""
  161.         goto end
  162.     else-ifstr(i) $(DOCOPY)        == ""
  163.         goto end
  164.     else-ifstr(i) $(DOCONFIG)      == ""
  165.         goto end
  166.     endif
  167.     read-syms PlatformID
  168.     read-syms ProductType
  169.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  170.         set STF_PRNPLATFORM = "w32x86"
  171.         set STF_PRNENVIRONM = "Windows NT x86"
  172.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  173.         set STF_PRNPLATFORM = "w32mips"
  174.         set STF_PRNENVIRONM = "Windows NT R4000"
  175.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_PPC)
  176.         set STF_PRNPLATFORM = "w32ppc"
  177.         set STF_PRNENVIRONM = "Windows NT PowerPC"
  178.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  179.         set STF_PRNPLATFORM = "w32alpha"
  180.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  181.     else
  182.         goto end
  183.     endif
  184.     read-syms UiVars
  185.     detect    UiVars
  186.     read-syms Strings$(STF_LANGUAGE)
  187.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  188.         goto skip_asksource
  189.     endif
  190.     set STF_SRCDIR = A:\
  191.     shell "registry.inf" GetNTSource
  192.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  193.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  194.     else
  195.         set STF_SRCDIR = $($R1)
  196.     endif
  197.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  198.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  199.         Debug-Output "shelling DoAskSource failed"
  200.         goto end
  201.     endif
  202.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  203.         set STF_SRCDIR  = $($R1)
  204.         ifstr(i) $($R2) != ""
  205.             set DrivesToFree = >($(DrivesToFree), $($R2))
  206.         endif
  207.     else
  208.         goto end
  209.     endif
  210. skip_asksource = +
  211.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  212.     ifstr(i) $(IsFullPath) == "NO"
  213.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  214.         ifstr(i) $(STATUS) == "ERROR"
  215.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  216.             goto end
  217.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  218.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  219.             goto end
  220.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  221.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  222.             goto end
  223.         else
  224.             set STF_PRNDRIVERPATH = $(STATUS)
  225.         endif
  226.     endif
  227.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  228.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  229.         Debug-Output "Execing InstallOption failed"
  230.         goto end
  231.     endif
  232.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  233.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  234.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  235.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  236.     endif
  237. end =+
  238.     ForListDo $(DrivesToFree)
  239.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  240.     EndForListDo
  241.     install   FreeSetupLibrary
  242.     exit
  243. [LoadSetupLibrary]
  244.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  245.     exit
  246. [FreeSetupLibrary]
  247.     FreeLibrary $(!LIBHANDLE)
  248.     exit
  249. [PlatformID]
  250.     PlatformID_I386 = I386
  251.     PlatformID_Mips = Mips
  252.     PlatformID_Alpha  = Alpha
  253.     PlatformID_PPC  = ppc
  254. [UiVars]
  255.     STF_CONTROLSET     = CurrentControlSet
  256.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  257.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  258.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  259. [Source Media Descriptions]
  260.     1 = "NMPSディスク #2" , TAGFILE = disk2.id
  261. [Signature]
  262.     FileType = MICROSOFT_FILE
  263. [GetSignature]
  264.     read-syms Signature
  265.     return $(FileType)
  266. [ProductType]
  267. STF_PRODUCT  = Winnt
  268. STF_PLATFORM = I386
  269. [Files-PrinterConfig]
  270. prmw3oeu = 1,PRMW3OEU.DLL , SIZE=408576
  271. [Files-PrinterData]
  272. mw2200xe = 1,MW2200XE.NPD , SIZE=7168
  273. [Files-PrinterDriver]
  274. prmw3oe = 1,PRMW3OE.DLL , SIZE=159744
  275. [Files-PrinterDriverCnt]
  276. prmw3oe = 1,PRMW3OE.CNT , SIZE=1024
  277. [Files-PrinterDriverHelp]
  278. prmw3oe = 1,PRMW3OE.HLP , SIZE=77824
  279. [LanguagesSupported]
  280.     ENG
  281. [OptionsTextENG]
  282. "NEC MultiWriter 2200XE"                              = "NEC MultiWriter 2200XE"
  283. [StringsENG]
  284.     String1 = "プリンタ"
  285.     String2 = " はすでに組み込まれています。"
  286.     String3 = "プリント サーバーへの接続に失敗しました。"
  287.     String4 = "プリンタのドライバ ファイル"
  288.     String5 = "をコピーできませんでした。このプリンタの組み込みに失敗しました。"
  289.     String6 = "アクセスが拒否されました。この操作を行うには、管理者グループの"+
  290.               "メンバーとしてログオンしなければなりません。"
  291.     String7 = "を組み込むことができませんでした。"
  292. [ProgressCopyENG]
  293.     ProCaption   = "Windows NT セットアップ"
  294.     ProCancel    = "キャンセル"
  295.     ProCancelMsg = "Windows NT は正しく組み込まれていません。"+
  296.                    "ファイルのコピーを中止しますか?"
  297.     ProCancelCap = "セットアップ メッセージ"
  298.     ProText1     = "コピー元:"
  299.     ProText2     = "コピー先:"
  300.