Drivers Instalation in Post-Install stage (New Method) Updated: 1.XII.2009 version 2.0.0.28
#51
Posted 21 August 2006 - 01:47 AM
Tnx!!!
#52
Posted 21 August 2006 - 05:37 AM
For example, if I had a DVD filled with drivers and they would be categorized by type in different set of folders (like, say, E:\Chipset\nForce\, E:\Display\ATI\ or E:\Network\3Com\ etc.), can I just use something like;
Drivers_drive=CDROM Drivers_dir=\
(E: being in this example the CD/DVD drive) and the program will automatically crawl through the subdirectories fetching the right set of drivers for any 'Unknown Devices' there might be?
#53
Posted 21 August 2006 - 05:54 AM
[21:37:20] - Setting path into registry using RegistryDevicePath method.
[21:37:20] - Added to registry: C:\DriversTest\D\C\A
[21:37:20] - Added to registry: C:\DriversTest\D\C\AM\1
[21:37:20] - Added to registry: C:\DriversTest\D\C\AM\2
[21:37:20] - Added to registry: C:\DriversTest\D\C\AM\3
etc
#54
Posted 22 August 2006 - 12:29 AM
MadBoy, on Aug 21 2006, 02:47 AM, said:
Tnx!!!
1) Compaq PC, format and clean install Compaq xp home sp2 CD, no any other programs been installed
2) Dell PC, format and clean install Dell xp Pro sp2 CD, no any other programs been installed
both attachment with 2 log in each file. 1st use your 7z.exe has error for unpack, 2nd with v.4.26 successful unpacking and packing
both PC -"Drivers path was set successfully into registry" but not taking any action. i hope it can help you for debuging
hardware_compaq.zip (53.21K)
Number of downloads: 45
hardware_dell.zip (30.14K)
Number of downloads: 125
This post has been edited by ty628659: 22 August 2006 - 12:35 AM
#55
Posted 22 August 2006 - 07:05 PM
I see you made it with autoit?
Could I get the decompile pasphrase?
#56
Posted 23 August 2006 - 02:55 AM
#57
Posted 24 August 2006 - 09:38 AM
MadBoy- are you working on the issue i was found?
This post has been edited by ty628659: 24 August 2006 - 10:07 AM
#58
Posted 25 August 2006 - 02:43 AM
#59
Posted 26 August 2006 - 12:48 AM
SCREEN_CUT.zip (24.69K)
Number of downloads: 51IN C:\ ROOT Directory
Just put drivers in clean format if it works?
CleanFormat.zip (6.56K)
Number of downloads: 51
here is the log file and hardware.ini, Sorry
If you can't reproduce my problem, I can setup a Remote Workstation, so you can Remote Desktop my Testing WS. ( I need your email address, so can send you ip address and login user and password)
This post has been edited by ty628659: 26 August 2006 - 02:00 AM
#60
Posted 29 August 2006 - 03:50 PM
SetDevicePath & SetupCopyOEMinf?
Or does it use internal code that does the same thing?
I am looking for a SetupCopyOEMinf alike routine...
What's wrong with SetupCopyOEMinf.exe you ask?
Well this is heavily dependant on API calls and if one has suspended all processes until SetupCopyOEMinf finishes this API isn't active.
This post has been edited by devilrunner: 29 August 2006 - 03:51 PM
#61
Posted 30 August 2006 - 02:05 AM
It uses internal routines written in AutoIt v3 with a slight use of "DIR" command
I don't like the SetupCopyOemInf routine either as it's including all the drivers into WINDOWS so in my opinion it's NOT great. But it works
[ty628659]
Thank you for your offer of help but i seriously don't know how to fix your issue even if i would be working on your computer
#62
Posted 30 August 2006 - 10:35 AM
I am using quite allot of drivers:-)
Would it be able to receive the code of that routine?
I am having problems with pyron's exe in conjunction with a suspended setup.exe as illustrated (HERE)
I don't like the available setup.exe resume/wait/resume solution.
This post has been edited by devilrunner: 30 August 2006 - 10:36 AM
#63
Posted 03 September 2006 - 11:24 PM
If $method = "SetupCopyOemInf" Then
_AddLineBox("Integrating drivers with SetupCopyOemInf method.")
$DirOutput = Run(@ComSpec & " /c DIR /A:D /S " & $path_to_drivers, '', @SW_HIDE, 2)
While 1
$DirData = StdoutRead($DirOutput)
If @error Then ExitLoop
If $DirData Then
$DirOutputOnce &= $DirData
Else
Sleep(10)
EndIf
WEnd
; Remove spaces from output
$DirOutputOnce = StringStripWS($DirOutputOnce, 3)
; Split output into array
$DirSplit = StringSplit($DirOutputOnce, @CRLF, 1)
$NrCopiedInfs = 0
For $i = 1 To $DirSplit[0]
If StringInStr($DirSplit[$i], $path_to_drivers) Then
$registrystring = StringSplit($DirSplit[$i], ": ", 1)
If $registrystring[0] = 2 Then; Testing amount of elements in array, if more then 2 Exits
If StringInStr($registrystring[2], $path_to_drivers) Then; Making sure that Drivers path exists in string
$drivers_directory = $registrystring[2]
$search_ini = FileFindFirstFile($drivers_directory & "\*.inf")
If $search_ini = -1 Then
Else
$dll_exe = DllOpen("setupapi.dll")
While 1
$search_file = FileFindNextFile($search_ini)
$full_path_to_inf = $drivers_directory & "\" & $search_file
If @error Then ExitLoop
$dll_result = DllCall($dll_exe, "int", "SetupCopyOEMInf", "str", $full_path_to_inf, "str", "", "int", 1, "int", 8, "str", "", "int", 0, "int", 0, "str", "")
If $logging_option = "Advanced" Then
If @error = 0 Then
_AddLineBox("Inf integration passed: " & $drivers_directory & "\" & $search_file)
$NrCopiedInfs = $NrCopiedInfs + 1
ElseIf @error = 1 Then
_AddLineBox("Inf integration failed: " & $drivers_directory & "\" & $search_file)
ElseIf @error = 2 Or @error = 3 Then
_AddLineBox("Unknown return type or Function not found in DLL. Tell author about it!")
EndIf
EndIf
WEnd
DllClose($dll_exe)
EndIf
FileClose($search_ini)
EndIf
EndIf
EndIf
Next
If $NrCopiedInfs = 1 Then _AddLineBox("SetupCopyOemInf method completed. " & $NrCopiedInfs & " driver was integrated.")
If $NrCopiedInfs = 0 Then _AddLineBox("SetupCopyOemInf method completed. No drivers were integrated.")
If $NrCopiedInfs <> 0 And $NrCopiedInfs <> 1 Then _AddLineBox("SetupCopyOemInf method completed. " & $NrCopiedInfs & " drivers were integrated.")
$DeviceDrivers = "PASSED"
EndIf
Enjoy
#64
Posted 04 September 2006 - 02:15 PM
U rock!
I expect to be releasing my own drivers from cd method with this fix very soon...
So we can all get rid of that resume/wait/resume/wait fix.
Many thx to madboy
This post has been edited by devilrunner: 04 September 2006 - 02:16 PM
#65
Posted 05 September 2006 - 08:26 PM
#66
Posted 06 September 2006 - 07:51 AM
#67
Posted 06 September 2006 - 12:29 PM
I copied text from Possible settings for hardware.ini from first post. But it would be great if instructions could be included with program.
Thanks keep up the great work
#68
Posted 07 September 2006 - 02:06 AM
#69
Posted 07 September 2006 - 07:35 AM
I've just created an unattended 64 bit XP-CD and now want to integrate some SATA/RAID drivers.
#70
Posted 07 September 2006 - 08:17 AM
Cheers,



Help


Back to top








