I’m pretty new to driver development and I’m currently trying to update an existing USB WDM driver and I’m facing two issues:
Device Class renaming
Device friendlyname generation (moved in a separated post)
A dedicated Device Setup Class has been created using the INF file to group the device in the device manager under a dedicated Icon (provided by the ClassInstaller dll). The issue is I want to rename this device setup class now. Updating the INF seems to have no effect.
Is there a way to update its name or is it required to create a new class with a new GUID?
Yes on the same machine I can’t update it, but on a new machine, the class is created with the new name.
The problem, is that the first version of the Class has been already released, so now I need to update it in the customer.
According to your answer it seems there is no way to do it, and that I need to create a new Class if I want a new name. It is not a real issue, but I just want to be sure I’m not creating a new Class if it is not required.
I’m pretty new to driver development and I’m currently trying to update an existing USB WDM driver and I’m facing two issues:
Device Class renaming
Device friendlyname generation (moved in a separated post)
A dedicated Device Setup Class has been created using the INF file to group the device in the device manager under a dedicated Icon (provided by the ClassInstaller dll). The issue is I want to rename this device setup class now. Updating the INF seems to have no effect.
Is there a way to update its name or is it required to create a new class with a new GUID?
The GUID/name association is sacred. If you want a new class, generate
a new GUID. Then, when you update the driver, the device gets placed in
the new class. As long as your old class has no devices, it won’t
appear in Device Manager. It will just occupy dead registry space.
Remember, GUIDs are free.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
During my test, I have created some GUID/ClassName for test and now they
stay in the registry. Is there a way to remove them? Deleting the key seems
to be forbidden.
On Thu, Nov 13, 2014 at 6:46 PM, Tim Roberts wrote:
> xxxxx@gmail.com wrote: > > I’m pretty new to driver development and I’m currently trying to update > an existing USB WDM driver and I’m facing two issues: > > - Device Class renaming > > - Device friendlyname generation (moved in a separated post) > > > > A dedicated Device Setup Class has been created using the INF file to > group the device in the device manager under a dedicated Icon (provided by > the ClassInstaller dll). The issue is I want to rename this device setup > class now. Updating the INF seems to have no effect. > > Is there a way to update its name or is it required to create a new > class with a new GUID? > > The GUID/name association is sacred. If you want a new class, generate > a new GUID. Then, when you update the driver, the device gets placed in > the new class. As long as your old class has no devices, it won’t > appear in Device Manager. It will just occupy dead registry space. > > Remember, GUIDs are free. > > – > Tim Roberts, xxxxx@probo.com > Providenza & Boekelheide, Inc. > > > — > NTDEV is sponsored by OSR > > Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev > > OSR is HIRING!! See http://www.osr.com/careers > > 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 >
There’s a long-standing community request: A method for uninstalling a driver from a system and removing all traces of it ever having been there, including any classes its INF created, etc, etc. Turns out this is harder than it initially seems like it should be.
> There’s a long-standing community request: A method for uninstalling a driver from a system and
> removing all traces of it ever having been there, including any classes its INF created, etc, etc.
Even without classes, deleting a record about the .cat file from the binary CatDb is the question.
That’s the new motto these days, how shared state is evil and how
stateless is cool…
/* Or, you can view this as entropy in physics: once you squeezed the
toothpaste out of the tube, it isn’t going back */
During my test, I have created some GUID/ClassName for test and now
they stay in the registry. Is there a way to remove them? Deleting the
key seems to be forbidden.
No, but there’s no harm in leaving them.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
On Fri, Nov 14, 2014 at 6:31 PM, Tim Roberts wrote:
> snorky snorky wrote: > > > > During my test, I have created some GUID/ClassName for test and now > > they stay in the registry. Is there a way to remove them? Deleting the > > key seems to be forbidden. > > No, but there’s no harm in leaving them. > > – > Tim Roberts, xxxxx@probo.com > Providenza & Boekelheide, Inc. > > > — > NTDEV is sponsored by OSR > > Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev > > OSR is HIRING!! See http://www.osr.com/careers > > 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 >