MSFN Forum: Drivers Instalation in Post-Install stage (New Method) - MSFN Forum

Jump to content



  • 31 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Drivers Instalation in Post-Install stage (New Method) Updated: 1.XII.2009 version 2.0.0.28 Rate Topic: -----

#51 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 21 August 2006 - 01:47 AM

http://oppetid.no/ma...dware_0.4.9.exe --> and add in hardware.ini Debug = Yes Now most of the variables should be put in log before they are used and also unpacking and packing have now output so we should be able to tell what's wrong. I also put newest 7zip in it so hopefully problem is gone. Please check it out.

Tnx!!!


#52 User is offline   Troutmask 

  • Group: Members
  • Posts: 1
  • Joined: 21-August 06

Posted 21 August 2006 - 05:37 AM

Can this neat little proggy find drivers under subdirectories in the installation path? Can't try this out myself just now, but I was just wondering.

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 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 21 August 2006 - 05:54 AM

That's the whole idea :) Otherwise it wouldn't be usefull...

[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

;) and so on..

#54 User is offline   ty628659 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-October 04

Posted 22 August 2006 - 12:29 AM

View PostMadBoy, on Aug 21 2006, 02:47 AM, said:

http://oppetid.no/ma...dware_0.4.9.exe --> and add in hardware.ini Debug = Yes Now most of the variables should be put in log before they are used and also unpacking and packing have now output so we should be able to tell what's wrong. I also put newest 7zip in it so hopefully problem is gone. Please check it out.

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

:no:
Attached File  hardware_compaq.zip (53.21K)
Number of downloads: 45Attached File  hardware_dell.zip (30.14K)
Number of downloads: 125

This post has been edited by ty628659: 22 August 2006 - 12:35 AM


#55 User is offline   devilrunner 

  • Junior
  • Pip
  • Group: Members
  • Posts: 53
  • Joined: 01-June 04

Posted 22 August 2006 - 07:05 PM

I like your program and would like to see the code for this...
I see you made it with autoit?

Could I get the decompile pasphrase?

#56 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 23 August 2006 - 02:55 AM

There's no decompile passphrase for it. I compile it without the ability to decompile. I'm not releasing source until it will be FULLY working release ;) As in not having all the problems issues and when i'm done coding it. It might take a while. In the meantime you could help by testing out current version and trying to spot errors ;) Like the one that other guy has. Wonder if it's only him having it or more ppl does.

#57 User is offline   ty628659 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-October 04

  Posted 24 August 2006 - 09:38 AM

after 3 days reporting error of v0.49/0.44, does anyone reproduce the issue or i am the only one testing the program. i realy like this program if it works, I hope more people can spend little time try it. :hello:

MadBoy- are you working on the issue i was found?

This post has been edited by ty628659: 24 August 2006 - 10:07 AM


#58 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 25 August 2006 - 02:43 AM

Yes i'm working on this issue. I tried to include DLLCALL to 7zip.dll but it has diffrent aproach so would have to rebuild some functions preety heavy. So instead i will try to download driverpacks and test on new ones why the problem with unpacking occurs. As for non-finding unpacked drivers can you check "DIR /A:D /S" in cmd line and paste like first 5 lines or so? Can you also try with drivers unpacked? Just put drivers in clean format if it works? It would be very weird if it doesn't ;) Since i tested that on couple of computers and never had problems.

#59 User is offline   ty628659 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-October 04

Posted 26 August 2006 - 12:48 AM

Attached File  SCREEN_CUT.zip (24.69K)
Number of downloads: 51IN C:\ ROOT Directory

Just put drivers in clean format if it works?
Attached File  CleanFormat.zip (6.56K)
Number of downloads: 51

here is the log file and hardware.ini, Sorry :realmad: it doesn't worked in local hard drive

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 User is offline   devilrunner 

  • Junior
  • Pip
  • Group: Members
  • Posts: 53
  • Joined: 01-June 04

Posted 29 August 2006 - 03:50 PM

Does your program use external programs for :
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 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 30 August 2006 - 02:05 AM

[devilrunner]
It uses internal routines written in AutoIt v3 with a slight use of "DIR" command ;) On begining i used Pyron's external programs but as soon someone explained me how those programs works i wrote them in AutoIt.
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 :P

[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 :) I am just wondering wtf is wrong ;) Would be nice if someone else could try the exact steps you're doing so i could confirm it's one big BUG that needs fixing, still it would be weird that it doesn't work in your cases at all ;) I don't see where you oculd have done wrong and where the program could be wrong. Especially i'm curious why 7zip doesn't work as it should as i think 7zip is backwards compatible.

#62 User is offline   devilrunner 

  • Junior
  • Pip
  • Group: Members
  • Posts: 53
  • Joined: 01-June 04

Posted 30 August 2006 - 10:35 AM

Well I don't like it either but it's the only way arround the setdevicepath limitations for me..
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 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 03 September 2006 - 11:24 PM

Devilrunner:

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 User is offline   devilrunner 

  • Junior
  • Pip
  • Group: Members
  • Posts: 53
  • Joined: 01-June 04

Posted 04 September 2006 - 02:15 PM

Thx man...
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 User is offline   twig123 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 325
  • Joined: 02-October 05

Posted 05 September 2006 - 08:26 PM

How can this be changed to include the previous version on 7zip? because the newest seems to be causing an issue with un-compressing the 7z files.

#66 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 06 September 2006 - 07:51 AM

I have uploaded new version 0.5.0 on first page. DOwnload it from there and lemme know if the Unpacking works now. I redownloaded commandline version from page changed things a bit. Please check and give feedback. Use Debug = Yes in config file for debugging :)

#67 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 507
  • Joined: 30-July 03

Posted 06 September 2006 - 12:29 PM

MadBoy, great program would it be possible to add your instructions on how to use it i.e hardware.ini switches e.c.t as a help file,
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 :D

#68 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 07 September 2006 - 02:06 AM

Sure, it will be done when ppl will say it WORKS :P I mean there seems to be a problem with packed drivers for some users until i am told ALL is WORKING there's no sense to add help file ;)

#69 User is offline   Doc Symbiosis 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 333
  • Joined: 03-August 04

Posted 07 September 2006 - 07:35 AM

Does this method also work for SATA drivers?
I've just created an unattended 64 bit XP-CD and now want to integrate some SATA/RAID drivers.

#70 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 07 September 2006 - 08:17 AM

This method is completly diffrent method. Sata/Scsi drivers HAVE to be included in Windows installation as otherwise your hdd's will be invisible for Windows so you won't be able to install it. This method is good for other drivers such as graphic cards, audio cards etc

Cheers,

Share this topic:


  • 31 Pages +
  • « First
  • 2
  • 3
  • 4
  • 5
  • 6
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy