home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1996 February / VPR9602A.ISO / drvlib / printer / mips / hpcljmip / printer.inf < prev    next >
INI File  |  1995-10-27  |  14KB  |  324 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4.  
  5. "HP Color LaserJet"                                = rasddui,  hppcl5ms,  rasdd
  6.  
  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.     exit
  133. [Install-DoCopyOption]
  134.     CopyFilesInCopyList
  135.     exit
  136. [Install-Configure]
  137.     set Model       = $(Option)
  138.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  139.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  140.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  141.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  142.                                                $(Model)            +
  143.                                                $(!STF_PRNENVIRONM) +
  144.                                                $(Driver)           +
  145.                                                $(DataFile)         +
  146.                                                $(ConfigFile)       +
  147.                                                $(!STF_PRINTSERVER)
  148.     exit
  149. [ExternalInstallOption]
  150.     Set !G:DebugOutputControl = 0
  151.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  152.     set DrivesToFree = {}
  153.     install LoadSetupLibrary
  154.     ifstr(i)      $(STF_LANGUAGE)  == ""
  155.         goto end
  156.     else-ifstr(i) $(OPTION)        == ""
  157.         goto end
  158.     else-ifstr(i) $(ADDCOPY)       == ""
  159.         goto end
  160.     else-ifstr(i) $(DOCOPY)        == ""
  161.         goto end
  162.     else-ifstr(i) $(DOCONFIG)      == ""
  163.         goto end
  164.     endif
  165.     read-syms PlatformID
  166.     read-syms ProductType
  167.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  168.         set STF_PRNPLATFORM = "w32x86"
  169.         set STF_PRNENVIRONM = "Windows NT x86"
  170.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  171.         set STF_PRNPLATFORM = "w32mips"
  172.         set STF_PRNENVIRONM = "Windows NT R4000"
  173.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  174.         set STF_PRNPLATFORM = "w32alpha"
  175.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  176.     else
  177.         goto end
  178.     endif
  179.     read-syms UiVars
  180.     detect    UiVars
  181.     read-syms Strings$(STF_LANGUAGE)
  182.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  183.         goto skip_asksource
  184.     endif
  185.     set STF_SRCDIR = A:\
  186.     shell "registry.inf" GetNTSource
  187.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  188.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  189.     else
  190.         set STF_SRCDIR = $($R1)
  191.     endif
  192.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  193.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194.         Debug-Output "shelling DoAskSource failed"
  195.         goto end
  196.     endif
  197.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  198.         set STF_SRCDIR  = $($R1)
  199.         ifstr(i) $($R2) != ""
  200.             set DrivesToFree = >($(DrivesToFree), $($R2))
  201.         endif
  202.     else
  203.         goto end
  204.     endif
  205. skip_asksource = +
  206.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  207.     ifstr(i) $(IsFullPath) == "NO"
  208.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  209.         ifstr(i) $(STATUS) == "ERROR"
  210.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  211.             goto end
  212.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  213.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  214.             goto end
  215.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  216.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  217.             goto end
  218.         else
  219.             set STF_PRNDRIVERPATH = $(STATUS)
  220.         endif
  221.     endif
  222.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  223.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  224.         Debug-Output "Execing InstallOption failed"
  225.         goto end
  226.     endif
  227.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  228.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  229.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  230.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  231.     endif
  232. end =+
  233.     ForListDo $(DrivesToFree)
  234.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  235.     EndForListDo
  236.     install   FreeSetupLibrary
  237.     exit
  238. [LoadSetupLibrary]
  239.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  240.     exit
  241. [FreeSetupLibrary]
  242.     FreeLibrary $(!LIBHANDLE)
  243.     exit
  244. [PlatformID]
  245.     PlatformID_I386 = I386
  246.     PlatformID_Mips = Mips
  247.     PlatformID_Alpha  = Alpha
  248. [UiVars]
  249.     STF_CONTROLSET     = CurrentControlSet
  250.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  251.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  252.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  253. [Source Media Descriptions]
  254.      1 = "Windows NT Workstation CD-ROM or Setup Disk #4" , TAGFILE = disk1.w
  255.      2 = "Windows NT Workstation CD-ROM or Setup Disk #5" , TAGFILE = disk2.w
  256.      3 = "Windows NT Workstation CD-ROM or Setup Disk #6" , TAGFILE = disk3.w
  257.      4 = "Windows NT Workstation CD-ROM or Setup Disk #7" , TAGFILE = disk4.w
  258.      5 = "Windows NT Workstation CD-ROM or Setup Disk #8" , TAGFILE = disk5.w
  259.      6 = "Windows NT Workstation CD-ROM or Setup Disk #9" , TAGFILE = disk6.w
  260.      7 = "Windows NT Workstation CD-ROM or Setup Disk #10", TAGFILE = disk7.w
  261.      8 = "Windows NT Workstation CD-ROM or Setup Disk #11", TAGFILE = disk8.w
  262.      9 = "Windows NT Workstation CD-ROM or Setup Disk #12", TAGFILE = disk9.w
  263.     10 = "Windows NT Workstation CD-ROM or Setup Disk #13", TAGFILE = disk10.w
  264.     11 = "Windows NT Workstation CD-ROM or Setup Disk #14", TAGFILE = disk11.w
  265.     12 = "Windows NT Workstation CD-ROM or Setup Disk #15", TAGFILE = disk12.w
  266.     13 = "Windows NT Workstation CD-ROM or Setup Disk #16", TAGFILE = disk13.w
  267.     14 = "Windows NT Workstation CD-ROM or Setup Disk #17", TAGFILE = disk14.w
  268.     15 = "Windows NT Workstation CD-ROM or Setup Disk #18", TAGFILE = disk15.w
  269.     16 = "Windows NT Workstation CD-ROM or Setup Disk #19", TAGFILE = disk16.w
  270.     17 = "Windows NT Workstation CD-ROM or Setup Disk #20", TAGFILE = disk17.w
  271.     18 = "Windows NT Workstation CD-ROM or Setup Disk #21", TAGFILE = disk18.w
  272.     19 = "Windows NT Workstation CD-ROM or Setup Disk #22", TAGFILE = disk19.w
  273.     20 = "Windows NT Workstation CD-ROM or Setup Disk #23", TAGFILE = disk20.w
  274.     21 = "Windows NT Workstation CD-ROM or Setup Disk #24", TAGFILE = disk21.w
  275.     22 = "Windows NT Workstation CD-ROM or Setup Disk #25", TAGFILE = disk22.w
  276.     23 = "Windows NT Workstation CD-ROM or Setup Disk #26", TAGFILE = disk23.w
  277.     24 = "Windows NT Workstation CD-ROM or Setup Disk #27", TAGFILE = disk24.w
  278.     25 = "Windows NT Workstation CD-ROM or Setup Disk #28", TAGFILE = disk25.w
  279.     26 = "Windows NT Workstation CD-ROM or Setup Disk #29", TAGFILE = disk26.w
  280.     27 = "Windows NT Workstation CD-ROM or Setup Disk #30", TAGFILE = disk27.w
  281.     28 = "Windows NT Workstation CD-ROM or Setup Disk #31", TAGFILE = disk28.w
  282.     29 = "Windows NT Workstation CD-ROM or Setup Disk #32", TAGFILE = disk29.w
  283.     30 = "Windows NT Workstation CD-ROM or Setup Disk #33", TAGFILE = disk30.w
  284. [Signature]
  285.     FileType = MICROSOFT_FILE
  286. [GetSignature]
  287.     read-syms Signature
  288.     return $(FileType)
  289. [ProductType]
  290. STF_PRODUCT  = Winnt
  291. STF_PLATFORM = Mips
  292. [Files-PrinterConfig]
  293. rasddui = 14,RASDDUI.DLL , SIZE=99999
  294. [Files-PrinterData]
  295. hppcl5ms = 13,HPPCL5MS.DLL , SIZE=99999
  296. [Files-PrinterDriver]
  297. rasdd = 13,RASDD.DLL , SIZE=99999
  298. [Files-PrinterDriverHelp]
  299. rasdd = 16,RASDDUI.HLP , SIZE=99999
  300. [LanguagesSupported]
  301.     ENG
  302. [OptionsTextENG]
  303. "HP Color LaserJet"                                = "HP Color LaserJet"
  304. [StringsENG]
  305.     String1 = "The printer model "
  306.     String2 = " is already installed."
  307.     String3 = "Failed to connect to the print server."
  308.     String4 = "The driver files for the printer model "
  309.     String5 = " couldn't be copied.  Failed to install the printer model."
  310.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  311.               "group to carry out this operation."
  312.     String7 = " could not be installed."
  313. [ProgressCopyENG]
  314.     ProCaption   = "Windows NT Setup"
  315.     ProCancel    = "Cancel"
  316.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  317.                    "to cancel copying files?"
  318.     ProCancelCap = "Setup Message"
  319.     ProText1     = "Copying:"
  320.     ProText2     = "To:"
  321.  
  322.  
  323.  
  324.