home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 November / Chip_2004-11_cd1.bin / tema / fax / download / ventafax5 / vfvh5519i.exe / RCDATA / CABINET / Monitor.inf < prev    next >
INI File  |  2003-05-23  |  12KB  |  332 lines

  1. [Identification]
  2.     OptionType = MONITOR
  3. [Options]
  4.  
  5. ;********************************************************************
  6. ; VENTAFAX ADDITION TO MONITOR.INF START
  7. ;----------------------------------------------------------------****
  8. "VentaFax Port"                                = ventmon
  9. ;----------------------------------------------------------------****
  10. ; VENTAFAX ADDITION TO MONITOR.INF END
  11. ;********************************************************************
  12.  
  13. [Identify]
  14.     read-syms Identification
  15.     set Status     = STATUS_SUCCESSFUL
  16.     set Identifier = $(OptionType)
  17.     set Media      = #("Source Media Descriptions", 1, 1)
  18.     Return $(Status) $(Identifier) $(Media)
  19. [ReturnOptions]
  20.     set Status        = STATUS_FAILED
  21.     set OptionList     = {}
  22.     set OptionTextList = {}
  23.     set LanguageList = ^(LanguagesSupported, 1)
  24.     Ifcontains(i) $($0) in $(LanguageList)
  25.         goto returnoptions
  26.     else
  27.         set Status = STATUS_NOLANGUAGE
  28.         goto finish_ReturnOptions
  29.     endif
  30. returnoptions = +
  31.     set OptionList     = ^(Options, 0)
  32.     set OptionTextList = ^(OptionsText$($0), 1)
  33.     set Status         = STATUS_SUCCESSFUL
  34. finish_ReturnOptions = +
  35.     Return $(Status) $(OptionList) $(OptionTextList)
  36. [InstallOption]
  37.     set Status   = STATUS_FAILED
  38.     set Option   = $($1)
  39.     set SrcDir   = $($2)
  40.     set AddCopy  = $($3)
  41.     set DoCopy   = $($4)
  42.     set DoConfig = $($5)
  43.     set LanguageList = ^(LanguagesSupported, 1)
  44.     Ifcontains(i) $($0) in $(LanguageList)
  45.     else
  46.         set Status = STATUS_NOLANGUAGE
  47.         goto finish_InstallOption
  48.     endif
  49.     read-syms Strings$($0)
  50.     set OptionList = ^(Options, 0)
  51.     ifcontains $(Option) in $(OptionList)
  52.     else
  53.         goto finish_InstallOption
  54.     endif
  55.     set OptionList = ""
  56.     set MonitorOption = #(Options, $(Option), 1)
  57.  
  58. ;********************************************************************
  59. ; VENTAFAX ADDITION TO MONITOR.INF START
  60. ;----------------------------------------------------------------****
  61.     ifstr(i) $(MonitorOption) == "ventmon"
  62.     endif
  63. ;----------------------------------------------------------------****
  64. ; VENTAFAX ADDITION TO MONITOR.INF END
  65. ;********************************************************************
  66.  
  67. installtheoption = +
  68.     ifstr(i) $(AddCopy) == "YES"
  69.         install Install-AddCopyOption
  70.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  71.             Debug-Output "Adding video files to copy list failed"
  72.             goto finish_InstallOption
  73.         endif
  74.     endif
  75.     ifstr(i) $(DoCopy) == "YES"
  76.         read-syms ProgressCopy$($0)
  77.         install Install-DoCopyOption
  78.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  79.             Debug-Output "Copying files 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.     endif
  86.     ifstr(i) $(DoConfig) == "YES"
  87.         set MonitorPath      = $(!STF_PRNMONITORPATH)"\"#(Files-PrinterMonitor, $(MonitorOption), 2)
  88.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(MonitorPath)
  89.         ifstr(i) $(STATUS) == NO
  90.             set OptionText = #(OptionsText$($0), $(Option), 1)
  91.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  92.             Debug-Output "Copying printer files failed"
  93.             goto finish_InstallOption
  94.         endif
  95.         install Install-Configure
  96.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  97.             Debug-Output "Installing printer monitor failed"
  98.             goto finish_InstallOption
  99.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  100.             set Status = STATUS_USERCANCEL
  101.             goto finish_InstallOption
  102.         endif
  103.       ;  ifstr(i) $(STATUS) != "ADDED"
  104.       ;      set OptionText = #(OptionsText$($0), $(Option), 1)
  105.       ;      ifstr(i) $(STATUS) == "PRESENT"
  106.       ;          shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  107.       ;          set Status = STATUS_SUCCESSFUL
  108.       ;      else-ifstr(i) $(STATUS) == "DENIED"
  109.       ;          shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  110.       ;      else
  111.       ;          shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  112.       ;      endif
  113.       ;      goto finish_InstallOption
  114.       ;  endif
  115.     endif
  116.     set Status = STATUS_SUCCESSFUL
  117. finish_InstallOption = +
  118.     Return $(Status)
  119. [Install-AddCopyOption]
  120.     set STF_VITAL = ""
  121.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  122.     AddSectionKeyFileToCopyList   Files-PrinterMonitor          +
  123.                                   $(MonitorOption)              +
  124.                                   $(SrcDir)                    +
  125.                                   $(!STF_PRNMONITORPATH)
  126.  
  127.  
  128.     set SectionName = Files-PrinterMonitorCnt
  129.     set KeyList = ^( $(SectionName), 1 )
  130.     ifcontains(i) $(MonitorOption) in $(KeyList)
  131.         AddSectionKeyFileToCopyList   $(SectionName)         +
  132.                                       $(MonitorOption)       +
  133.                                       $(SrcDir)              +
  134.                                       $(!STF_PRNMONITORPATH)
  135.     endif
  136.     set SectionName = Files-PrinterMonitorFts
  137.     set KeyList = ^( $(SectionName), 1 )
  138.     ifcontains(i) $(MonitorOption) in $(KeyList)
  139.         AddSectionKeyFileToCopyList   $(KeyList)             +
  140.                                       $(MonitorOption)       +
  141.                                       $(SrcDir)              +
  142.                                       $(!STF_PRNMONITORPATH)
  143.     endif
  144.  
  145.  
  146.     exit
  147. [Install-DoCopyOption]
  148.     CopyFilesInCopyList
  149.     exit
  150. [Install-Configure]
  151.  
  152.     set Model       = $(Option)
  153.     set Monitor      = #(Files-PrinterMonitor, $(MonitorOption), 2)
  154.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterMonitor   +
  155.                                                $(Model)            +
  156.                                                $(!STF_PRNENVIRONM) +
  157.                                                $(Monitor)           +
  158.                                                $(!STF_PRINTSERVER)
  159.  
  160.     exit
  161.  
  162. [ExternalInstallOption]
  163.     Set !G:DebugOutputControl = 1
  164.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  165.     set DrivesToFree = {}
  166.     install LoadSetupLibrary
  167.     ifstr(i)      $(STF_LANGUAGE)  == ""
  168.         goto end
  169.     else-ifstr(i) $(OPTION)        == ""
  170.         goto end
  171.     else-ifstr(i) $(ADDCOPY)       == ""
  172.         goto end
  173.     else-ifstr(i) $(DOCOPY)        == ""
  174.         goto end
  175.     else-ifstr(i) $(DOCONFIG)      == ""
  176.         goto end
  177.     endif
  178.     read-syms PlatformID
  179.     read-syms ProductType
  180.  
  181.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  182.         set STF_PRNPLATFORM = "w32x86"
  183.         set STF_PRNENVIRONM = "Windows NT x86"
  184.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  185.         set STF_PRNPLATFORM = "w32mips"
  186.         set STF_PRNENVIRONM = "Windows NT R4000"
  187.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_PPC)
  188.         set STF_PRNPLATFORM = "w32ppc"
  189.         set STF_PRNENVIRONM = "Windows NT PowerPC"
  190.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  191.         set STF_PRNPLATFORM = "w32alpha"
  192.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  193.     else
  194.         goto end
  195.     endif
  196.     read-syms UiVars
  197.     detect    UiVars
  198.     read-syms Strings$(STF_LANGUAGE)
  199.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  200.         goto skip_asksource
  201.     endif
  202.  
  203.     set STF_SRCDIR = A:\
  204.     shell "registry.inf" GetNTSource
  205.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  207.     else
  208.         set STF_SRCDIR = $($R1)
  209.     endif
  210.  
  211.  
  212.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  213.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  214.         Debug-Output "shelling DoAskSource failed"
  215.         goto end
  216.     endif
  217.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  218.         set STF_SRCDIR  = $($R1)
  219.         ifstr(i) $($R2) != ""
  220.             set DrivesToFree = >($(DrivesToFree), $($R2))
  221.         endif
  222.     else
  223.         goto end
  224.     endif
  225.  
  226. skip_asksource = +
  227.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNMONITORPATH)
  228.     ifstr(i) $(IsFullPath) == "NO"
  229.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNMONITORPATH)
  230.         ifstr(i) $(STATUS) == "ERROR"
  231.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  232.             goto end
  233.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  234.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  235.             goto end
  236.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  237.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  238.             goto end
  239.         else
  240.             set STF_PRNMONITORPATH = $(STATUS)
  241.         endif
  242.     endif
  243.  
  244.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  245.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  246.         Debug-Output "Execing InstallOption failed"
  247.         goto end
  248.     endif
  249.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  250.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  251.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  252.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  253.     endif
  254. end =+
  255.     ForListDo $(DrivesToFree)
  256.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  257.     EndForListDo
  258.     install   FreeSetupLibrary
  259.     exit
  260. [LoadSetupLibrary]
  261.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  262.     exit
  263. [FreeSetupLibrary]
  264.     FreeLibrary $(!LIBHANDLE)
  265.     exit
  266. [PlatformID]
  267.     PlatformID_PPC = ppc
  268.     PlatformID_I386 = I386
  269.     PlatformID_Mips = Mips
  270.     PlatformID_Alpha  = Alpha
  271. [UiVars]
  272.     STF_CONTROLSET     = CurrentControlSet
  273.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  274.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  275.     STF_PRNMONITORPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  276.  
  277.  
  278. [Source Media Descriptions]
  279.     1 = "Windows NT Server CD-ROM", TAGFILE = cdrom.s
  280. ;    4 = %Floppy%,,,""
  281. [Signature]
  282.     FileType = MICROSOFT_FILE
  283. [GetSignature]
  284.     read-syms Signature
  285.     return $(FileType)
  286. [ProductType]
  287. STF_PRODUCT  = LanmanNT
  288. STF_PLATFORM = I386
  289. [Files-PrinterMonitor]
  290. ventmon = 1,VENTMON.DLL , SIZE=999
  291.  
  292.  
  293. [Files-PrinterMonitorCnt]
  294. localmon = 1,PRINTMAN.CNT , SIZE=999
  295. [Files-PrinterMonitorFts]
  296. localmon = 1,PRINTMAN.FTS , SIZE=999
  297. [Files-PrinterMonitorHelp]
  298. decpsmon = 1,DECPSMON.HLP , SIZE=999
  299. hpmon = 1,HPMON.HLP , SIZE=999
  300. localmon = 1,PRINTMAN.HLP , SIZE=999
  301.  
  302. [LanguagesSupported]
  303.     ENG
  304.  
  305. [OptionsTextENG]
  306.  
  307. ;********************************************************************
  308. ; VENTAFAX ADDITION TO MONITOR.INF START
  309. ;----------------------------------------------------------------****
  310. "VentaFax Port"                         = "VentaFax Port"
  311. ;----------------------------------------------------------------****
  312. ; VENTAFAX ADDITION TO MONITOR.INF END
  313. ;********************************************************************
  314.  
  315. [StringsENG]
  316.     String1 = "The monitor "
  317.     String2 = " is already installed."
  318.     String3 = "Failed to connect to the print server."
  319.     String4 = "The monitor files for the selected monitor "
  320.     String5 = " couldn't be copied.  Failed to install the monitor."
  321.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  322.               "group to carry out this operation."
  323.     String7 = " could not be installed."
  324. [ProgressCopyENG]
  325.     ProCaption   = "Windows NT Setup"
  326.     ProCancel    = "Cancel"
  327.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  328.                    "to cancel copying files?"
  329.     ProCancelCap = "Setup Message"
  330.     ProText1     = "Copying:"
  331.     ProText2     = "To:"
  332.