home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703B.ISO / driver / canon / shot / wnl3121 / printer.inf < prev    next >
INI File  |  1996-09-19  |  14KB  |  341 lines

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