registry setting in an inf file

I have an inf file which can update device driver through device manager
on
Win2k server. Now i am going to use “rundll32 setupapi,InstallHinfSection
DefaultInstall 132 [path to inf file]” to implement updating driver. I
notice that .inf file and .sys file were copied to the winnt\inf and
winnt\system32\drivers dirctory correspondingly. However, registry key and
value doesn’t change. Then I added the DelReg/AddReg directive in the inf
file to change registry setting.
[DelRegmy]
HKLM,“System\CurrentControlSet\Control\Class{4d36e97d-e325-11ce-bfc1-08002be10318}\0015”
HKLM,“System\CurrentControlSet\Enum\PCI\VEN_1166&DEV_0012&SUBSYS_00000000&REV_02\3&267a616a&0&00”

The first key
“System\CurrentControlSet\Control\Class{4d36e97d-e325-11ce-bfc1-08002be10318}\0015”
was deleted but second key couldn’t be deleted. I run regedt32 and find
that the second key (hardware key) only can be accessed by system.
Does anyone know how to delete/add hardwere key in an inf file? Does
anyone
have sucessful experience using command “rundll32
setupapi,InstallHinfSection DefaultInstall 132 [path to inf file]” to
update driver for a plug and play device?

Thanks in advance.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Use ‘UpdateDriverForPlugAndPlayDevices’ and other SetupApi calls to
update your device.

| Norbert Kawulski | mailto:xxxxx@stollmann.de |
| Stollmann T.P.GmbH, Development | http://www.stollmann.de |
–If it’s ISDN or Bluetooth, make sure it’s driven by Stollmann–

“No good deed goes unpunished. - Murphy”

I have an inf file which can update device driver through device manager
on
Win2k server. Now i am going to use “rundll32 setupapi,InstallHinfSection
DefaultInstall 132 [path to inf file]” to implement updating driver. I
notice that .inf file and .sys file were copied to the winnt\inf and
winnt\system32\drivers dirctory correspondingly. However, registry key and
value doesn’t change. Then I added the DelReg/AddReg directive in the inf
file to change registry setting.
[DelRegmy]
HKLM,“System\CurrentControlSet\Control\Class{4d36e97d-e325-11ce-bfc1-08002be10318}\0015”
HKLM,“System\CurrentControlSet\Enum\PCI\VEN_1166&DEV_0012&SUBSYS_00000000&REV_02\3&267a616a&0&00”

The first key
“System\CurrentControlSet\Control\Class{4d36e97d-e325-11ce-bfc1-08002be10318}\0015”
was deleted but second key couldn’t be deleted. I run regedt32 and find
that the second key (hardware key) only can be accessed by system.
Does anyone know how to delete/add hardwere key in an inf file? Does
anyone
have sucessful experience using command “rundll32
setupapi,InstallHinfSection DefaultInstall 132 [path to inf file]” to
update driver for a plug and play device?

Thanks in advance.


You are currently subscribed to ntdev as: xxxxx@stollmann.de
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com