Path: news.mitre.org!blanket.mitre.org!philabs!newsjunkie.ans.net!newsfeeds.ans.net!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeed2.uk.ibm.net!ibm.net!newsgate.cistron.nl!het.net!gate.news.unisource.nl!sun4nl!193.78.240.11.MISMATCH!news.Amsterdam.NL.net!phcoms4.seri.philips.nl!news.best.ms.philips.com!news
From: "Tom Thornhill" <tthornhi@best.ms.philips.com-SPAM-ME-NOT>
Newsgroups: comp.os.ms-windows.programmer.nt.kernel-mode
Subject: Re: Installing A Driver
Date: 6 Jan 1998 11:52:06 GMT
Organization: Philips Medical Systems Best
Lines: 72
Message-ID: <01bd1a99$61630640$725e9082@mniw0055>
References: <884017235.19297.0.nnrp-09.9e983904@news.demon.co.uk>
NNTP-Posting-Host: mniw0055.ms.philips.nl
X-Newsreader: Microsoft Internet News 4.70.1155

Rob Hughes <gen@televirtual.co.uk> wrote in article
<884017235.19297.0.nnrp-09.9e983904@news.demon.co.uk>...
> Hi,
> 
> Firstly I hope that I have posted this question in the right place and
> please accept my appologies if it is not.
> 
> About six-months ago we had a contract-programmer in who developed a
> plaug-in which enabled simple parrallel port access.  This worked fine.
> However we now need to install this driver on another machine and can no
> longer contact him.  From its name I guess that it is  a variant on the
> genport example.  The only file we now have is the .sys file.  The driver
> works fine on the machine it was written on it and I am sure it is a simple
> process to get it running on another machine but I can not figure it out.  I
> have copied the file into the system32/drivers directory where it is stored
> on the machine which it works on.   Do I need to do something tro the
> registry?  Is there a general install program.  We still have access to the
> full ddk but not to his source code.  Any help ASAP would be much
> appreciated.
> 
> Many thanks and happy new year
> 
> Dr. Rob Hughes
> Televirtual
> 
> 
> 
> 

The convention is that drivers use the registry under 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DriverName

Where DriverName can be anything.

If all else fails you could export the registry entries under 
this key as a .REG file on one machine and import it on another. 
You'd probably need to reboot the target. I haven't actually
tried this.

I think you need the following as a minimum:

ImagePath="system32\drivers\DriverName.sys"
DisplayName="DriverName"
ErrorControl=1
Start=3
Type=1

and anything under the Parameters sub key.

This installs the driver as a manual start, so 
you'll need to use 

net start DriverName 

at a Dos prompt to start it.

Alternatively, OSR ( http://www.osr.com ) also do a driver install 
utility which you can download from their website. This uses the 
service control API under Win32 and has the advantage of not 
requiring a reboot. 

Finally the INSTDRV sample in the DDK shows you how to go about
writing a driver install utility.

Tom.

-- 
** Please email me a copy of anything you post ***
Mailto: tthornhi@best.ms.philips.com-nospam ( remove the -nospam before replying )
Talkto: Tom Thornhill, Philips Medical Systems Nederland BV
Tel +31 4027 64080 (Work), +31 499 338211 (Hotel - after 5pm UK time)