Hi,
We have a USB peripheral. In order to qualify WHQL, we are planning to use
‘USB’ class in the INF file. Our software along with the usb functional
driver and the INF file needs to be installed before the user actually
plugs in the USB device. When the user plugs in the device for the first
time, he is not supposed to specify any file locations in the “Found New
Hardware wizard”. It should be a silent install.
What needs to be done for installation and uninstallation of the driver
and inf file?
For installation do I just have to call SetupCopyOEMInf()? How does the
registry cleanup and driver and inf cleanup handled during the
uninstallation of the software?
Thanks.
If your driver is certified and you copy the driver files to the local
harddisk and you call SetupCopyOEMInf() then, when the device is plugged
in for the first time, the driver installation will proceed without any
user intervention.
If the user removes the device from Device Manager then some Registry
keys will be removed (enum key, service key etc.). However, your INF
file and your sys file(s) will not be removed from the system. So if the
user plugs in the device again, the driver will be automatically
installed again.
Udo Eberhardt
Thesycon GmbH
xxxxx@hotmail.com wrote:
Hi,
We have a USB peripheral. In order to qualify WHQL, we are planning to use
‘USB’ class in the INF file. Our software along with the usb functional
driver and the INF file needs to be installed before the user actually
plugs in the USB device. When the user plugs in the device for the first
time, he is not supposed to specify any file locations in the “Found New
Hardware wizard”. It should be a silent install.
What needs to be done for installation and uninstallation of the driver
and inf file?
For installation do I just have to call SetupCopyOEMInf()? How does the
registry cleanup and driver and inf cleanup handled during the
uninstallation of the software?
Thanks.
You are currently subscribed to ntdev as: xxxxx@thesycon.de
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thanks for the response.
If the user removes the device from Device Manager then some Registry keys
will be removed (enum key, service key etc.).
I don’t think so. Even when the usb device is unplugged from the system, I
still see the registry entries under “USB” key under enum key and the
service key.
However, your INF file and your sys file(s) will not be removed from the
system. So if the user plugs in the device again, the driver will be
automatically installed again.
When I said uninstall the INF file, sys file and registry cleanup, I
actually meant the actual uninstallation/deletion of these files from the
system when I un-install my software package.
How to handle the uninstallation of driver and INF file and registry cleanup
when my software itself is uninstalled.
Thanks,
xxxxx@hotmail.com wrote:
>Hi,
>
>We have a USB peripheral. In order to qualify WHQL, we are planning to use
>‘USB’ class in the INF file. Our software along with the usb functional
>driver and the INF file needs to be installed before the user actually
>plugs in the USB device. When the user plugs in the device for the first
>time, he is not supposed to specify any file locations in the “Found New
>Hardware wizard”. It should be a silent install.
>
>What needs to be done for installation and uninstallation of the driver
>and inf file?
>
>For installation do I just have to call SetupCopyOEMInf()? How does the
>registry cleanup and driver and inf cleanup handled during the
>uninstallation of the software?
>
>Thanks.
>
>—
>You are currently subscribed to ntdev as: xxxxx@thesycon.de
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
> I don’t think so. Even when the usb device is unplugged from the system,
I still see the registry entries under “USB” key under enum key and the
service key.
Yes you may be right. The enum key is never removed. However, the
service key should disappear after a reboot.
When I said uninstall the INF file, sys file and registry cleanup, I
actually meant the actual uninstallation/deletion of these files from
the system when I un-install my software package.
When you uninstall your software package then you would have to remove
the oemX.inf file that has been copied to the system’s inf dir by
SetupCopyOEMInf(). So you have to save the assigned inf name at a
private location in the registry and use that information to delete the
file. But, I think MS recommends not to modify the inf dir. You can try
SetupUninstallOEMInf(), available in XP.
Udo Eberhardt
Thesycon GmbH
How to handle the uninstallation of driver and INF file and registry
cleanup when my software itself is uninstalled.
Thanks,
>
>
> xxxxx@hotmail.com wrote:
>
>> Hi,
>>
>> We have a USB peripheral. In order to qualify WHQL, we are planning
>> to use
>> ‘USB’ class in the INF file. Our software along with the usb functional
>> driver and the INF file needs to be installed before the user actually
>> plugs in the USB device. When the user plugs in the device for the first
>> time, he is not supposed to specify any file locations in the “Found New
>> Hardware wizard”. It should be a silent install.
>>
>> What needs to be done for installation and uninstallation of the driver
>> and inf file?
>>
>> For installation do I just have to call SetupCopyOEMInf()? How does the
>> registry cleanup and driver and inf cleanup handled during the
>> uninstallation of the software?
>>
>> Thanks.
>>
>> —
>> You are currently subscribed to ntdev as: xxxxx@thesycon.de
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>
>
>
> —
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
You are currently subscribed to ntdev as: xxxxx@thesycon.de
To unsubscribe send a blank email to xxxxx@lists.osr.com