home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / epson / win_nt / zenont / disk1 / printer.inf < prev    next >
INI File  |  1996-11-14  |  12KB  |  380 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3.  
  4. [Options]
  5. ;       Driver = Configuration File, Data File, Driver
  6.  
  7. "Epson Stylus 1500 -Z-"        = sdntui, sd_epsty, sd32
  8. "Epson Stylus 800 -Z-"         = sdntui, sd_epsty, sd32
  9. "Epson Stylus COLOR 200 -Z-"   = sdntui, sd_epsty, sd32
  10. "Epson Stylus COLOR 500 -Z-"   = sdntui, sd_epsty, sd32
  11. "Epson Stylus COLOR -Z-"       = sdntui, sd_epsty, sd32
  12. "Epson Stylus COLOR II -Z-"    = sdntui, sd_epsty, sd32
  13. "Epson Stylus COLOR IIs -Z-"   = sdntui, sd_epsty, sd32
  14. "Epson Stylus PRO -Z-"         = sdntui, sd_epsty, sd32
  15. "Epson Stylus PRO XL -Z-"      = sdntui, sd_epsty, sd32
  16. "Epson Stylus PRO XL+ -Z-"     = sdntui, sd_epsty, sd32
  17.  
  18. [Identify]
  19.     read-syms Identification
  20.     set Status     = STATUS_SUCCESSFUL
  21.     set Identifier = $(OptionType)
  22.     set Media      = #("Source Media Descriptions", 1, 1)
  23.     Return $(Status) $(Identifier) $(Media)
  24.  
  25. [ReturnOptions]
  26.     set Status        = STATUS_FAILED
  27.     set OptionList     = {}
  28.     set OptionTextList = {}
  29.     set LanguageList = ^(LanguagesSupported, 1)
  30.     Ifcontains(i) $($0) in $(LanguageList)
  31.     goto returnoptions
  32.     else
  33.     set Status = STATUS_NOLANGUAGE
  34.     goto finish_ReturnOptions
  35.     endif
  36. returnoptions = +
  37.     set OptionList     = ^(Options, 0)
  38.     set OptionTextList = ^(OptionsText$($0), 1)
  39.     set Status         = STATUS_SUCCESSFUL
  40. finish_ReturnOptions = +
  41.     Return $(Status) $(OptionList) $(OptionTextList)
  42.  
  43. ;;-----------------------------------------------------------------------------
  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.  
  52.     ;;      Verify that we can speak their language
  53.     set LanguageList = ^(LanguagesSupported, 1)
  54.     Ifcontains(i) $($0) in $(LanguageList)
  55.     else
  56.     set Status = STATUS_NOLANGUAGE
  57.     goto finish_InstallOption
  58.     endif
  59.     read-syms Strings$($0)                                      ;; read our language-specific message strings
  60.     set OptionList = ^(Options, 0)                      ;; create list of drivers
  61.  
  62.     ;;      Verify we are installing an option from our list
  63.     ifcontains $(Option) in $(OptionList)       ;; user picked one from this list?
  64.     else
  65.     goto finish_InstallOption                       ;; No, quit now
  66.     endif
  67.  
  68.     ;;      Fetch files for the option
  69.     set OptionList = ""
  70.     set ConfigOption = #(Options, $(Option), 1)
  71.     set DataOption   = #(Options, $(Option), 2)
  72.     set DriverOption = #(Options, $(Option), 3)
  73.  
  74. installtheoption = +
  75.     ifstr(i) $(AddCopy) == "YES"
  76.     install Install-AddCopyOption           ;; create the copy list
  77.     ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  78.         Debug-Output "Adding files to copy list failed"
  79.         goto finish_InstallOption
  80.     endif
  81.     endif
  82.  
  83.     ifstr(i) $(DoCopy) == "YES"
  84.     read-syms ProgressCopy$($0)
  85.     install Install-DoCopyOption            ;; install the files
  86.     ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  87.         Debug-Output "Copying files failed"
  88.         goto finish_InstallOption
  89.     else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  90.         set Status = STATUS_USERCANCEL
  91.         goto finish_InstallOption
  92.     endif
  93.     endif
  94.  
  95.     ifstr(i) $(DoConfig) == "YES"
  96.         ;;      Verify that the correct files are installed
  97.     set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  98.     set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  99.     set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  100.  
  101.         ;;      Check each for each file's existance
  102.     LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  103.     ifstr(i) $(STATUS) == YES
  104.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  105.         ifstr(i) $(STATUS) == YES
  106.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  107.         endif
  108.     endif
  109.     ifstr(i) $(STATUS) == NO
  110.         set OptionText = #(OptionsText$($0), $(Option), 1)
  111.         shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  112.         Debug-Output "Copying printer files failed"
  113.         goto finish_InstallOption
  114.     endif
  115.  
  116.     install Install-Configure                               ;; Configure the driver
  117.     ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  118.         Debug-Output "Installing printer driver failed"
  119.         goto finish_InstallOption
  120.     else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  121.         set Status = STATUS_USERCANCEL
  122.         goto finish_InstallOption
  123.     endif
  124.  
  125.     ifstr(i) $(STATUS) != "ADDED"
  126.         set OptionText = #(OptionsText$($0), $(Option), 1)
  127.         ifstr(i) $(STATUS) == "PRESENT"
  128.         shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  129.         set Status = STATUS_SUCCESSFUL
  130.         else-ifstr(i) $(STATUS) == "DENIED"
  131.         shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  132.         else
  133.         shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  134.         endif
  135.         goto finish_InstallOption
  136.     endif
  137.     endif
  138.     set Status = STATUS_SUCCESSFUL
  139. finish_InstallOption = +
  140.     Return $(Status)
  141.  
  142. [Install-AddCopyOption]
  143.     set STF_VITAL = ""
  144.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  145.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  146.                   $(ConfigOption)              +
  147.                   $(SrcDir)                    +
  148.                   $(!STF_PRNDRIVERPATH)
  149.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  150.                   $(DataOption)                +
  151.                   $(SrcDir)                    +
  152.                   $(!STF_PRNDRIVERPATH)
  153.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  154.                   $(DriverOption)              +
  155.                   $(SrcDir)                    +
  156.                   $(!STF_PRNDRIVERPATH)
  157.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  158.                   $(DataOption)                +
  159.                   $(SrcDir)                    +
  160.                   $(!STF_PRNDRIVERPATH)
  161.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelpContents      +
  162.                   $(DataOption)                +
  163.                   $(SrcDir)                    +
  164.                   $(!STF_PRNDRIVERPATH)
  165.     AddSectionKeyFileToCopyList   Files-PrinterDRV             +
  166.                   $(DataOption)                +
  167.                   $(SrcDir)                    +
  168.                   $(!STF_WINDOWSSYSPATH)
  169.     AddSectionKeyFileToCopyList   Files-PrinterUI              +
  170.                   $(DataOption)                +
  171.                   $(SrcDir)                    +
  172.                   $(!STF_WINDOWSSYSPATH)
  173.       AddSectionFilesToCopyList    Files-SuperDriverCore       +
  174.                                   $(SrcDir)                                        +
  175.                                   $(!STF_WINDOWSSYSPATH)
  176.     exit
  177.  
  178. [Install-DoCopyOption]
  179.     CopyFilesInCopyList
  180.     exit
  181.  
  182. [Install-Configure]
  183.     set Model       = $(Option)
  184.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  185.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  186.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  187.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  188.                            $(Model)            +
  189.                            $(!STF_PRNENVIRONM) +
  190.                            $(Driver)           +
  191.                            $(DataFile)         +
  192.                            $(ConfigFile)       +
  193.                            $(!STF_PRINTSERVER)
  194.     exit
  195.  
  196. [ExternalInstallOption]
  197.     Set !G:DebugOutputControl = 0
  198.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  199.     set DrivesToFree = {}
  200.     install LoadSetupLibrary
  201.     ifstr(i)      $(STF_LANGUAGE)  == ""
  202.     goto end
  203.     else-ifstr(i) $(OPTION)        == ""
  204.     goto end
  205.     else-ifstr(i) $(ADDCOPY)       == ""
  206.     goto end
  207.     else-ifstr(i) $(DOCOPY)        == ""
  208.     goto end
  209.     else-ifstr(i) $(DOCONFIG)      == ""
  210.     goto end
  211.     endif
  212.     read-syms PlatformID
  213.     read-syms ProductType
  214.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  215.     set STF_PRNPLATFORM = "w32x86"
  216.     set STF_PRNENVIRONM = "Windows NT x86"
  217.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  218.     set STF_PRNPLATFORM = "w32mips"
  219.     set STF_PRNENVIRONM = "Windows NT R4000"
  220.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  221.     set STF_PRNPLATFORM = "w32alpha"
  222.     set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  223.     else
  224.     goto end
  225.     endif
  226.     read-syms UiVars
  227.     detect    UiVars
  228.     read-syms Strings$(STF_LANGUAGE)
  229.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  230.     goto skip_asksource
  231.     endif
  232.     set STF_SRCDIR = A:\
  233.     shell "registry.inf" GetNTSource
  234.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  235.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  236.     else
  237.     set STF_SRCDIR = $($R1)
  238.     endif
  239.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  240.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  241.     Debug-Output "shelling DoAskSource failed"
  242.     goto end
  243.     endif
  244.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  245.     set STF_SRCDIR  = $($R1)
  246.     ifstr(i) $($R2) != ""
  247.         set DrivesToFree = >($(DrivesToFree), $($R2))
  248.     endif
  249.     else
  250.     goto end
  251.     endif
  252. skip_asksource = +
  253.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  254.     ifstr(i) $(IsFullPath) == "NO"
  255.     LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  256.     ifstr(i) $(STATUS) == "ERROR"
  257.         shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  258.         goto end
  259.     else-ifstr(i) $(STATUS) == "NOT-UNC"
  260.         shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  261.         goto end
  262.     else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  263.         shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  264.         goto end
  265.     else
  266.         set STF_PRNDRIVERPATH = $(STATUS)
  267.     endif
  268.     endif
  269.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  270.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  271.     Debug-Output "Execing InstallOption failed"
  272.     goto end
  273.     endif
  274.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  275.     set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  276.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  277.     set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  278.     endif
  279. end =+
  280.     ForListDo $(DrivesToFree)
  281.     LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  282.     EndForListDo
  283.     install   FreeSetupLibrary
  284.     exit
  285.  
  286. [LoadSetupLibrary]
  287.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  288.     exit
  289.  
  290. [FreeSetupLibrary]
  291.     FreeLibrary $(!LIBHANDLE)
  292.     exit
  293.  
  294. [PlatformID]
  295.     PlatformID_I386 = I386
  296.     PlatformID_Mips = Mips
  297.     PlatformID_Alpha  = Alpha
  298.  
  299. [UiVars]
  300.     STF_CONTROLSET     = CurrentControlSet
  301.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  302.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  303.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  304.  
  305. [Source Media Descriptions]
  306.          1 = "Zenographics SuperDrivers Disk 1" , TAGFILE = ZENO1.TAG
  307.          2 = "Zenographics SuperDrivers Disk 2" , TAGFILE = ZENO2.TAG
  308.  
  309. [Signature]
  310.     FileType = MICROSOFT_FILE
  311.  
  312. [GetSignature]
  313.     read-syms Signature
  314.     return $(FileType)
  315.  
  316. [ProductType]
  317. STF_PRODUCT  = Winnt
  318. STF_PLATFORM = I386
  319.  
  320. [Files-PrinterConfig]
  321. sdntui = 1,sdntui.DLL
  322.  
  323. [Files-PrinterData]
  324. sd_epsty = 1,SD_EPSTY.SDD
  325.  
  326. [Files-PrinterDRV]
  327. sd_epsty = 1,SD_EPSTY.DLL
  328.  
  329. [Files-PrinterUI]
  330. sd_epsty = 1,SU_EPSTY.DLL
  331.  
  332. [Files-PrinterDriver]
  333. sd32 = 1,SDNT.DLL
  334.  
  335. [Files-PrinterDriverHelp]
  336. sd_epsty = 1,SD_EPSTY.HLP
  337.  
  338. [Files-PrinterDriverHelpContents]
  339. sd_epsty = 1,SD_EPSTY.CNT
  340.  
  341. [Files-SuperDriverCore]
  342.     1,SDDM32.DLL
  343.     1,SDDMUI.DLL
  344.     1,SR32.DLL
  345.     1,SD32.DLL
  346.     1,QDPRINT.DLL
  347.         2,SP40HELP.HLP
  348.         2,SP40HELP.CNT
  349.     1,ZSPOOL32.EXE
  350.     1,SMFPRINT.DLL
  351.     1,ZPRINT32.EXE
  352.     1,ZSPOOL.DLL
  353.         2,SDTARES.DLL
  354.         1,MFC30.DLL
  355.         1,MSVCRT20.DLL
  356.  
  357. [LanguagesSupported]
  358.     ENG
  359.  
  360. [OptionsTextENG]
  361.  
  362. [StringsENG]
  363.     String1 = "The printer model "
  364.     String2 = " is already installed."
  365.     String3 = "Failed to connect to the print server."
  366.     String4 = "The driver files for the printer model "
  367.     String5 = " couldn't be copied.  Failed to install the printer model."
  368.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  369.           "group to carry out this operation."
  370.     String7 = " could not be installed."
  371.  
  372. [ProgressCopyENG]
  373.         ProCaption   = "SuperDriver Setup"
  374.     ProCancel    = "Cancel"
  375.         ProCancelMsg = "Your SuperDriver is not correctly installed.  Are you sure you want "+
  376.            "to cancel copying files?"
  377.     ProCancelCap = "Setup Message"
  378.     ProText1     = "Copying:"
  379.     ProText2     = "To:"
  380.