home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1998 September / VPR9809B.ISO / DRIVER / nec / pr700xh2 / pr700xh2.exe / WINNT35 / PRINTER.INF < prev   
INI File  |  1997-01-27  |  12KB  |  296 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4. "NEC PC-PR700XH"                                = rasdduij, pr700xh,  rasddj
  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 ConfigOption = #(Options, $(Option), 1)
  49.     set DataOption   = #(Options, $(Option), 2)
  50.     set DriverOption = #(Options, $(Option), 3)
  51. installtheoption = +
  52.     ifstr(i) $(AddCopy) == "YES"
  53.         install Install-AddCopyOption
  54.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  55.             Debug-Output "Adding video files to copy list failed"
  56.             goto finish_InstallOption
  57.         endif
  58.     endif
  59.     ifstr(i) $(DoCopy) == "YES"
  60.         read-syms ProgressCopy$($0)
  61.         install Install-DoCopyOption
  62.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  63.             Debug-Output "Copying files failed"
  64.             goto finish_InstallOption
  65.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  66.             set Status = STATUS_USERCANCEL
  67.             goto finish_InstallOption
  68.         endif
  69.     endif
  70.     ifstr(i) $(DoConfig) == "YES"
  71.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  72.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  73.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  74.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  75.         ifstr(i) $(STATUS) == YES
  76.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  77.             ifstr(i) $(STATUS) == YES
  78.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  79.             endif
  80.         endif
  81.         ifstr(i) $(STATUS) == NO
  82.             set OptionText = #(OptionsText$($0), $(Option), 1)
  83.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(String5)$(OptionText)$(String6)
  84.             Debug-Output "Copying printer files failed"
  85.             goto finish_InstallOption
  86.         endif
  87.         install Install-Configure
  88.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  89.             Debug-Output "Installing printer driver failed"
  90.             goto finish_InstallOption
  91.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  92.             set Status = STATUS_USERCANCEL
  93.             goto finish_InstallOption
  94.         endif
  95.         ifstr(i) $(STATUS) != "ADDED"
  96.             set OptionText = #(OptionsText$($0), $(Option), 1)
  97.             ifstr(i) $(STATUS) == "PRESENT"
  98.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  99.                 set Status = STATUS_SUCCESSFUL
  100.             else-ifstr(i) $(STATUS) == "DENIED"
  101.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  102.             else
  103.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  104.             endif
  105.             goto finish_InstallOption
  106.         endif
  107.     endif
  108.     set Status = STATUS_SUCCESSFUL
  109. finish_InstallOption = +
  110.     Return $(Status)
  111. [Install-AddCopyOption]
  112.     set STF_VITAL = ""
  113.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  114. ;    AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  115. ;                                  $(ConfigOption)              +
  116. ;                                  $(SrcDir)                    +
  117. ;                                  $(!STF_PRNDRIVERPATH)
  118.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  119.                                   $(DataOption)                +
  120.                                   $(SrcDir)                    +
  121.                                   $(!STF_PRNDRIVERPATH)
  122. ;    AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  123. ;                                  $(DriverOption)              +
  124. ;                                  $(SrcDir)                    +
  125. ;                                  $(!STF_PRNDRIVERPATH)
  126. ;    AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  127. ;                                  $(DriverOption)              +
  128. ;                                  $(SrcDir)                    +
  129. ;                                  $(!STF_PRNDRIVERPATH)
  130.     exit
  131. [Install-DoCopyOption]
  132.     CopyFilesInCopyList
  133.     exit
  134. [Install-Configure]
  135.     set Model       = $(Option)
  136.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  137.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  138.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  139.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  140.                                                $(Model)            +
  141.                                                $(!STF_PRNENVIRONM) +
  142.                                                $(Driver)           +
  143.                                                $(DataFile)         +
  144.                                                $(ConfigFile)       +
  145.                                                $(!STF_PRINTSERVER)
  146.     exit
  147. [ExternalInstallOption]
  148.     Set !G:DebugOutputControl = 0
  149.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  150.     set DrivesToFree = {}
  151.     install LoadSetupLibrary
  152.     ifstr(i)      $(STF_LANGUAGE)  == ""
  153.         goto end
  154.     else-ifstr(i) $(OPTION)        == ""
  155.         goto end
  156.     else-ifstr(i) $(ADDCOPY)       == ""
  157.         goto end
  158.     else-ifstr(i) $(DOCOPY)        == ""
  159.         goto end
  160.     else-ifstr(i) $(DOCONFIG)      == ""
  161.         goto end
  162.     endif
  163.     read-syms PlatformID
  164.     read-syms ProductType
  165.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  166.         set STF_PRNPLATFORM = "w32x86"
  167.         set STF_PRNENVIRONM = "Windows NT x86"
  168.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  169.         set STF_PRNPLATFORM = "w32mips"
  170.         set STF_PRNENVIRONM = "Windows NT R4000"
  171.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  172.         set STF_PRNPLATFORM = "w32alpha"
  173.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  174.     else
  175.         goto end
  176.     endif
  177.     read-syms UiVars
  178.     detect    UiVars
  179.     read-syms Strings$(STF_LANGUAGE)
  180.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  181.         goto skip_asksource
  182.     endif
  183.     set STF_SRCDIR = A:\
  184.     shell "registry.inf" GetNTSource
  185.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  186.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  187.     else
  188.         set STF_SRCDIR = $($R1)
  189.     endif
  190.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  191.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  192.         Debug-Output "shelling DoAskSource failed"
  193.         goto end
  194.     endif
  195.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  196.         set STF_SRCDIR  = $($R1)
  197.         ifstr(i) $($R2) != ""
  198.             set DrivesToFree = >($(DrivesToFree), $($R2))
  199.         endif
  200.     else
  201.         goto end
  202.     endif
  203. skip_asksource = +
  204.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  205.     ifstr(i) $(IsFullPath) == "NO"
  206.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  207.         ifstr(i) $(STATUS) == "ERROR"
  208.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  209.             goto end
  210.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  211.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  212.             goto end
  213.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  214.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  215.             goto end
  216.         else
  217.             set STF_PRNDRIVERPATH = $(STATUS)
  218.         endif
  219.     endif
  220.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  221.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  222.         Debug-Output "Execing InstallOption failed"
  223.         goto end
  224.     endif
  225.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  226.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  227.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  228.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  229.     endif
  230. end =+
  231.     ForListDo $(DrivesToFree)
  232.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  233.     EndForListDo
  234.     install   FreeSetupLibrary
  235.     exit
  236. [LoadSetupLibrary]
  237.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  238.     exit
  239. [FreeSetupLibrary]
  240.     FreeLibrary $(!LIBHANDLE)
  241.     exit
  242. [PlatformID]
  243.     PlatformID_I386 = I386
  244.     PlatformID_Mips = Mips
  245.     PlatformID_Alpha  = Alpha
  246. [UiVars]
  247.     STF_CONTROLSET     = CurrentControlSet
  248.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  249.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  250.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  251. [Source Media Descriptions]
  252.     1 = "Microsoft(R)WindowsNT(TM)対応PR700XHインストールディスク" , TAGFILE = disk28
  253.     2 = "Windows NT Workstation CD-ROM" , TAGFILE = disk0
  254. [Signature]
  255.     FileType = MICROSOFT_FILE
  256. [GetSignature]
  257.     read-syms Signature
  258.     return $(FileType)
  259. [ProductType]
  260. STF_PRODUCT  = LanmanNT
  261. STF_PLATFORM = I386
  262. [Files-PrinterConfig]
  263. rasdduij = 2,RASDDUIJ.DLL , SIZE=70656
  264. [Files-PrinterData]
  265. pr700xh = 1,PR700XH.DLL , SIZE=18432
  266. [Files-PrinterDriver]
  267. rasddj = 2,RASDDJ.DLL , SIZE=80896
  268. [Files-PrinterDriverHelp]
  269. rasddj = 2,RASDDUIJ.HLP , SIZE=34816
  270. [LanguagesSupported]
  271.     ENG
  272. [OptionsTextENG]
  273. "NEC PC-PR700XH"                                     = "NEC PC-PR700XH"
  274. [StringsENG]
  275.     String1 = "プリンタ "
  276.     String2 = " はすでに組み込まれています。"
  277.     String3 = "プリント サーバーへの接続に失敗しました。"
  278.     String4 = "Microsoft(R)WindowsNT(TM)Version3.5 媒体から"+
  279.               "「NEC PC-PR201」をインストールしてください。 "
  280.     String5 = "その後、再度"
  281.     String6 = "のインストールを行って下さい。"
  282.     String7 = "アクセスが拒否されました。この操作を行うには、管理者グループの"+
  283.               "メンバーとしてログオンしなければなりません。"
  284.     String8 = "を組み込むことができませんでした。"
  285. [ProgressCopyENG]
  286.     ProCaption   = "Windows NT セットアップ"
  287.     ProCancel    = "キャンセル"
  288.     ProCancelMsg = "Windows NT は正しく組み込まれていません。"+
  289.                    "ファイルのコピーを中止しますか?"
  290.     ProCancelCap = "セットアップ メッセージ"
  291.     ProText1     = "コピー元:"
  292.     ProText2     = "コピー先:"
  293.  
  294.  
  295.  
  296.