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

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