Author Topic: I don't know if this is the right place to ask this but...  (Read 13937 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
I don't know if this is the right place to ask this but...
« on: June 28, 2012, 05:03:01 am »
Hi All,
I am usually active on the Com(serial) ports, this is a question about USB drivers and this appeared to be the place for it!
I am writing a application to get the data off a unit connected to the PC, no problem with doing this however the board connects using the Microchip USB to Serial driver. As this has to be installed on the PC that is going to used for the download I was wondering if any one can help me with the installer I have for the program I would like to know if I ran the USB to Serial Driver install would it just install over the top of the driver if already installed and create it if not installed or would it be better to check the usbser.sys for the relevant file?

Glenn

Tsuneo

  • Frequent Contributor
  • ****
  • Posts: 145
Re: I don't know if this is the right place to ask this but...
« Reply #1 on: June 28, 2012, 08:24:22 am »
Quote
I was wondering if any one can help me with the installer I have for the program I would like to know if I ran the USB to Serial Driver install would it just install over the top of the driver if already installed and create it if not installed or would it be better to check the usbser.sys for the relevant file?

You don't need to worry about usbser.sys at all.
Just install your INF file.
Make up an INF file, following this guideline.

How to use or to reference the Usbser.sys driver from universal serial bus (USB) modem .inf files
http://support.microsoft.com/kb/837637/en-us

The point of above KB is,
Code: [Select]
[DDInstall.NT]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection

The right version of usbser.sys for the target PC is stored on somewhere specific to the PC setup. It may be in DriverStore, or in a .CAB file under I386 folder, or included in its install CD. The location of usbser.sys on the setup is written in FakeModemCopyFileSection of mdmcpq.inf, which is customized for the target PC at primary OS installation. Using above lines in INF, the install engine on OS automatically finds the usbser.sys, and copies it to the right place (driver folder).
Therefore, you should not distribute usbser.sys on your install package.

To (pre-)install your INF, DPInst.exe is handy.
This utility is included in WDK (C:\WINDDK\7600.16385.1\redist\DIFx\dpinst)

Windows Driver Kit Version 7.1.0
http://www.microsoft.com/en-us/download/details.aspx?id=11800

Tsuneo

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Re: I don't know if this is the right place to ask this but...
« Reply #2 on: June 28, 2012, 09:30:54 am »
Thanks for that, there maybe more questions when I have fully investigated  :)