Jump to content

adding printer ports?


moeti

Recommended Posts

hi :hello:

im installing several printers during RunOnceEx.

im setting all of them to port LPT1, so i can manually adjust them later to the printserver they are using later on.

this is no problem, im using this code:

[...]
ECHO Kyocera Mita FS-1020D KX ...
ECHO.
start /wait RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /b "Kyocera Mita FS-1020D KX" /f "C:\apps\treiber\fs1020d\oemsetup.inf" /r "LPT1:" /m "Kyocera Mita FS-1020D KX" /q /u
ECHO.
[...]

problem is:

i also have to install a fax-printer for lotus notes.

printer itself isnt a problemn, i just use the code from above (i have an *.inf for the printer).

but it uses a special port called "NDFAX3" (ND Faxport V3).

i also have an *.inf for that port, but i dont know how to install it automatically

so my question is:

is there a *.dll or something similar like printui.dll for printerports?

or any other ideas how to realize this?

thx :)

moeTi

Link to comment
Share on other sites


If they are using a printserver, why are you installing the drivers at all? When Windows clients connect to a Windows printserver they automatically download the driver from the server and there is no need for admin rights to do this.

Jim

Link to comment
Share on other sites

@moeti:

You can add your port INF directly to the Windows installation by following these steps (replace YOUR.INF with the actual file name where applicable):

  • Add this line to DOSNET.INF in I386 under the [Files] section:
    d1,YOUR.INF


  • Decompress SYSOC.IN_ in I386 and add this line under [Components]:
    YOUR=ocgen.dll,OcEntry,YOUR.INF,HIDE,7

    Recompress the SYSOC.INF with jcarle's Compression Bin and replace in I386.

  • Add this line to TXTSETUP.SIF in I386 under [sourceDisksFiles]:
    YOUR.INF = 100,,,,,,,20,0,0


  • Compress YOUR.INF with jcarle's Compression Bin and put the compressed file in I386

Forgot to mention, if there are files listed in YOUR.INF under [sourceDisksFiles] then they need to be added to DOSNET.INF and TXTSETUP.SIF using the same syntax as shown above, then compressed and added to I386 too. If this is the case, post your INF for specific syntax in TXTSETUP.SIF.

@jondercik:

Your suggestion won't work with slimline hardware-based printservers like my HP JetDirect 170X. They have no dedicated storage to hold drivers.

Edited by 5eraph
Link to comment
Share on other sites

  • 2 weeks later...

hey there.

sorry, had no time yet to test it.

i just looked at my *.inf again and wanted to try the installation as posted above.

thats my inf:

monitorxp.inf

; monitor.inf
;
; Installation inf for printer port monitor
;
; (c) Copyright 2001 DDK Example for print monitor installation
;

[Version]
Signature="$Windows NT$"
Provider=%PMProducer%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer

[PortMonitors]
"ND Client Fax Port XP" = ndportmon

[ndportmon]
CopyFiles=@ndmon3.dll
PortMonitorDll=ndmon3.dll

[SourceDisksFiles]
ndmon3.dll=1,,


[SourceDisksNames]
1="ND Client Fax Port Installation Disk",,,

[Strings]
PMProducer="Notes Development"

so, 5eraph stated i had to add the files listed under [sourceDisksFiles], too.

so what do i hjave to do now?

i add my monitorxp.inf with the code form 5eraph, replacing YOUR.inf with monitorxp.inf.

and then i do the same with ndmon3.dll or what?

im not quite sure about the [sourceDisksFiles]-part

Link to comment
Share on other sites

Make these additional edits and you should be all set. :)

  • Add this line to DOSNET.INF in I386 under the [Files] section:
    d1,ndmon3.dll


  • Add this line to TXTSETUP.SIF in I386 under [sourceDisksFiles]:
    ndmon3.dll = 100,,,,,,,2,0,0


  • Compress ndmon3.dll with jcarle's Compression Bin and put the compressed file in I386.

Edited by 5eraph
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...