home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 2001 January / CT_SW0101.ISO / mac / software / betrieb / sonstige / fpnt400.exe / MONITOR.INF < prev    next >
INI File  |  2001-02-26  |  10KB  |  258 lines

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