Driver installer, Please help

device driver

    Sponsored Links

    Next

  • 1. Help: USB camera device driver questions
    Hello, I've been assigned to write a device driver for a USB camera. Our target platforms are Win 98SE through XP. I have the DDK for winxp sp1. I have not written a driver before, and it's tough to get started. I found information on USBCAMD, and mini drivers. If I use only version 1.0 of USBCAMD, will the minidriver work for all of our target platforms? One web site said that usbcamd wasn't supported on Win2K. I checked one Win2k machine here at the office, and it did have the usbcamd.sys installed. I also saw some information about not starting projects with usbcamd, but that I should use another video interface instead. That interface was only supported in Win XP though, so it looks like I should use usbcamd. I found an example called usbintel. Is that the best place to start? Any advice would be appreciated, Thanks!
  • 2. 64-bit compilation questions
    A few related questions. From what I understand, 64-bit versions of the C/C++ compiler come with the 2003 DDK for x64 and Itanium. When VS 2005 is released, should I be using the DDK compiler(s), or the VS 2005 compiler(s) for device drivers? Which DDK should I be using if I want a driver to work on Windows 2000, XP, 2003, and Vista? 32-bit on all, and 64-bit on the last 3. Do 64-bit applications need to be compiled differently for use on x64 versus Itanium? Thank you.
  • 3. How to define which USB port device plug in?
    How to define which USB port (connectior) my device uses? Is it possble to find in the Registry or I must write filter driver for USB buss driver? Example. When I plug in DiskOnKey, I see it inside ...CurrentControSet\\Services\\Disk and ...CurrentControSet\\Services\\USBSTOR. I experimentaly(!!!) found and disable its USB port in Device Manager. But I have not found connections between USB connector ID and DiskOnKey IDs inside Registry. :( Thanks, Michael.

Driver installer, Please help

Postby Paulina lui » Fri, 31 Oct 2003 03:56:45 GMT

I have the setup.inf files and the other files which you 
need to manually install the driver for our device, that 
is when u plug in the device, windows asks for the driver 
and you point to the location of the files.

Now what I have to do is make this automatic, so a user 
can run the setup.exe which installs the driver and when 
the device is plugged in since driver is already 
installed, you can start using it.

Thanks for your time

pauli


Re: Driver installer, Please help

Postby Ray Trent » Fri, 31 Oct 2003 04:28:49 GMT

This should probably be a FAQ, but... The simplified answer is:

1) Have the driver signed.
2) Use SetupCopyOEMInf to cover the case of the user running setup 
before they've plugged in the device.
3) Use UpdateDriverForPlugAndPlayDevices to cover the case of the user 
plugging in the device before they run setup.





-- 
../ray\..


RE: Driver installer, Please help

Postby bburgin » Fri, 31 Oct 2003 04:36:49 GMT



Have your setup program copy your files to a staging area (My Programs\My 
Company\My Product) and then use SetupCopyOEMInf to have that API copy and 
precompile your INF to the Windows INF folder.  When your device is 
discovered, it will be silently installed from the staging area.  BTW, you 
should probably name your INF something more unique to your 
device/product/driver.

Bryan S. Burgin
 XXXX@XXXXX.COM 

This posting is provided "AS IS" with no warranties, and confers no rights.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 
\par 
\par Have your setup program copy your files to a staging area (My Programs\\My Company\\My Product) and then use SetupCopyOEMInf to have that API copy and precompile your INF to the Windows INF folder.  When your device is discovered, it will be silently installed from the staging area.  BTW, you should probably name your INF something more unique to your device/product/driver.
\par 
\par Bryan S. Burgin
\par  XXXX@XXXXX.COM 
\par 
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par 
\par }

Re: Driver installer, Please help

Postby Paulina Lui » Fri, 31 Oct 2003 05:05:54 GMT

Thank you!

SO what do I have to to get the driver signed, 
and the functions you are talking about are in the ddk, as 
I will have to setup the ddk as this is my first time.
Is there any dll with which iI should link to make calls 
to these functions

answer is:
running setup 
case of the user 

you 
that 
driver 
when 

RE: Driver installer, Please help

Postby Paulina Lui » Fri, 31 Oct 2003 05:07:13 GMT

Thank you guy!

The function you are talking about are in the ddk, as I 
will have to setup the ddk as this is my first time.
Is there any dll with which I should link to make calls to 
these functions

(My Programs\My 
that API copy and 
device is 
staging area.  BTW, you 
your 
confers no rights.

Re: Driver installer, Please help

Postby hank » Fri, 31 Oct 2003 05:25:46 GMT

Maybe I read this differently from the others but if you are asking about
an installer itself, what I have done is pretty easy.  

Use VS.NET 2003 and create a MergeModule product.  
Assemble your files as needed (maybe in a setup/ and setup/W2K/ tree).
Set the CustomActionData property to [TARGETDIR]setup\setup.INF.
Write an Install custom action, use MsiGetProperty and ask for
"CustomActionData" - use this path for your installation call. For
example, a printer driver would use the PrintUIEntry entry point in the
printui.dll

Then use VS.NET 2003 and create an MSI project and add the above MM to the
MSI.

It's not a perfect solution but certainly helps during development since
it's completely integrated into the build.

hth






RE: Driver installer, Please help

Postby bburgin » Fri, 31 Oct 2003 05:58:13 GMT

It's in the SDK.  See 
 http://www.**--****.com/ 
tup/setupcopyoeminf.asp?frame=true.

Bryan S. Burgin
 XXXX@XXXXX.COM 

This posting is provided "AS IS" with no warranties, and confers no rights.

{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\f0\fs20 It's in the SDK.  See  http://www.**--****.com/ 
\par 
\par Bryan S. Burgin
\par  XXXX@XXXXX.COM 
\par 
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par 
\par 
\par }

Re: Driver installer, Please help

Postby Paulina Lui » Fri, 31 Oct 2003 10:23:25 GMT

Well , yeah I want to make an installer but we dont have 
vs.net

I have visual studio 6 though.

What I wan't to do is when some puts our device for the 
first time after the setup software has been run, windows 
should not show the new device found screen but instead 
use the driver already installed.

For that do I have to change some vendor id or pid in the 
inf file or should I just copy the files, inf file to inf 
folder and the other files to system32 or system

please help


are asking about
setup/W2K/ tree).
setup\setup.INF.
ask for
call. For
entry point in the
the above MM to the
development since

you 
that 
driver 
when 

Re: Driver installer, Please help

Postby Ray Trent » Sat, 01 Nov 2003 09:20:48 GMT

As mentioned before, the way you do this is to copy your installation 
package to disk and then call SetupCopyOEMInf. There are other things 
that happen during this process, so I wouldn't suggest trying to copy 
the files yourself...






-- 
../ray\..


Re: Driver installer, Please help

Postby Pavel A. » Sun, 02 Nov 2003 01:46:55 GMT





you do not need vs.net to make installer. Other tools exist (Installshield,
Wise...).


No. any change in the INF will break the signature.
(and getting this precious signature is whole business by itself...)

- PA



Similar Threads:

1.Driver installer, Please help

I have the .inf and the other files needed for the driver installation

Now normally when you connect the device(a new device) you go through 
sequence of screens to install the driver

What I want to do is use the files that I already have so that when someon
connects the device, since the driver is already installed all they have to do i
click once on the screen that says driver found and installe

Any pointers, suggestions

2.Driver installer(USB) , Please help

Well but then they should show that the driver is not signed as well

I just tried installing some of the CSR drivers, I saw the new hardware found when I connected the device for the first time(After installation), and then I did next, it installed the driver and then the finish button

But no unsigned message as is the case in my driver installer
So that means its signed, but still why the New Hardware found screen, does this mean that no matter if the driver is signed or not , the new hardware screen will pop up

As I have been given the task o getting rid of this new hardware found wizard after our installer installs the drivr and the software, and if requires getting the driver signed then get it done, but even if signing wont ri the new hardware found wizrad then its of no use for me and my company

Also for the only one screen, I was talking about Windows XP Pro..
Again I am using just the setcopyinf, so after the installer when the devie is plugged in the new ard ware found wizard pops up and one of the screens reached during pressing next has also this "Driver not signed
Thanks a lot again
Paul

3.please please help - sound driver!

i'm really getting desperate now. i have windows xp. the 
sound driver i had was a yamaha ac-xg one. when i turn 
off the computer the driver seems to uninstall itself and 
under sound devices it says there is no playback device. 
i tried reinstalling it, but everytime i turn it off it 
does the same. then i tried deleting the yamaha driver 
and letting widows automatically install the default 
(intel) driver. when i rebooted the computer it seemed to 
work - it said it found a new audio device and the sound 
seemed to work. but then when i turned it off and back 
again it did the same.

i'm getting really frustrated - please help!

4.Device driver installer , help

I have the setup.inf files and the other files which you 
need to manually install the driver for our device, that 
is when u plug in the device, windows asks for the driver 
and you point to the location of the files.

Now what I have to do is make this automatic, so a user 
can run the setup.exe which installs the driver and when 
the device is plugged in since driver is already 
installed, you can start using it.

I saw a response recommending to use SetupCopyOEMInf for 
this.(Its a part of the Setup SDK, I guess)

The .inf file is also used to install other similar files, 
so you still have to select the driver file  from the 
screen presented by windows(with a list of available 
drivers found at the location of the .inf file) and select 
the driver for our device(which is generic driver file).

Can I also automate this process, do I have to change the 
Vendor ID or PID in the .inf file for this to happen that 
the driver(generic) is automatically seleted for our 
device as soon as our device is plugged in.

Thanks for your time

5.Driver Denied By Class Installer - Help

I have an Epson 3170 USB scanner that had been working properly for some 
time.  Now when I turn it on, Windows recognizes it as new hardware, 
indicating that it is, in fact, an Epson 3170.  As part of the failed 
software installation attemp, I get the following error message: "The class 
installer has denied the request to install or upgrade this device".  My 
Driver Signing Option is set to Warn.  I've also tried using a different USB 
cable and port, but to no avail.

Any suggestions?

-- 
BK

6. Driver denied by class installer-HELP?!

7. drivers for modem help please

8. Smartcard reader driver architecture, please help !!!!



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 45 guest