Hi,
I am having a dual driver(bus and function driver) which creates 3 virtual serial ports for communicating with USB device.
When I do un-install the ports are not being “freed”? Can you guide me how do I do that?
I am running uninstall from Add/Remove programs and I am running following commands for un-installation
ExecWait ‘“$INSTDIR\DPInst.exe” /D /q /u “$INSTDIR\xxxx.inf”’
Hi,
I am having a dual driver(bus and function driver) which creates 3 virtual serial ports for communicating with USB device.
When I do un-install the ports are not being “freed”? Can you guide me how do I do that?
I am running uninstall from Add/Remove programs and I am running following commands for un-installation
ExecWait ‘“$INSTDIR\DPInst.exe” /D /q /u “$INSTDIR\xxxx.inf”’
Is that uninstalling the bus driver, or the function driver? Since
those are two separate device classes, they have to be two separate
INFs. If you delete the function driver, that will leave the ports
hanging around. If you delete the bus driver, that should cause the
ports to be removed, assuming no one is using them. Remember that a
device cannot be deleted while an application has an open handle.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Yes,
I am uninstalling bus driver and then function driver.
ExecWait ‘“$INSTDIR\DPInst.exe” /D /q /u “$INSTDIR\busxxxx.inf”’//multi port serial class
ExecWait ‘“$INSTDIR\DPInst.exe” /D /q /u “$INSTDIR\serxxxx.inf”’//ports class
My problem is after some months next free port is going beyond 100 as multiple devices that are coming in.
Can I use msports.dll in INF somehow to release com ports?
You need to understand how the COM Ports are assigned, and while you are uninstalling you need to address COM DB, Not sure if this is still applicable in Win Vista and above but till Win XP, we need to handle COM DB. (COM Database).