FaxMan Jr
Printer Driver - Installing Windows 95/98/ME

How to install the Windows 95/98/ME Printer drivers


1. Using the FaxInstall Utility


Because of the different methods and files required when installing the FaxMan printers drivers on different operating systems, we’ve included a printer driver installation utility called faxinstall.exe. It’s a Win32 console app that can be called from an installer or a batch file and will automatically copy the proper files and invoke the proper API functions when installing drivers on Windows 95, Windows 98, and Windows ME systems.


We recommend that you use the Faxinstall utility in your own application’s install eliminating the hassle of calling different APIs on each OS. To use it you need to copy all the files in the Printers directory into a directory in your install. This printers directory includes install files for Windows 95, Windows 98, ans Windows ME. In your install you can then call faxinstall as documented below and it will install the appropriate driver based on the OS it’s running on.


We’ve even included the C source code and Visual C++ 5.0 project in a zip file called printsrc.zip to allow you to modify the utility if you wish.


The syntax is:


faxinstall <PortName> <ApplicationPath> <PrinterDriverName> <PrinterFiles Path>



c:\tempdrv> faxinstall FaxDrv C:\progra~1\Myprogram\myprogram.exe "Fax Driver for MyProgram" c:\tempdrv >c:\tempdrv\result.txt 


The fourth parameter of .\. assumes that you have all the files from the FaxManJr\printers folder located in c:\tempdrv.

The > on the end will dump out the results to a text file.This could then be sent to you and forwarded on to support for problem solving if there were problems during the installation. Starting with version 1.51 this is not necessary, as the information is automatically dumped to the xinstall.log, which will be found in the same dir as Faxinstall.exe 


<PortName>ESSENTIAL! This is identical to the AppID for the FaxMan control in your project. Also check that the FaxMan control's visible property is set to TRUE. And check that a file name is supplied in the PrintStart event for the FaxMan control.


<ApplicationPath> is the path and name of the exe of your application that has FaxManJr in it. This is not necessarily the name of the application that will be printing.


<PrinterDriverName> is the name you wish to call the Driver, i.e. "Bobs Fax Driver" or whatever you want. Be sure to enclose the string in quotation marks if it has spaces. Note: Faxinstall’s programs parameters are space delimited.


<PrinterFilesPath> specifies the path of the printer driver files to be copied from (example c:\printers).Note: a trailing \ (c:\printers\) will cause a failure. 




2. FaxInstall’s Alternate Usage


FaxInstall accepts the fullpath filename of a configuration file as the only parameter. The file is in an "ini" format.


c:\tempdrv> faxinstall c:\tempdrv\my.ini


Here is an example configuration file:





PrinterName=FaxManJr VB6app

AppPath=C:\Program Files\FaxManJr\VBfmjr\VB6FaxJr.exe


PrinterFiles= C:\Program Files\FaxManJr \printers





This file will install a printer driver for use without a hook dll. The default

resolution for this printer driver will be high, and the default paper size

will be Letter.


Here are the possible parameters.


 limit 20 characters

 Must match AppId in application

 Default = "FaxDrv"


 limit 40 characters

 User friendly printer driver name

 Default = "Fax Driver"


 limit 255 characters

 full path name to application associated with driver

 No Default


 limit 50 characters

 Specify DLL name only and place DLL in path

 No Default


 limit 255 characters

 Path to the necessary printer files.

 Default = Directory Faxinstall.exe is run from.


 1 = Low

 2 = High, default


 1 = Letter, default

 2 = A4

 3 = Legal


 1 = Portrait, default

 2 = Landscape


 0 = Replace All files

 1 = Replace non-system files only, default

 2 = Replace no files only copy if files not present

 3 = Do not copy any files





© 2014 Data Techniques, Inc. All Rights Reserved.

Send comments on this topic.