home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP Şubat 1998.iso / drivers / YAZICI / HP / LASERJET / MOPIER / WINNT4 / LJ141EN.EXE / DISK1 / PRINTER.INF < prev    next >
Encoding:
INI File  |  1996-09-09  |  12.7 KB  |  329 lines

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