Quite true. An important, not really obvious and incredibly irritating if
not followed feature of the sc command line is having the EXACT spacing that
Tim below showed.
That is:
This: sc create mydriver type= kernel start= demand binPath=
system32\drivers\mydriver.sys
But NOT: sc create mydriver type=kernel start=demand
binPath=system32\drivers\mydriver.sys
OR: sc create mydriver type = kernel start = demand binPath =
system32\drivers\mydriver.sys
OR: sc create mydriver type =kernel start =demand binPath
=system32\drivers\mydriver.sys
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Friday, August 20, 2010 7:14 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] IOCTL problem
xxxxx@yahoo.com wrote:
Simply by INSTDRV … .
Is it require to install via SCM ?
Yes, but INSTDRV must be using the SCM. There’s no other practical way to
do a legacy install without requiring a reboot.
It’s just not necessary. You can do the same thing from a command line:
copy mydriver.sys c:\windows\system32\drivers
sc create mydriver type= kernel start= demand binPath=
system32\drivers\mydriver.sys
net start mydriver
Loading a new version in is then just:
net stop mydriver
copy mydriver.sys c:\windows\system32\drivers
net start mydriver
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer