I have a keyboard class upper filter driver for PS2 keyboards. I know
that PS2 stack can not be restarted and hence when I install this
driver, I need to reboot for it to take affect.
My problem is now of upgrade. If I upgrade the driver, I’m ending up in
a totally messed up state. I think the following is happening:
-
When upgrade begins, it marks current service for filter driver
for removal but requires a reboot.
-
Now before reboot, I install the new driver (with a newer
version).
-
Reboot
-
After reboot, since version 1 was marked for removal, it
deletes the service. This was actually the service for the newly
installed driver Version 2 but since the name is the same, the system
doesn’t know.
Can someone suggest a solution under which, I don’t have to reboot 2
times to upgrade. Is there any other reason this problem may be
happening?
I am using WIX to install the driver package using DIFX. Its not signed,
but I’m getting it signed shortly. Also its NOT using KMDF right now.
Thanks
Pankaj
Just replace the file on upgrade and do not touch the registry at all.
No need to re-run the whole uninstall/install thing once more.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Pankaj Garg” wrote in message news:xxxxx@ntdev…
I have a keyboard class upper filter driver for PS2 keyboards. I know that PS2 stack can not be restarted and hence when I install this driver, I need to reboot for it to take affect.
My problem is now of upgrade. If I upgrade the driver, I’m ending up in a totally messed up state. I think the following is happening:
1) When upgrade begins, it marks current service for filter driver for removal but requires a reboot.
2) Now before reboot, I install the new driver (with a newer version).
3) Reboot
4) After reboot, since version 1 was marked for removal, it deletes the service. This was actually the service for the newly installed driver Version 2 but since the name is the same, the system doesn’t know.
Can someone suggest a solution under which, I don’t have to reboot 2 times to upgrade. Is there any other reason this problem may be happening?
I am using WIX to install the driver package using DIFX. Its not signed, but I’m getting it signed shortly. Also its NOT using KMDF right now.
Thanks
Pankaj
Not installing via INF loses you quite a few advantages, such as proper
driver rollback, etc.
OP:
If by “it”, you mean your setup/uninstall package, the correct answer is
to skip step 1. Just install the new driver. It will overwrite the old
driver and life will be happy.
If by “it”, you mean “the operating system”, no that’s not the way it
works. The OS won’t delete your service unless you tell it to. You
probably have some other problem.
In either case, you should look at the setupapi logs to see what’s
actually going on. There’s really no way to guess from your description
what the problem might be.
Maxim S. Shatskih wrote:
Just replace the file on upgrade and do not touch the registry at all.
No need to re-run the whole uninstall/install thing once more.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com mailto:xxxxx
> http://www.storagecraft.com
>
> “Pankaj Garg” >
> wrote in message news:xxxxx@ntdev…
>
> I have a keyboard class upper filter driver for PS2 keyboards. I
> know that PS2 stack can not be restarted and hence when I install
> this driver, I need to reboot for it to take affect.
>
> My problem is now of upgrade. If I upgrade the driver, I’m ending up
> in a totally messed up state. I think the following is happening:
>
>
>
> 1) When upgrade begins, it marks current service for filter
> driver for removal but requires a reboot.
>
> 2) Now before reboot, I install the new driver (with a newer
> version).
>
> 3) Reboot
>
> 4) After reboot, since version 1 was marked for removal, it
> deletes the service. This was actually the service for the newly
> installed driver Version 2 but since the name is the same, the
> system doesn’t know.
>
>
>
>
>
> Can someone suggest a solution under which, I don’t have to reboot 2
> times to upgrade. Is there any other reason this problem may be
> happening?
>
>
>
> I am using WIX to install the driver package using DIFX. Its not
> signed, but I’m getting it signed shortly. Also its NOT using KMDF
> right now.
>
>
>
>
>
> Thanks
>
> Pankaj
>
–
Ray
(If you want to reply to me off list, please remove “spamblock.” from my
email address)</mailto:xxxxx>