Annotation of ntddk/src/setup/inf/printer/oemsetup.inf, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.