IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
 
Reply to this topicStart new topic
> Driver Installation
kulkarniquiet
post Dec 12 2007, 02:39 AM
Post #1





Group: Members
Posts: 8
Joined: 17-May 07
Member No.: 139579
OS: XP Pro x86
Country Flag


Hi All,

I need your urgent help.
I am working in slient installation (Without Wizard) of any simple driver(PNP and non PNP drivers).
I tried to use UpdateDriverForPlugAndPlayDevices(NULL, H/w_id, inf_file, 0, &reboot) function installs updated drivers for devices
but when i call, function returns "NO_ERROR" but driver is not getting installed.Even i am nt sure whether driver installed or not.
OEMxx.inf file is nt copied at %windir%/inf location and .sys file and othe supporting files also nt copied at %windir%/system32/drivers location.

I also tried SetupCopyOEMInf(inf_file, NULL, SPOST_PATH, 0, NULL, 0, NULL, NULL) function, it copies only .inf file.
then who will copy .sys file or any other supporting driver files.

I am using below mentioned driver files :
1. hpdltw32.inf ------- Extract H/W Id from inf file
2. hpdltw32.CAT
3. hpdltw32.sys

Called UpdateDriverForPlugAndPlayDevices(NULL,H/W Id , inf_file, 0, &reboot) returns NO_ERROR
but nt copied OEMxx.inf in "%windir%/inf" pathand nt copied .sys file at "%windir%/system32/drivers".

Can any one give me driver installtion API sequence Or give me any sample code for installing sample driver.


I am waiting for your kindly help.
Even your reply or valuable suggestion would be great for me.


Thanks & Regards,

Abhijit
Go to the top of the page
 
+Quote Post
MadBoy
post Dec 13 2007, 05:17 AM
Post #2


Advanced Member
***

Group: Members
Posts: 442
Joined: 21-February 05
Member No.: 44662
OS: none
Country Flag


QUOTE (kulkarniquiet @ Dec 12 2007, 09:39 AM) *
Hi All,

I need your urgent help.
I am working in slient installation (Without Wizard) of any simple driver(PNP and non PNP drivers).
I tried to use UpdateDriverForPlugAndPlayDevices(NULL, H/w_id, inf_file, 0, &reboot) function installs updated drivers for devices
but when i call, function returns "NO_ERROR" but driver is not getting installed.Even i am nt sure whether driver installed or not.
OEMxx.inf file is nt copied at %windir%/inf location and .sys file and othe supporting files also nt copied at %windir%/system32/drivers location.

I also tried SetupCopyOEMInf(inf_file, NULL, SPOST_PATH, 0, NULL, 0, NULL, NULL) function, it copies only .inf file.
then who will copy .sys file or any other supporting driver files.

I am using below mentioned driver files :
1. hpdltw32.inf ------- Extract H/W Id from inf file
2. hpdltw32.CAT
3. hpdltw32.sys

Called UpdateDriverForPlugAndPlayDevices(NULL,H/W Id , inf_file, 0, &reboot) returns NO_ERROR
but nt copied OEMxx.inf in "%windir%/inf" pathand nt copied .sys file at "%windir%/system32/drivers".

Can any one give me driver installtion API sequence Or give me any sample code for installing sample driver.


I am waiting for your kindly help.
Even your reply or valuable suggestion would be great for me.


Thanks & Regards,

Abhijit


Put in registry device path path to drivers you want to have installed/updated and run this from command prompt: RunDll32.exe Syssetup.dll,UpdatePnpDeviceDrivers

Or use

Devcon.exe smile.gif

This post has been edited by MadBoy: Dec 13 2007, 05:17 AM
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 21st November 2009 - 10:30 PM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy