kulkarniquiet Posted December 12, 2007 Share Posted December 12, 2007 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 devicesbut 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 file2. hpdltw32.CAT 3. hpdltw32.sysCalled 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 Link to comment Share on other sites More sharing options...
MadBoy Posted December 13, 2007 Share Posted December 13, 2007 (edited) 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 devicesbut 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 file2. hpdltw32.CAT 3. hpdltw32.sysCalled 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,AbhijitPut in registry device path path to drivers you want to have installed/updated and run this from command prompt: RunDll32.exe Syssetup.dll,UpdatePnpDeviceDriversOr useDevcon.exe Edited December 13, 2007 by MadBoy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now