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