home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland Programmer's Resource
/
Borland_Programmers_Resource_CD_1995.iso
/
utils
/
tcfax
/
printer.inf
< prev
next >
Wrap
INI File
|
1995-05-18
|
12KB
|
379 lines
[Identification]
OptionType = PRINTER
[LanguagesSupported]
ENG
[Options]
"Telcom FAX Print-to-FAX" = ptfui, ptfdata, ptf
[OptionsTextENG]
"Telcom FAX Print-to-FAX" = "Telcom FAX Print-to-FAX"
[StringsENG]
String1 = "The printer model '"
String2 = "' is already installed."
String3 = "Failed to connect to the print server."
String4 = "The driver files for the printer model "
String5 = " couldn't be copied. Failed to install the printer model."
String6 = "Access is denied. You must be logged on as a member of the Administrators "+
"group to carry out this operation."
String7 = " could not be installed."
[Identify]
Set !G:DebugOutputControl = 1
Debug-Output "Identify - called"
read-syms Identification
set Status = STATUS_SUCCESSFUL
set Identifier = $(OptionType)
set Media = #("Source Media Descriptions", 1, 1)
Return $(Status) $(Identifier) $(Media)
[ReturnOptions]
Set !G:DebugOutputControl = 1
Debug-Output "ReturnOptions - called"
set Status = STATUS_FAILED
set OptionList = {}
set OptionTextList = {}
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_ReturnOptions
endif
set OptionList = ^(Options, 0)
set OptionTextList = ^(OptionsText$($0), 1)
set Status = STATUS_SUCCESSFUL
finish_ReturnOptions = +
Return $(Status) $(OptionList) $(OptionTextList)
[InstallOption]
Set !G:DebugOutputControl = 1
Debug-Output "InstallOption - called"
set Status = STATUS_FAILED
set Option = $($1)
set SrcDir = $($2)
set AddCopy = $($3)
set DoCopy = $($4)
set DoConfig = $($5)
set LanguageList = ^(LanguagesSupported, 1)
Ifcontains(i) $($0) in $(LanguageList)
else
set Status = STATUS_NOLANGUAGE
goto finish_InstallOption
endif
read-syms Strings$($0)
set OptionList = ^(Options, 0)
ifcontains $(Option) in $(OptionList)
else
goto finish_InstallOption
endif
set OptionList = ""
set ConfigOption = #(Options, $(Option), 1)
set DataOption = #(Options, $(Option), 2)
set DriverOption = #(Options, $(Option), 3)
installtheoption = +
ifstr(i) $(AddCopy) == "YES"
install Install-AddCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
Debug-Output "Adding printer files to copy list failed"
goto finish_InstallOption
endif
endif
ifstr(i) $(DoCopy) == "YES"
read-syms ProgressCopy$($0)
install Install-DoCopyOption
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "Copying files failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
endif
ifstr(i) $(DoConfig) == "YES"
Set !G:DebugOutputControl = 1
Debug-Output "InstallOption - setting up for Install-Configure"
set DriverPath = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
set DataFilePath = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData, $(DataOption), 2)
set ConfigFilePath = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
ifstr(i) $(STATUS) == YES
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
ifstr(i) $(STATUS) == YES
LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
endif
endif
ifstr(i) $(STATUS) == NO
set OptionText = #(OptionsText$($0), $(Option), 1)
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
Debug-Output "Copying printer files failed"
goto finish_InstallOption
endif
install Install-Configure
Debug-Output "InstallOption - back from Install-Configure"
ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
Debug-Output "InstallOption - installing printer driver failed"
goto finish_InstallOption
else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
set Status = STATUS_USERCANCEL
goto finish_InstallOption
endif
ifstr(i) $(STATUS) != "ADDED"
Debug-Output "InstallOption - status is not ADDED"
set OptionText = #(OptionsText$($0), $(Option), 1)
ifstr(i) $(STATUS) == "PRESENT"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
else-ifstr(i) $(STATUS) == "DENIED"
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
else
shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
endif
goto finish_InstallOption
endif
endif
set Status = STATUS_SUCCESSFUL
finish_InstallOption = +
Return $(Status)
[Install-AddCopyOption]
Set !G:DebugOutputControl = 1
Debug-Output "AddCopyOption - called"
set STF_VITAL = ""
set STF_OVERWRITE = "VERIFYSOURCEOLDER"
AddSectionKeyFileToCopyList Files-PrinterConfig +
$(ConfigOption) +
$(SrcDir) +
$(!STF_PRNDRIVERPATH)
AddSectionKeyFileToCopyList Files-PrinterData +
$(DataOption) +
$(SrcDir) +
$(!STF_PRNDRIVERPATH)
AddSectionKeyFileToCopyList Files-PrinterDriver +
$(DriverOption) +
$(SrcDir) +
$(!STF_PRNDRIVERPATH)
exit
[Install-DoCopyOption]
Set !G:DebugOutputControl = 1
Debug-Output "CoCopyOption - called"
CopyFilesInCopyList
exit
[Install-Configure]
Set !G:DebugOutputControl = 1
Debug-Output "InstallConfigure - called"
set Model = $(Option)
ifstr(i) $(!STF_PRNPLATFORM) == "w32x86"
set Environment = "Windows NT x86"
else-ifstr(i) $(!STF_PRNPLATFORM) == "w32mips"
set Environment = "Windows NT R4000"
else
set Environment = ""
endif
set Driver = #(Files-PrinterDriver, $(DriverOption), 2)
set DataFile = #(Files-PrinterData, $(DataOption), 2)
set ConfigFile = #(Files-PrinterConfig, $(ConfigOption), 2)
LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver +
$(Model) +
$(Environment) +
$(Driver) +
$(DataFile) +
$(ConfigFile) +
$(!STF_PRINTSERVER)
exit
[ProgressCopyENG]
ProCaption = "Windows NT Setup"
ProCancel = "Cancel"
ProCancelMsg = "Windows NT is not correcly installed. Are you sure you want "+
"to cancel copying files?"
ProCancelCap = "Setup Message"
ProText1 = "Copying:"
ProText2 = "To:"
[ExternalInstallOption]
Set !G:DebugOutputControl = 1
Debug-Output "ExternalInstallOption - called"
set Exit_Code = $(!SETUP_ERROR_GENERAL)
set DrivesToFree = {}
install LoadSetupLibrary
Debug-Output "ExternalInstallOption - checking global variables"
ifstr(i) $(STF_LANGUAGE) == ""
goto end
else-ifstr(i) $(OPTION) == ""
goto end
else-ifstr(i) $(ADDCOPY) == ""
goto end
else-ifstr(i) $(DOCOPY) == ""
goto end
else-ifstr(i) $(DOCONFIG) == ""
goto end
else-ifstr(i) $(!STF_SRCDIR) == ""
goto end
endif
Debug-Output "ExternalInstallOption - reading &detecting symbols"
read-syms UiVars
detect UiVars
read-syms ProductType
read-syms Strings$(STF_LANGUAGE)
ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
set STF_PRNPLATFORM = "w32x86"
else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
set STF_PRNPLATFORM = "w32mips"
else
goto end
endif
; set STF_PRNDRIVERPATH = $(!STF_SRCDIR)
LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
ifstr(i) $(IsFullPath) == "NO"
Debug-Output "ExternalInstallOption - IsFullPath == 'NO'"
LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
ifstr(i) $(STATUS) == "ERROR"
shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
goto end
else-ifstr(i) $(STATUS) == "NOT-UNC"
shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
goto end
else-ifstr(i) $(STATUS) == "UNC-NOFREEDRIVE"
shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
goto end
else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
shell "" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
goto end
else
set STF_PRNDRIVERPATH = $(STATUS)
GetDriveInPath Drive $(STF_PRNDRIVERPATH)
set DrivesToFree = >($(DrivesToFree), $(Drive))
endif
endif
Debug-Output "ExternalInstallOption - shelling InstallOption"
shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
ifint $($ShellCode) != $(!SHELL_CODE_OK)
Debug-Output "Execing InstallOption failed"
goto end
endif
ifstr(i) $($R0) == STATUS_SUCCESSFUL
set Exit_Code = $(!SETUP_ERROR_SUCCESS)
else-ifstr(i) $($R0) == STATUS_USERCANCEL
set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
endif
end =+
ForListDo $(DrivesToFree)
LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
EndForListDo
install FreeSetupLibrary
exit
; end [ExternalInstallOption]
[LoadSetupLibrary]
Set !G:DebugOutputControl = 1
Debug-Output "LoadSetupLibrary - called"
LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
exit
[FreeSetupLibrary]
Set !G:DebugOutputControl = 1
Debug-Output "FreeSetupLibrary - called"
FreeLibrary $(!LIBHANDLE)
exit
[UiVars]
PlatformID_I386 = I386
PlatformID_Mips = Mips
STF_CONTROLSET = CurrentControlSet
STF_WINDOWSPATH = "" ? $(!LIBHANDLE) GetWindowsNtDir
STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
STF_PRNDRIVERPATH = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER)
[Source Media Descriptions]
1 = "Telcom installation disk #1", TAGFILE = disk1
[ProductType]
STF_PRODUCT = Winnt
STF_PLATFORM = I386
[Files-PrinterConfig]
ptfui = 1, ptfui.dll, SIZE=999
[Files-PrinterData]
ptfdata = 1, ptf.dat, SIZE=999
[Files-PrinterDriver]
ptf = 1, ptf.dll, SIZE=999