Jump to content

Drivers Instalation in Post-Install stage (New Method)


MadBoy

Recommended Posts

no the previous is still there

Com Error with DOM

err.description is:

err.windescription is : evises..

err.number is: 80041013

err.lastdllerror is : 0

err. scriptline is: -1

err.sourse is:

err helpfile is:

err.helpcontext is:

and now i also have the autoit error :)

my .xml

<?xml version="1.0" encoding="utf-8"?>

<settings>

<basic_configuration>

<choice>Automatic</choice>

<drivers>

<drivers_drive>RELATIVE</drivers_drive>

<drivers_directory>\drivers</drivers_directory>

<drivers_packed>No</drivers_packed>

<drivers_copy>No</drivers_copy>

<drivers_copy_path></drivers_copy_path>

<drivers_copy_delete>No</drivers_copy_delete>

<options>

<method>SetupCopyOemInf</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_nessecary>No</auto_reboot_when_nessecary>

<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>hardware.log</log_filename>

<log_path>$ProgramDir</log_path>

<log_option>Simple</log_option>

</log>

<gui>

<hide_legacy_devices>No</hide_legacy_devices>

<fade_in_effect>No</fade_in_effect>

</gui>

</basic_configuration>

</settings>

my log

[16:47:36] - Started program on computer HOME-84C113F3A7.

[16:47:36] - Detecting Windows version - Windows 2003 x32

[16:47:36] - Directory with drivers (G:\drivers) exist.

[16:47:37] - Discovering basic information about all system devices..

[16:47:38] - Discovering advanced information about all system devices..

[16:47:40] - Cleaning up devices list from non-essential devices...

[16:47:40] - Building up simple devicelist...

[16:47:41] - Building up advanced devicelist...

[16:47:43] - Building up error devicelist...

[16:47:43] - Found process rundll32.exe with PID 2008. Ignoring that process!

[16:47:43] - Integrating drivers with SetupCopyOemInf method.

[16:49:26] - SetupCopyOemInf method completed. No drivers were integrated.

[16:49:26] - Removing unknown hardware from system.

[16:49:26] - Removing hardware ID: PCI\VEN_10DE&DEV_006A&SUBSYS_57001462&REV_A1\3&13C0B0C5&0&30

[16:49:27] - Unknown devices were removed successfully.

[16:49:27] - Forcing system to detect Plug & Play Devices.

i uninstalled the audio driver and my vga and tested it didnt found any driver for these

Link to comment
Share on other sites


no the previous is still there

Com Error with DOM

err.description is:

err.windescription is : evises..

err.number is: 80041013

err.lastdllerror is : 0

err. scriptline is: -1

err.sourse is:

err helpfile is:

err.helpcontext is:

and now i also have the autoit error :)

my .xml

<?xml version="1.0" encoding="utf-8"?>

<settings>

<basic_configuration>

<choice>Automatic</choice>

<drivers>

<drivers_drive>RELATIVE</drivers_drive>

<drivers_directory>\drivers</drivers_directory>

<drivers_packed>No</drivers_packed>

<drivers_copy>No</drivers_copy>

<drivers_copy_path></drivers_copy_path>

<drivers_copy_delete>No</drivers_copy_delete>

<options>

<method>SetupCopyOemInf</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_nessecary>No</auto_reboot_when_nessecary>

<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>hardware.log</log_filename>

<log_path>$ProgramDir</log_path>

<log_option>Simple</log_option>

</log>

<gui>

<hide_legacy_devices>No</hide_legacy_devices>

<fade_in_effect>No</fade_in_effect>

</gui>

</basic_configuration>

</settings>

my log

[16:47:36] - Started program on computer HOME-84C113F3A7.

[16:47:36] - Detecting Windows version - Windows 2003 x32

[16:47:36] - Directory with drivers (G:\drivers) exist.

[16:47:37] - Discovering basic information about all system devices..

[16:47:38] - Discovering advanced information about all system devices..

[16:47:40] - Cleaning up devices list from non-essential devices...

[16:47:40] - Building up simple devicelist...

[16:47:41] - Building up advanced devicelist...

[16:47:43] - Building up error devicelist...

[16:47:43] - Found process rundll32.exe with PID 2008. Ignoring that process!

[16:47:43] - Integrating drivers with SetupCopyOemInf method.

[16:49:26] - SetupCopyOemInf method completed. No drivers were integrated.

[16:49:26] - Removing unknown hardware from system.

[16:49:26] - Removing hardware ID: PCI\VEN_10DE&DEV_006A&SUBSYS_57001462&REV_A1\3&13C0B0C5&0&30

[16:49:27] - Unknown devices were removed successfully.

[16:49:27] - Forcing system to detect Plug & Play Devices.

i uninstalled the audio driver and my vga and tested it didnt found any driver for these

Change the Internal To Devcon in the config as suggested by me. It clearly crashes on the Plug & Play that i mentioned that's why it doesn't run anything. Do other WMI based scripts run on that windows without problem?

Also:

[16:47:43] - Integrating drivers with SetupCopyOemInf method.

[16:49:26] - SetupCopyOemInf method completed. No drivers were integrated.

Means somethng is wrong. Change Log from Simple to Advanced and try again posting the log file. Eventually then run it again and change Advanced to Debug and post it too ;)

Edited by MadBoy
Link to comment
Share on other sites

what is the Internal To Devcon where to change that?

i dont know about other other WMI based scripts i becouse i just formatted to a fresh install of 2k3 server by xPErience . maybe it has some issues.

It would be that:

<plug_and_play>

<option>Internal</option>

<time_to_wait>15</time_to_wait>

</plug_and_play>

But Smoke_N fixed the problem right away for me ;) So just download this (http://pro-solutions.org/download.php?id=1234267699) and try again without that change. Change this thou:

<log>

<log_overwrite>No</log_overwrite>

<log_to_file>Yes</log_to_file>

<log_filename>hardware.log</log_filename>

<log_path>$ProgramDir</log_path>

<log_option>Simple</log_option>

</log>

To

<log>

<log_overwrite>No</log_overwrite>

<log_to_file>Yes</log_to_file>

<log_filename>hardware.log</log_filename>

<log_path>$ProgramDir</log_path>

<log_option>Advanced</log_option>

</log>

Or even <log_option>Debug</log_option>

Link to comment
Share on other sites

ok now there is no errors but after driver intergration ok it removes the unknown devices and then the force system to detect plug and play starts and wizard "new hardware found "starts again....

i press cancel and the programs stays there doing nothing "system is now detecting and installs drivers for ur hardware"

[20:49:19] - Started program on computer HERC2K.

[20:49:19] - Detecting Windows version - Windows XP x32

[20:49:19] - Directory with drivers (H:\drivers) exist.

[20:49:19] - Discovering basic information about all system devices..

[20:49:21] - Discovering advanced information about all system devices..

[20:49:28] - Cleaning up devices list from non-essential devices...

[20:49:29] - Building up simple devicelist...

[20:49:30] - Building up advanced devicelist...

[20:49:33] - Building up error devicelist...

[20:49:33] - Found process rundll32.exe with PID 376. Ignoring that process!

[20:49:33] - Integrating drivers with SetupCopyOemInf method.

[20:49:37] - Inf integration passed: H:\drivers\DP_LAN_wnt5_x86-32_7101\D\L\Z\1\net150.inf

[20:49:38] - Inf integration passed: H:\drivers\DP_LAN_wnt5_x86-32_7101\D\L\X\2\netcem56.inf

[20:49:39] - Inf integration passed: H:\drivers\DP_LAN_wnt5_x86-32_7101\D\L\X\1\netcbe.inf

[20:49:39] - Inf integration passed: H:\drivers\DP_LAN_wnt5_x86-32_7101\D\L\V\3\getndis.inf

[20:49:40] - Inf integration passed: H:\drivers\DP_LAN_wnt5_x86-32_7101\D\L\V\2\pciw2k.inf

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\A\3\AEC6280.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\A\3\AEC6290.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\A\2\AEC6260.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\A\1\AEC6210.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\3\OEMSETUP3.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\3WMANAGE1.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\OEMSETUP1.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\O\3WMANAGE.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\O\3WSAFTE.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\O\3WSES.INF

[20:52:25] - Inf integration passed: H:\drivers\DP_MassStorage_wnt5_x86-32_7092\D\M\3\1\O\OEMSETUP.INF

[20:52:25] - SetupCopyOemInf method completed. 1412 drivers were integrated.

[20:52:25] - Removing unknown hardware from system.

[20:52:25] - Removing hardware ID: PCI\VEN_109E&DEV_036E&SUBSYS_001211BD&REV_11\4&3B1D9AB8&0&4840

[20:52:25] - Using part of hardware ID: PCI\VEN_109E&DEV_036E&SUBSYS_001211BD&REV_11

[20:52:25] - Advanced Output: PCI\VEN_109E&DEV_036E&SUBSYS_001211BD&REV_11\4&3B1D9AB8&0&4840: Removed

[20:52:25] - Advanced Output: 1 device(s) removed.

[20:52:25] - Removing hardware ID: PCI\VEN_109E&DEV_0878&SUBSYS_001211BD&REV_11\4&3B1D9AB8&0&4940

[20:52:25] - Using part of hardware ID: PCI\VEN_109E&DEV_0878&SUBSYS_001211BD&REV_11

[20:52:26] - Advanced Output: PCI\VEN_109E&DEV_036E&SUBSYS_001211BD&REV_11\4&3B1D9AB8&0&4840: Removed

[20:52:26] - Advanced Output: 1 device(s) removed.PCI\VEN_109E&DEV_0878&SUBSYS_001211BD&REV_11\4&3B1D9AB8&0&4940: Removed

[20:52:26] - Advanced Output: 1 device(s) removed.

[20:52:26] - Unknown devices were removed successfully.

[20:52:26] - Forcing system to detect Plug & Play Devices.

[20:52:26] - System is now detecting and installing drivers for your hardware. Please wait!

and it hungs there forever

i didnt put the whole debug log because it would be about 3 pages i just post a few lines from the start and a few from the bottom

the main problem is that the wizzard is poping up when it detects hardware and the program hungs there

Edited by herc2k
Link to comment
Share on other sites

ok now there is no errors but after driver intergration ok it removes the unknown devices and then the force system to detect plug and play starts and wizard "new hardware found "starts again....

i press cancel and the programs stays there doing nothing "system is now detecting and installs drivers for ur hardware"

and it hungs there forever

i didnt put the whole debug log because it would be about 3 pages i just post a few lines from the start and a few from the bottom

the main problem is that the wizzard is poping up when it detects hardware and the program hungs there

What does happen when the Wizard comes up and you just press next next next (just like you would normally do)? Does it works? Install drivers?

Also when you integrated the drivers and you go to Device Manager (after closing my program) and you do "refresh" delete the devices manually and press 'refresh' does it also bring Hardware wizard.

Also are you sure that the drivers that you integrated cover the drivers that you need?

EDIT: removed the server question. don't know where i got that you're using the program on Win2003 :/

Edited by MadBoy
Link to comment
Share on other sites

i had 2k3 server now i installed last xp 17

my system is nforce 2, amd k6, gforce6600 so i believe the driver packs have those drivers (im not sure thou )

when wizzrd starts i always press cancel so far. i will try the program again on weekend.

but generally the problem is the wizzard it shouldnt pop up because we need this program to be fully automatic .i dont want to press next next cancel , yes ,yes ,no and all these questions that windows always do.

Link to comment
Share on other sites

i had 2k3 server now i installed last xp 17

my system is nforce 2, amd k6, gforce6600 so i believe the driver packs have those drivers (im not sure thou )

when wizzrd starts i always press cancel so far. i will try the program again on weekend.

but generally the problem is the wizzard it shouldnt pop up because we need this program to be fully automatic .i dont want to press next next cancel , yes ,yes ,no and all these questions that windows always do.

I understand. The wizard shouldnt come up if the drivers are correctly found by Windows at locations that are applied to registry or by setupcopyoeminf. That's why i wonder if you press "next' next nexgt will it work :)

Link to comment
Share on other sites

i have the same problem: the wizard coming up.. however, when pressing next next next... it doesnt work: file not found dialog, prompting for file location, when pointing to file, weird things happen:

1. file keeps getting not recognized

2. for some reason a "\" is prepended to the path that is returned everytime it said 'file not found'.. so i guess sometihng is set wrong with that path

also, i have the "COM error with DOM!" stuff... see attached screenshot

hardware_config.xml in attachment

location of drivers: unpacked driverpacks at z:\drivers

os = win2k

The inf dataase project seems very promising, and i think it will be the solution to most of my problems with this program

post-115454-1195469882_thumb.jpg

Link to comment
Share on other sites

i have the same problem: the wizard coming up.. however, when pressing next next next... it doesnt work: file not found dialog, prompting for file location, when pointing to file, weird things happen:

1. file keeps getting not recognized

2. for some reason a "\" is prepended to the path that is returned everytime it said 'file not found'.. so i guess sometihng is set wrong with that path

also, i have the "COM error with DOM!" stuff... see attached screenshot

hardware_config.xml in attachment

location of drivers: unpacked driverpacks at z:\drivers

os = win2k

The inf dataase project seems very promising, and i think it will be the solution to most of my problems with this program

Ye ye, the error seems to be there for a lot of ppl so i'll try to reproduce it why it happens. As for the Wizard comming up i'll check it out aswell. The Inf database is my priority after finishing up with the errors ;) I've some working code for the db creation but it seems that getting thru a lot of .inf files takes a lot of time. It may be worth it thou as the RegistryDevicePath limit won't be the concern here anymore. I'll be trying to optimize the code. Just hold on.

Link to comment
Share on other sites

it be worth it especially in the following scenario:

* drivers always located on same location (eg z:\drivers)

* program always called from same location (so the once created DB is always available)

which is (of course) my scenario

ibliss

PS: why cant windoze just use a top-tree directory as DevicePath and search it recursively for drivers.... *sigh*

Link to comment
Share on other sites

i have the same problem: the wizard coming up.. however, when pressing next next next... it doesnt work: file not found dialog, prompting for file location, when pointing to file, weird things happen:

1. file keeps getting not recognized

2. for some reason a "\" is prepended to the path that is returned everytime it said 'file not found'.. so i guess sometihng is set wrong with that path

also, i have the "COM error with DOM!" stuff... see attached screenshot

hardware_config.xml in attachment

location of drivers: unpacked driverpacks at z:\drivers

os = win2k

The inf dataase project seems very promising, and i think it will be the solution to most of my problems with this program

Ye ye, the error seems to be there for a lot of ppl so i'll try to reproduce it why it happens. As for the Wizard comming up i'll check it out aswell. The Inf database is my priority after finishing up with the errors ;) I've some working code for the db creation but it seems that getting thru a lot of .inf files takes a lot of time. It may be worth it thou as the RegistryDevicePath limit won't be the concern here anymore. I'll be trying to optimize the code. Just hold on.

just some info: i dont get the "COM error with DOM!" on one of my winxp machines (have tested it only so far with a machine that has been running for a while, so maybe there have been some extra/new components installed... (XML parsing COM stuff probably, maybe something with updated IE components?)

Link to comment
Share on other sites

it be worth it especially in the following scenario:

* drivers always located on same location (eg z:\drivers)

* program always called from same location (so the once created DB is always available)

which is (of course) my scenario

Ye that's my point to create it.

Problem is that after going thru all files from bashrat drivers pack the file with db output is 850kb in size!!! Putting it both at file/memory at same time takes around 662008.467556631ms = 6minutes. Depending if hdd/ram cache kicked in it might be longer. Also it will be hardware dependant. I'm wondering how much time it will take to load it from file to memory (at the time of using the app from earlier preparation) if it will be any faster then doing it all at the time of instalation.

Anyway i'll do more testing, will try to remove some unnessecary code + put some additinal code how to handle it. I will probably introduce 2 options. One to use be used as created predb and then loading from at time of instalation or doing it straight at deployment time. One way or another it will take some time :)

Then you have to load it with my program

Link to comment
Share on other sites

just some info: i dont get the "COM error with DOM!" on one of my winxp machines (have tested it only so far with a machine that has been running for a while, so maybe there have been some extra/new components installed... (XML parsing COM stuff probably, maybe something with updated IE components?)

I would check if you can run WMI calls or does it crashes aswell (can be any .vbs file with WMI call) as the function it's breaking is using WMI calls. Can't find anything else that would crash it.

Link to comment
Share on other sites

Can anyone with the COM with DOM! problems please test this solution:

1. http://www.computerperformance.co.uk/Logon...de_80041013.htm

seems like it's a problem with WMI. So if anyone can confirm this is a solution i'll put it on a first page or in future documentation. It's not something i can realy prevent of happing i guess since it's working just fine on computers that are up to date!

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...