home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 July / VPR9607B.BIN / driver / canon / bj / wntbj110 / printer.inf < prev    next >
INI File  |  1996-03-31  |  13KB  |  344 lines

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