home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 April (Special) / Chip-Special_1997-04_cd.bin / epson / win_nt / ink_i / printer.inf < prev    next >
Encoding:
INI File  |  1995-12-10  |  12.3 KB  |  313 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4. "Epson Stylus COLOR ESC/P 2"               = rasddui,  escp2ms,   rasdd
  5. "Epson Stylus Pro ESC/P 2"                   = rasddui,  escp2ms,   rasdd
  6. "Epson Stylus Pro XL ESC/P 2"                = rasddui,  escp2ms,   rasdd
  7. [Identify]
  8.     read-syms Identification
  9.     set Status     = STATUS_SUCCESSFUL
  10.     set Identifier = $(OptionType)
  11.     set Media      = #("Source Media Descriptions", 1, 1)
  12.     Return $(Status) $(Identifier) $(Media)
  13. [ReturnOptions]
  14.     set Status        = STATUS_FAILED
  15.     set OptionList     = {}
  16.     set OptionTextList = {}
  17.     set LanguageList = ^(LanguagesSupported, 1)
  18.     Ifcontains(i) $($0) in $(LanguageList)
  19.         goto returnoptions
  20.     else
  21.         set Status = STATUS_NOLANGUAGE
  22.         goto finish_ReturnOptions
  23.     endif
  24. returnoptions = +
  25.     set OptionList     = ^(Options, 0)
  26.     set OptionTextList = ^(OptionsText$($0), 1)
  27.     set Status         = STATUS_SUCCESSFUL
  28. finish_ReturnOptions = +
  29.     Return $(Status) $(OptionList) $(OptionTextList)
  30. [InstallOption]
  31.     set Status   = STATUS_FAILED
  32.     set Option   = $($1)
  33.     set SrcDir   = $($2)
  34.     set AddCopy  = $($3)
  35.     set DoCopy   = $($4)
  36.     set DoConfig = $($5)
  37.     set LanguageList = ^(LanguagesSupported, 1)
  38.     Ifcontains(i) $($0) in $(LanguageList)
  39.     else
  40.         set Status = STATUS_NOLANGUAGE
  41.         goto finish_InstallOption
  42.     endif
  43.     read-syms Strings$($0)
  44.     set OptionList = ^(Options, 0)
  45.     ifcontains $(Option) in $(OptionList)
  46.     else
  47.         goto finish_InstallOption
  48.     endif
  49.     set OptionList = ""
  50.     set ConfigOption = #(Options, $(Option), 1)
  51.     set DataOption   = #(Options, $(Option), 2)
  52.     set DriverOption = #(Options, $(Option), 3)
  53. installtheoption = +
  54.     ifstr(i) $(AddCopy) == "YES"
  55.         install Install-AddCopyOption
  56.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  57.             Debug-Output "Adding video files to copy list failed"
  58.             goto finish_InstallOption
  59.         endif
  60.     endif
  61.     ifstr(i) $(DoCopy) == "YES"
  62.         read-syms ProgressCopy$($0)
  63.         install Install-DoCopyOption
  64.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  65.             Debug-Output "Copying files failed"
  66.             goto finish_InstallOption
  67.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  68.             set Status = STATUS_USERCANCEL
  69.             goto finish_InstallOption
  70.         endif
  71.     endif
  72.     ifstr(i) $(DoConfig) == "YES"
  73.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  74.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  75.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  76.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  77.         ifstr(i) $(STATUS) == YES
  78.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  79.             ifstr(i) $(STATUS) == YES
  80.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  81.             endif
  82.         endif
  83.         ifstr(i) $(STATUS) == NO
  84.             set OptionText = #(OptionsText$($0), $(Option), 1)
  85.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  86.             Debug-Output "Copying printer files failed"
  87.             goto finish_InstallOption
  88.         endif
  89.         install Install-Configure
  90.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  91.             Debug-Output "Installing printer driver failed"
  92.             goto finish_InstallOption
  93.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  94.             set Status = STATUS_USERCANCEL
  95.             goto finish_InstallOption
  96.         endif
  97.         ifstr(i) $(STATUS) != "ADDED"
  98.             set OptionText = #(OptionsText$($0), $(Option), 1)
  99.             ifstr(i) $(STATUS) == "PRESENT"
  100.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  101.                 set Status = STATUS_SUCCESSFUL
  102.             else-ifstr(i) $(STATUS) == "DENIED"
  103.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  104.             else
  105.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  106.             endif
  107.             goto finish_InstallOption
  108.         endif
  109.     endif
  110.     set Status = STATUS_SUCCESSFUL
  111. finish_InstallOption = +
  112.     Return $(Status)
  113. [Install-AddCopyOption]
  114.     set STF_VITAL = ""
  115.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  116.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  117.                                   $(ConfigOption)              +
  118.                                   $(SrcDir)                    +
  119.                                   $(!STF_PRNDRIVERPATH)
  120.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  121.                                   $(DataOption)                +
  122.                                   $(SrcDir)                    +
  123.                                   $(!STF_PRNDRIVERPATH)
  124.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  125.                                   $(DriverOption)              +
  126.                                   $(SrcDir)                    +
  127.                                   $(!STF_PRNDRIVERPATH)
  128.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  129.                                   $(DriverOption)              +
  130.                                   $(SrcDir)                    +
  131.                                   $(!STF_PRNDRIVERPATH)
  132.     AddSectionKeyFileToCopyList   Files-PrinterDriverCnt       +
  133.                                   $(DriverOption)              +
  134.                                   $(SrcDir)                    +
  135.                                   $(!STF_PRNDRIVERPATH)
  136.     exit
  137. [Install-DoCopyOption]
  138.     CopyFilesInCopyList
  139.     exit
  140. [Install-Configure]
  141.     set Model       = $(Option)
  142.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  143.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  144.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  145.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  146.                                                $(Model)            +
  147.                                                $(!STF_PRNENVIRONM) +
  148.                                                $(Driver)           +
  149.                                                $(DataFile)         +
  150.                                                $(ConfigFile)       +
  151.                                                $(!STF_PRINTSERVER)
  152.     exit
  153. [ExternalInstallOption]
  154.     Set !G:DebugOutputControl = 0
  155.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  156.     set DrivesToFree = {}
  157.     install LoadSetupLibrary
  158.     ifstr(i)      $(STF_LANGUAGE)  == ""
  159.         goto end
  160.     else-ifstr(i) $(OPTION)        == ""
  161.         goto end
  162.     else-ifstr(i) $(ADDCOPY)       == ""
  163.         goto end
  164.     else-ifstr(i) $(DOCOPY)        == ""
  165.         goto end
  166.     else-ifstr(i) $(DOCONFIG)      == ""
  167.         goto end
  168.     endif
  169.     read-syms PlatformID
  170.     read-syms ProductType
  171.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  172.         set STF_PRNPLATFORM = "w32x86"
  173.         set STF_PRNENVIRONM = "Windows NT x86"
  174.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  175.         set STF_PRNPLATFORM = "w32mips"
  176.         set STF_PRNENVIRONM = "Windows NT R4000"
  177.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_PPC)
  178.         set STF_PRNPLATFORM = "w32ppc"
  179.         set STF_PRNENVIRONM = "Windows NT PowerPC"
  180.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  181.         set STF_PRNPLATFORM = "w32alpha"
  182.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  183.     else
  184.         goto end
  185.     endif
  186.     read-syms UiVars
  187.     detect    UiVars
  188.     read-syms Strings$(STF_LANGUAGE)
  189.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  190.         goto skip_asksource
  191.     endif
  192.     set STF_SRCDIR = A:\
  193.     shell "registry.inf" GetNTSource
  194.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  195.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  196.     else
  197.         set STF_SRCDIR = $($R1)
  198.     endif
  199.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  200.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  201.         Debug-Output "shelling DoAskSource failed"
  202.         goto end
  203.     endif
  204.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  205.         set STF_SRCDIR  = $($R1)
  206.         ifstr(i) $($R2) != ""
  207.             set DrivesToFree = >($(DrivesToFree), $($R2))
  208.         endif
  209.     else
  210.         goto end
  211.     endif
  212. skip_asksource = +
  213.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  214.     ifstr(i) $(IsFullPath) == "NO"
  215.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  216.         ifstr(i) $(STATUS) == "ERROR"
  217.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  218.             goto end
  219.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  220.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  221.             goto end
  222.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  223.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  224.             goto end
  225.         else
  226.             set STF_PRNDRIVERPATH = $(STATUS)
  227.         endif
  228.     endif
  229.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  230.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  231.         Debug-Output "Execing InstallOption failed"
  232.         goto end
  233.     endif
  234.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  235.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  236.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  237.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  238.     endif
  239. end =+
  240.     ForListDo $(DrivesToFree)
  241.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  242.     EndForListDo
  243.     install   FreeSetupLibrary
  244.     exit
  245. [LoadSetupLibrary]
  246.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  247.     exit
  248. [FreeSetupLibrary]
  249.     FreeLibrary $(!LIBHANDLE)
  250.     exit
  251. [PlatformID]
  252.     PlatformID_I386 = I386
  253.     PlatformID_Mips = Mips
  254.     PlatformID_Alpha  = Alpha
  255.     PlatformID_PPC  = ppc
  256. [UiVars]
  257.     STF_CONTROLSET     = CurrentControlSet
  258.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  259.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  260.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  261. [Source Media Descriptions]
  262.     1 = "EPSON Stylus Series Printer Driver Installation Disk" , TAGFILE = epson1.w
  263. [Signature]
  264.     FileType = MICROSOFT_FILE
  265. [GetSignature]
  266.     read-syms Signature
  267.     return $(FileType)
  268. [ProductType]
  269. STF_PRODUCT  = Winnt
  270. STF_PLATFORM = I386
  271. [Files-PrinterConfig]
  272. plotui = 1,PLOTUI.DLL , SIZE=999
  273. pscrptui = 1,PSCRPTUI.DLL , SIZE=999
  274. rasddui = 1,RASDDUI.DLL , SIZE=999
  275. [Files-PrinterData]
  276. escp2ms = 1,ESCP2MS.DLL , SIZE=999
  277. [Files-PrinterDriver]
  278. plotter = 1,PLOTTER.DLL , SIZE=999
  279. pscript = 1,PSCRIPT.DLL , SIZE=999
  280. rasdd = 1,RASDD.DLL , SIZE=999
  281. [Files-PrinterDriverCnt]
  282. plotter = 1,PLOTUI.CNT , SIZE=999
  283. pscript = 1,PSCRIPT.CNT , SIZE=999
  284. rasdd = 1,RASDDUI.CNT , SIZE=999
  285. [Files-PrinterDriverHelp]
  286. plotter = 1,PLOTUI.HLP , SIZE=999
  287. pscript = 1,PSCRIPT.HLP , SIZE=999
  288. rasdd = 1,RASDDUI.HLP , SIZE=999
  289. [LanguagesSupported]
  290.     ENG
  291. [OptionsTextENG]
  292. "Epson Stylus COLOR ESC/P 2"              = "Epson Stylus COLOR ESC/P 2"
  293. "Epson Stylus Pro ESC/P 2"                   = "Epson Stylus Pro ESC/P 2"
  294. "Epson Stylus Pro XL ESC/P 2"                = "Epson Stylus Pro XL ESC/P 2"
  295. [StringsENG]
  296.     String1 = "The printer model "
  297.     String2 = " is already installed."
  298.     String3 = "Failed to connect to the print server."
  299.     String4 = "The driver files for the printer model "
  300.     String5 = " couldn't be copied.  Failed to install the printer model."
  301.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  302.               "group to carry out this operation."
  303.     String7 = " could not be installed."
  304. [ProgressCopyENG]
  305.     ProCaption   = "Windows NT Setup"
  306.     ProCancel    = "Cancel"
  307.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  308.                    "to cancel copying files?"
  309.     ProCancelCap = "Setup Message"
  310.     ProText1     = "Copying:"
  311.     ProText2     = "To:"
  312.  
  313.