Jump to content

Drivers Instalation in Post-Install stage (New Method)


MadBoy

Recommended Posts


Hello MadBoy,

i get the following error message on a win-xp-home computer:

post-211430-1222258814_thumb.jpg

Well read thread, there are answers why this error happens which may also apply to you. It has to do with WMI. You probably used nlite to cut out some stuff? Like Help & Support? Especially psycho2k was able to track it down.

With regards,

MadBoy

Link to comment
Share on other sites

Hello MadBoy,

i dont use nLite and did not disable help and support.

psycho2k has error Nr. 80041013 and i have 80040154.

regards soso

Well soso, try google :-) This is one of the results:

http://www.visualbasicscript.com/m_56347/tm.htm -> reregister WMI

To reregister all the WMI stuff you can put this in a batch file and Run it...

cd /d %windir%\system32\wbem

for %i in (*.dll) do RegSvr32 -s %i

for %i in (*.exe) do %i /RegServer

Or as a last resort try:

rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%\inf\wbemoc.inf

This reinstalls WMI and I wouldn't recommend doing it unless you have checked EVERYTHING else.

http://support.software602.com/kb/view.aspx?articleID=987

Lemme know if it works. All in all there's a lot of links you just gotta search for solutions and try for yourself. The problem is not realy related to my program. It uses WMI classes to get information from system so probably WMI is corrupted on your sytem, or something else is wrong. Just search for the error on google. This is as much as I could do for you at this time. Hope it will work for you.

Link to comment
Share on other sites

While looking at another thread (http://www.novell.com/support/viewContent.do?externalId=7001023&sliceId=1):

If not, they need to be registered (regsvr32)

For example, on XP SP2 the control files are in c:\windows\system32\wbem

cd c:\windows\system32\wbem

for %%i in (*.dll) do regsvr32 -s %%i

for %%i in (*.exe) do regsvr32 -s %%i

net stop winmgmt

net start winmgmt

The WMI service needs to be restarted.

This is worth a shot aswell:

The WMI service is a requirement for the ZENworks preagent install.

Use wbemtest to test the service. If connect fails with error 80040154 this verifies the problem.

If the WMI service is disabled, the error is different. In that case wbemtest returns error 0x80070422

Link to comment
Share on other sites

Greetings,

I am trying this app out on a freshly installed MS-163a (MSI GX600) Notebook. I am not getting the expected results.

Things I notice:

1. If you choose to change the config from within the app, it does not make those changes to the XML file, and it does not save those settings if I were to go back into that menu again.

2. It does not copy the driver files to the hard drive.

3. It stops at the point in the included screenshot.

Here is the XML file:

<?xml version="1.0" encoding="utf-8"?>
<settings>
<basic_configuration>
<choice>manual</choice>
<window_managing>
<hardware_wizard>
<wizard_use>Yes</wizard_use>
<wizard_title>Found New Hardware Wizard</wizard_title>
<wizard_button_cancel>Cancel</wizard_button_cancel>
<wizard_button_next>Next</wizard_button_next>
<wizard_button_finish>Finish</wizard_button_finish>
</hardware_wizard>
</window_managing>
<share_configuration>
<use_mapping>No</use_mapping>
<map_network_drive>
<drive_1>
<share_path>\\127.0.0.1\c$</share_path>
<domain_username>EM\MadBoy</domain_username>
<domain_password>SuperPass</domain_password>
</drive_1>
</map_network_drive>
</share_configuration>
<drivers>
<drivers_method>New</drivers_method>
<drivers_database_use>Yes</drivers_database_use>
<drivers_database_recreate>No</drivers_database_recreate>
<drivers_database_path>$ProgramDir\hardware_database.db</drivers_database_path>
<drivers_directory_path>$ProgramDir\drivers</drivers_directory_path>
<drivers_packed>No</drivers_packed>
<drivers_copy>Yes</drivers_copy>
<drivers_copy_path>C:\PnPDrivers</drivers_copy_path>
<drivers_copy_delete>No</drivers_copy_delete>
<options>
<method>RegistryDevicePath</method>
<registry_path>Begin</registry_path>
<problem_ids>01,10,18,24,28,37,39</problem_ids>
<update_all>No</update_all>
<plug_and_play>
<option>Internal</option>
<time_to_wait>15</time_to_wait>
</plug_and_play>
<shutdown>
<auto_reboot_when_necessary>No</auto_reboot_when_necessary>
<auto_reboot_when_done>No</auto_reboot_when_done>
<auto_login>Yes</auto_login>
<notify_when_done>Yes</notify_when_done>
</shutdown>
<time_to_run>0</time_to_run>
<force_run>No</force_run>
<device_manager>No</device_manager>
</options>
</drivers>
<log>
<log_overwrite>No</log_overwrite>
<log_to_file>Yes</log_to_file>
<log_filename_path>$ProgramDir\hardware.log</log_filename_path>
<log_option>Debug</log_option>
</log>
<gui>
<hide_legacy_devices>No</hide_legacy_devices>
<fade_in_effect>No</fade_in_effect>
<hide_views>No</hide_views>
</gui>
</basic_configuration>
</settings>

here is the hardware.log

[14:13:29] - =================== START - YOUR-13295FA740 - START ===================

[14:13:29] - [iNFO] Started program on computer YOUR-13295FA740.

[14:13:29] - [iNFO] Detected system is Windows XP x32 Service Pack 2.

[14:13:29] - [DRIVERS DB] Disabling drivers database use as the path is incorrect or doesn't exists.

[14:13:30] - [DRIVERS] Directory with drivers (E:\ms163a\drivers) exist. Continuing...

[14:13:30] - [DRIVERS] Using NEW method of drivers instalation. Good Luck!

[14:13:31] - Discovering basic information about all system devices..

[14:13:33] - [DEVICES] Simple Information gathering took 3.4 seconds.

[14:13:34] - Discovering advanced information about all system devices..

[14:13:43] - [DEVICES] Advanced Information gathering took 9.37 seconds.

[14:13:43] - Cleaning up devices list from non-essential devices...

[14:13:44] - [DEVICES] Cleaning Devices took 0.58 seconds.

[14:13:44] - Building up simple devicelist...

[14:13:45] - [VIEW] Drawing simple device view took 0.91 seconds.

[14:13:45] - Building up advanced devicelist...

[14:13:47] - [VIEW] Drawing advanced device view took 1.79 seconds.

[14:13:48] - [VIEW] Building up error devicelist...

[14:13:48] - [VIEW] Drawing error device view took 0.45 seconds.

[14:13:48] - [iNFO] Manual start used - Waiting for orders.

[14:13:56] - Checking for directory where drivers will be copied.

[14:13:56] - Target directory (C:\PnPDrivers) already exists. Using it.

[14:13:56] - Copying drivers from E:\ms163a\drivers to C:\PnPDrivers. Please wait!

[14:14:41] - Copy process is done.

[14:14:41] - [DRIVERS DB] Running PREPARE DATABASE function. Please wait...

[14:14:44] - [DRIVERS DB] Ending PREPARE DATABASE function. Execution time was 2.52 seconds.

[14:14:44] - [DRIVERS] Running SEARCH & MATCH function. Please wait...

[14:14:44] - [DRIVER] Device => PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462 Driver Path => NOT FOUND in DB

[14:14:44] - [DRIVER] Device => PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462 Driver Path => NOT FOUND in DB

[14:14:45] - [DRIVER] Device => PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462 Driver Path => NOT FOUND in DB

[14:14:45] - [DRIVER] Device => PCI\VEN_8086&DEV_283E&SUBSYS_283E8086 Driver Path => NOT FOUND in DB

[14:14:45] - [DRIVER] Device => PCI\VEN_8086&DEV_284B&SUBSYS_3FAD1462 Driver Path => NOT FOUND in DB

[14:14:45] - [DRIVER] Device => PCI\VEN_8086&DEV_4222&SUBSYS_10008086 Driver Path => NOT FOUND in DB

[14:14:45] - [DRIVERS] SEARCH & MATCH function found 0 matching drivers

[14:14:45] - [DRIVERS] SEARCH & MATCH function found 6 drivers that have no match. Oh dear..

[14:14:46] - [DRIVERS] Execution time for SEARCH & MATCH was 4.38 seconds.

[14:14:46] - [sEARCH] Removing duplicate entries from INF list.

[14:14:46] - [DRIVERS] Setting path into registry using RegistryDevicePath method.

[14:14:46] - [DRIVERS] Drivers path (%SystemRoot%\inf;) was successfully set into registry.

[14:14:46] - [DRIVERS] Drivers path (C:\PnPDrivers) with 0 was successfully set into registry.

[14:14:46] - [DRIVERS] Device Path in registry currently has 17.

[14:14:46] - Removing unknown hardware from system.

[14:14:47] - Removing hardware ID: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4

[14:14:47] - Using part of hardware ID: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01

[14:14:47] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:48] - Advanced Output: 1 device(s) removed.

[14:14:48] - Removing hardware ID: PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0

[14:14:48] - Using part of hardware ID: PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12

[14:14:48] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:48] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0: Removed

[14:14:49] - Advanced Output: 1 device(s) removed.

[14:14:49] - Removing hardware ID: PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&22F0

[14:14:49] - Using part of hardware ID: PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12

[14:14:50] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:50] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0: Removed

[14:14:50] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&22F0: Removed

[14:14:50] - Advanced Output: 1 device(s) removed.

[14:14:50] - Removing hardware ID: PCI\VEN_8086&DEV_283E&SUBSYS_283E8086&REV_03\3&11583659&0&FB

[14:14:50] - Using part of hardware ID: PCI\VEN_8086&DEV_283E&SUBSYS_283E8086&REV_03

[14:14:51] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:51] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0: Removed

[14:14:51] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&22F0: Removed

[14:14:51] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_283E&SUBSYS_283E8086&REV_03\3&11583659&0&FB: Removed

[14:14:51] - Advanced Output: 1 device(s) removed.

[14:14:51] - Removing hardware ID: PCI\VEN_8086&DEV_284B&SUBSYS_3FAD1462&REV_03\3&11583659&0&D8

[14:14:52] - Using part of hardware ID: PCI\VEN_8086&DEV_284B&SUBSYS_3FAD1462&REV_03

[14:14:52] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:52] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0: Removed

[14:14:52] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&22F0: Removed

[14:14:52] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_283E&SUBSYS_283E8086&REV_03\3&11583659&0&FB: Removed

[14:14:52] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_284B&SUBSYS_3FAD1462&REV_03\3&11583659&0&D8: Removed

[14:14:53] - Advanced Output: 1 device(s) removed.

[14:14:53] - Removing hardware ID: PCI\VEN_8086&DEV_4222&SUBSYS_10008086&REV_02\4&41FE850&0&00E0

[14:14:53] - Using part of hardware ID: PCI\VEN_8086&DEV_4222&SUBSYS_10008086&REV_02

[14:14:53] - Advanced Output: PCI\VEN_10EC&DEV_8168&SUBSYS_3FAD1462&REV_01\4&8314FBF&0&00E4: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0592&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&23F0: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.PCI\VEN_1180&DEV_0843&SUBSYS_3FAD1462&REV_12\4&2BF9155E&0&22F0: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_283E&SUBSYS_283E8086&REV_03\3&11583659&0&FB: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_284B&SUBSYS_3FAD1462&REV_03\3&11583659&0&D8: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.PCI\VEN_8086&DEV_4222&SUBSYS_10008086&REV_02\4&41FE850&0&00E0: Removed

[14:14:54] - Advanced Output: 1 device(s) removed.

[14:14:54] - Unknown devices were removed successfully.

[14:14:54] - [iNFO] Enabling Window Managing Wizard

[14:14:55] - Forcing system to detect Plug & Play Devices.

[14:14:58] - System is now detecting and installing drivers for your hardware. Please wait!

[14:14:58] - DEBUG: Program is now searching for active plug & play process

[14:15:14] - No active plug & play process has been found after 15 seconds. Terminating.

[14:15:14] - [iNFO] Disabling Window Managing Wizard

[14:19:36] - Reseting registry DevicePath to default.

[14:19:36] - =================== END - YOUR-13295FA740 - END ===================

Also, how do I use the .db file? I can't figure out how to create it.

Thanks.

Link to comment
Share on other sites

Hello pSycho,

All you need is in the code already. All you have to do is pass the name to program right (a.k.a with & in front of the letter that is underlined). Like

N&ext if e is underlined or without & but then you have to pass ext

&Next if N is underlined or without & but then you have to pass Next

Ne&xt if x is underlined or without & but then you have to pass xt

Hope you understand what I'm saying :)

With regards,

MadBoy

Only new features are not implemented but this one should work fine if correctly used.

Fantastic my problems are solved! :thumbup It works like a charm. Tumbs up for your help! Can't wait to see more features in the next update.

Link to comment
Share on other sites

Also, how do I use the .db file? I can't figure out how to create it.

Thanks.

Go to action menu and create .db from there.

[14:13:56] - Checking for directory where drivers will be copied.

[14:13:56] - Target directory (C:\PnPDrivers) already exists. Using it.

[14:13:56] - Copying drivers from E:\ms163a\drivers to C:\PnPDrivers. Please wait!

[14:14:41] - Copy process is done.

Were your drivers in the E:\ms163a\drivers directory ? Seems like it was copying the drivers for almost 40 seconds.. to C:\PnPDrivers.. YOu didn't see them?

1. If you choose to change the config from within the app, it does not make those changes to the XML file, and it does not save those settings if I were to go back into that menu again.

I've just done the menu/gui and haven't done the code behind it ;P So you're right it won't work ;)

All in all not sure why it wouldn't detect the devices in the end. When you run my application were there any hardware Wizards running?

Link to comment
Share on other sites

Fantastic my problems are solved! :thumbup It works like a charm. Tumbs up for your help! Can't wait to see more features in the next update.

Happy to hear that it works for you :-D As for the new features, well i recently started coding application in C# for my new company (heh never thought i would be coding anything bigger then simple scripts) and i don't have much time for AutoIt.. also when i started in C# i started thinking "It would be nice to port this app to C#, so much better :)".

But all in all i don't realy have time to keep on working on that. Maybe later :-) Or Maybe i'll release source code and someone could update the code and keep it updated in this thread or so ;) I;ll think about it ;)

Link to comment
Share on other sites

  • 1 month later...

Hi, and thanks Madboy for this great utiliy. I'm from spain and have to support abouts 150 pcs of different hardwares, and drivers always brought me crazy, until now that i am seeing light. Top 5 free utilities for me.

I wonder why if i uninstall my netword card and delete his inf file in windows\inf, then run the program but doesn't detects the device in "errors devices view".

I can see the status code "1" in device manager and with "devcon status *". I Have used devcon findall = Unknown , and nothing. xml's problem_ids = 01,10,etc its ok.

Edited by kefkam
Link to comment
Share on other sites

Hi, and thanks Madboy for this great utiliy. I'm from spain and have to support abouts 150 pcs of different hardwares, and drivers always brought me crazy, until now that i am seeing light. Top 5 free utilities for me.

I wonder why if i uninstall my netword card and delete his inf file in windows\inf, then run the program but doesn't detects the device in "errors devices view".

I can see the status code "1" in device manager and with "devcon status *". I Have used devcon findall = Unknown , and nothing. xml's problem_ids = 01,10,etc its ok.

I've used devcon in first versions of my program but later on i've changed it to WMI due to easier managability. To me it seems that WMI doesn't always catch 'instant' changes. I've kinda stopped developing this AutoIt version of my script further. I have some plans for c# version althought i'm still thinking about it (due to not much to write it) and using better methods then now.

Anyways does the device appear in the Program GUI in either view? Or it doesn't appear in any?

Link to comment
Share on other sites

Device not appear in any view. anyway, on fresh install works like a charm in the only computer i have to format today. (today resume: 3 computers repaired and 1 formated). I have try half docen of commercial aplications for managing drivers and

none have the slightest comparition to this. The use of a database was the perfect idea.

Link to comment
Share on other sites

One important thing the program doesn't do, it's to search for "compatible id" not only "device id". This may be difficult, have been investigating in wmi win32_PnpEntity, and the property "string compatibeid[]", it's not avaible in windows xp. in windows vista it does.

Link to comment
Share on other sites

One important thing the program doesn't do, it's to search for "compatible id" not only "device id". This may be difficult, have been investigating in wmi win32_PnpEntity, and the property "string compatibeid[]", it's not avaible in windows xp. in windows vista it does.

Ah, nice find but the program is mostly for Windows XP. Never tested it on Vista so i don't even know if it works or not ;-)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...