If you simply copy the inf file to the ‘windows\inf’ dir, upon installation,
the system will prompt you for the driver.
To install an inf file into the inf folder, the recommended way is through
SetupCopyOEMInf() (Platform SDK). This way, you can specify the source
folder from which the system will look for the drivers for that inf.
So unless you manage to create an inf that links to a hard-coded path, I
wonder if it’s possible to do any installation without calling a setupapi
routine.
Good luck
Mat
-----Original Message-----
From: Udo Eberhardt [mailto:xxxxx@thesycon.de]
Sent: Friday, February 28, 2003 2:55 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Automatic driver installation
Sure, I know about UpdateDriverForPlugAndPlayDevices(). But my original
question was not “How can I install a driver programmatically?”. It was
“How can I create an INF and eventually a device installer DLL to allow
driver installation without any user intervention?”.
This is very useful for creating pre-configured Windows systems. When a
device (a printer for example) is connected to the system for the first
time the appropriate driver is installed automatically.
In my particular project the system runs Windows XP embedded and does
not have any CDROM or floppy drive. So the drivers need to be on the
harddisk already.
–
Udo Eberhardt
Thesycon GmbH, Germany
xxxxx@thesycon.de
www.thesycon.de
Sirish Raghuram wrote:
UpdateDriverForPlugAndPlayDevices() is probably what you want to use. Look
it up on msdn.microsoft.com or in the DDK documentation
Regards,
-Sirish
-----Original Message-----
From: Leonid Meyerovich [mailto:xxxxx@v-one.com]
Sent: Thursday, February 27, 2003 9:45 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Automatic driver installation
That is right, but you cannot change this Registry entry on Windows XP
machine programmatically, it is protected.
Leonid
----- Original Message -----
From: “Udo Eberhardt”
> To: “NT Developers Interest List”
> Sent: Thursday, February 27, 2003 12:26 PM
> Subject: [ntdev] Re: Automatic driver installation
>
>
>
>>There is a dialog that allows to change the policy for the machine:
>>My Computer/Properties/Hardware/Driver Signing
>>
>>I found that the setting is stored in the following registry key:
>>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing
>>The value is named Policy and contains one byte only:
>>0 = ignore
>>1 = warn (default)
>>2 = block
>>
>>The values correspond to the dialog options.
>>
>>–
>> Udo Eberhardt
>> Thesycon GmbH, Germany
>>
>> xxxxx@thesycon.de
>> www.thesycon.de
>>
>>
>>
>>Leonid Meyerovich wrote:
>>
>>>Udo,
>>>
>>>Did you find the way to configure machine to allow installation of
>>
> un-signed
>
>>>drivers without any warning programmatically?
>>>Thank you
>>>Leonid
>>>
>>>----- Original Message -----
>>>From: “Udo Eberhardt”
>>>To: “NT Developers Interest List”
>>>Sent: Thursday, February 27, 2003 10:20 AM
>>>Subject: [ntdev] Automatic driver installation
>>>
>>>
>>>
>>>
>>>>On XP I’m trying to create an INF for a USB device that supports
>>>>automatic driver installation without any user intervention. This is for
>>>>a preconfigured machine. WHQL certificate is not required.
>>>>
>>>>A setup program places the .INF and the .sys into a directoy, say
>>>>c:\inst, and calls
>>>>
>>>>SetupCopyOEMInf(
>>>> “c:\inst\my.inf”, //PCTSTR SourceInfFileName,
>>>> NULL, //PCTSTR OEMSourceMediaLocation,
>>>> SPOST_PATH, //DWORD OEMSourceMediaType,
>>>> 0, //DWORD CopyStyle,
>>>> NULL, //PTSTR DestinationInfFileName,
>>>> 0, //DWORD DestinationInfFileNameSize,
>>>> NULL, //PDWORD RequiredSize,
>>>> NULL //PTSTR DestinationInfFileNameComponent
>>>> );
>>>>
>>>>to copy the inf into the system dir.
>>>>When the USB device is plugged in the New Hardware wizard pops up and
>>>>the user has to click Next and Finish.
>>>>How can I achieve an automatic installation without any user
>>>
> intervention?
>
>>>>Do I need to implement a device installer / class installer?
>>>>
>>>>Note that the driver is not digitally signed. However, the machine has
>>>>been configured to allow installation of un-signed drivers without any
>>>>warning (My Computer/Properties/Hardware/Driver Signing).
>>>>
>>>>–
>>>> Udo Eberhardt
>>>> Thesycon GmbH, Germany
>>>>
>>>> xxxxx@thesycon.de
>>>> www.thesycon.de
>>>>
>>>>
>>>>
>>>>—
>>>>You are currently subscribed to ntdev as: xxxxx@v-one.com
>>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>>
>>>
>>>
>>>—
>>>You are currently subscribed to ntdev as: xxxxx@thesycon.de
>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>
>>
>>
>>
>>
>>—
>>You are currently subscribed to ntdev as: xxxxx@v-one.com
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@vmware.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@thesycon.de
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
—
You are currently subscribed to ntdev as: xxxxx@guillemot.com
To unsubscribe send a blank email to xxxxx@lists.osr.com