MSFN Forum: Drivers from CD: Simple Method - MSFN Forum

Jump to content


  • 12 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Drivers from CD: Simple Method Rate Topic: ***** 1 Votes

#21 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 13 August 2005 - 12:17 AM

what do you mean by idle-mode? does that mean that if I inclue extracting the 7zip archive using Run.Wait it will idle at DetachedProgram?

Also, why the need to input the cd when using this method for any devices that were not connected during install...is it because of a registry setting? Im just asking if it is something we can change because I copy the driver directory from the cd to hard drive just for the purpose of not needing the cd again.

This post has been edited by evilvoice: 13 August 2005 - 03:17 AM



#22 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 13 August 2005 - 05:07 AM

Different write up for the script.

; Files To Use
$FILE_0 = "setup.exe"
$FILE_1 = "WatchDriverSigningPolicy.exe"
$FILE_2 = "SetupCopyOEMInf.exe "

$CD = DriveGetDrive( "CDROM" )

; Check Drives
For $I = 1 to $CD[0]
	If FileExists( $CD[$I] & "\win51ip.SP2" ) Then $iDrive = $CD[$I] & "\$oem$\"
Next

; Setup = Idle
ProcessSetPriority	( $FILE_0 , 0 )

; Process Drivers
Run  ( $iDrive & $FILE_1 )
ProcessWait	( $FILE_1 )
RunWait  ( $iDrive & $FILE_2 & $iDrive & "Drivers" )
ProcessClose	( $FILE_1 )

; Setup = Normal
ProcessSetPriority	( $FILE_0 , 2 )

; Delete File
FileDelete	( @SystemDir & "\driver.au3" )


Not sure if the ProcessWait is really needed tho...then again haven't tested this method yet ether.

#23 User is online   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 28-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 13 August 2005 - 09:29 AM

If you want all drivers get installed from HDD you have only to modify the SetupCopyOEMInf.exe command line.

For example you want the Drivers to be located in \Windows\Drivers you can use this code:

driver.au3
$CD = DriveGetDrive("CDROM")
For $I=1 to Number($CD[0])
$pa = $CD[$I] & "\win51ip.SP2"
  If FileExists($pa) Then
     $instDrv=$CD[$I]
  Endif
Next
ProcessSetPriority ( "setup.exe", 0)
Run($instDrv & "\$oem$\WatchDriverSigningPolicy.exe")
ProcessWait("WatchDriverSigningPolicy.exe")
RunWait($instDrv &  "\$oem$\SetupCopyOEMInf.exe " & @WindowsDir & "\Drivers")
ProcessClose("WatchDriverSigningPolicy.exe")
ProcessSetPriority ( "setup.exe", 2)
FileDelete(@SystemDir & "\driver.au3")


Where in $oem$\$$\System32:
autoit3.exe
driver.au3


Following files in $oem$
SetupCopyOEMInf.exe
WatchDriverSigningPolicy.exe


And in $oem$\$$\drivers your driver files :)

This post has been edited by hp38guser: 13 August 2005 - 09:29 AM


#24 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 13 August 2005 - 10:16 AM

so why the need for a06lp's last note in the first post? I assumed it was something else, like a registry problem, or something, but if using setupcopyoeminf.exe on the windows\source\drivers dir will make it so windows does not prompt for the cd when installing NEW devices, then Ill use that method, just thought it was more in depth.

#25 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 26 August 2005 - 12:25 AM

still havent tried it out yet, but i do think this should be stickied or merged...or something to keep it at the top...a bunch of people say this method works better than the previous version...so maybe the old should be replaced with the new?

#26 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 31 August 2005 - 07:06 PM

Just thought I'd point something out...

The OTHER Drivers-from-CD method didn't work with RyanVM's Update Packs.

However, this method, as outlined in the first post, is tested, and WORKS, with v1.3.1 of his pack. Enjoy!

:thumbup :whistle:

#27 User is offline   Oleg_II 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 679
  • Joined: 06-August 04

Posted 04 September 2005 - 11:24 AM

Does this method work for Windows 2000 Pro? I tried to follow instructions on the first page, change only one thing in Drivers.au3: win51ip.SP2 to cdrom_ip.5. But it didn't work for me.

In old method there is a possibility to compress drivers, place them on CD and then uncompress from CD to the system drive installing from there. Is it possible in new method? Sorry I'm not familiar with AutoIt.

Regards,
Oleg 2

#28 User is offline   Afterdawn 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 04-November 04

Posted 05 September 2005 - 01:13 PM

Great work, all of you :thumbup

Will now test if this works from USB drives as well, by means of the DriveGetDrive("ALL") instruction.

Also, Bashrat, why don't you make this one a sticky and "un-sticky" the "Unlimited number of drivers + keeping the drivers." thread since that one is outdated.

This post has been edited by Afterdawn: 05 September 2005 - 01:15 PM


#29 User is offline   Afterdawn 

  • Member
  • PipPip
  • Group: Members
  • Posts: 179
  • Joined: 04-November 04

Posted 05 September 2005 - 03:43 PM

Yes yes it works like a charm! Now I've got all my applications / hotfixes, tweaks ánd all my drivers on my 2GB USB flashdrive! :D Only when a new Service Pack is released I will need to update my CD!

Thanks to all of you!

Here is my modified auto-it script file btw:
$array = DriveGetDrive("ALL")
For $item=1 to Number($array[0])
  $srcPath = $array[$item] & "\drivers"
  If FileExists($srcPath) Then
     ProcessSetPriority("setup.exe", 0)
     Run($srcPath & "\WatchDriverSigningPolicy.exe")
     ProcessWait("WatchDriverSigningPolicy.exe")
     RunWait($srcPath & "\SetupCopyOEMInf.exe " & $srcPath)
     ProcessClose("WatchDriverSigningPolicy.exe")
     ProcessSetPriority("setup.exe", 2)
  Endif
Next
FileDelete(@WindowsDir & "\t39.au3")

Note that there are a few things different here:
- All used drive letters will be searched for a directory called \drivers
- It assumes that WatchDriverSigningPolicy.exe and SetupCopyOEMInf.exe are in this directory
- These two files are not deleted, only the auto-it script file (which in my case is called t39.au3 in the Windows directory)

One more thing: When you're installing Windows XP and you are at the partitioning part of the Setup (the only part which isn't unattended in my case), you should be able to see your flashdrive already. This way you can check whether it shall be accessible at the t-39 minute stage. The used filesystem (FAT or NTFS) isn't of any importance.

This post has been edited by Afterdawn: 06 September 2005 - 08:25 AM


#30 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 05 September 2005 - 04:15 PM

glad to hear it works. :)

one of the great things about the autoit aspect of this method is that its so customizable.

enjoy! :thumbup

#31 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 06 September 2005 - 01:14 AM

Afterdawn, on Sep 5 2005, 03:43 PM, said:

Note that there are a few things different here:
- All used drive letters will be searched for a directory called \drivers
- It assumes that WatchDriverSigningPolicy.exe and SetupCopyOEMInf.exe are in this directory
- These two files are not deleted, only the auto-it script file (which in my case is called t39.au3 in the Windows directory)


Thanks for your own version of the script. It's more versatile to search for drivers in a directory in ALL used drive letters rather than specifing CDROM or FIXED.

This post has been edited by Bilou_Gateux: 24 September 2005 - 03:26 AM


#32 User is offline   osborned_rcc 

  • MIS Support Manager
  • Group: Members
  • Posts: 22
  • Joined: 15-July 05

Posted 08 September 2005 - 10:13 AM

I'm having a problem where SetupCopyOEMInf.exe does not finish running before Setup starts driver detection. It gets about halfway through and then detection kicks in during integration. It still finishes, but I don't know if I'm losing a few drivers or not. Is there something I can do about this?

#33 User is offline   evilvoice 

  • Ditchy McAbandonpants
  • PipPipPipPipPip
  • Group: Members
  • Posts: 946
  • Joined: 27-January 04

Posted 08 September 2005 - 12:23 PM

Ive actually thought about this (may be why I havent tested it out yet) but I was looking into 7zipping all the files and extracting them and running the commands, but the problem would be if setup starts before it finishes.

#34 User is offline   mGforCe 

  • Newbie
  • Group: Members
  • Posts: 12
  • Joined: 23-January 05

Posted 17 September 2005 - 02:07 PM

Thnx for providimg this nice guide and to all for their inputs.. I am going to make UXPCD withthis methods. I am compressing drivers using this method (http://www.msfn.org/...showtopic=35869) , I hope it will not create any problem..

#35 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 September 2005 - 11:48 AM

Afterdawn, on Sep 6 2005, 12:43 AM, said:

Also, Bashrat, why don't you make this one a sticky and "un-sticky" the "Unlimited number of drivers + keeping the drivers." thread since that one is outdated.<{POST_SNAPBACK}>
Please PM him to bring it to his attention.

#36 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 24 September 2005 - 03:57 AM

*** removed ***

This post has been edited by Bilou_Gateux: 05 October 2005 - 08:44 AM


#37 User is offline   BobRein 

  • Group: Members
  • Posts: 2
  • Joined: 06-September 05

Posted 30 September 2005 - 04:56 PM

I tried this method for a BroadCom 57xx network interface card and it failed. Although it did try to install it evidenced by the yellowed out Ethernet Controller unter network device in the device manager -- that it would not do before. It is the Dell download R87461.exe where I got the driver. What else can I do to get this NIC installed ? Is it a new Microsoft driver signing issue or what ? Thanks.

Bob.Rein@FAA.GOV

#38 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 01 October 2005 - 05:31 PM

BobRein, on Sep 30 2005, 06:56 PM, said:

It is the Dell download R87461.exe where I got the driver.


Did you extract the files form the download? this method looks for the INF file...

#39 User is offline   Bâshrat the Sneaky 

  • aka Wim Leers
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,214
  • Joined: 29-October 03
  • OS:none specified
  • Country: Country Flag

Posted 02 October 2005 - 12:32 PM

Stickied! ;) :)

#40 User is online   Acheron 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 939
  • Joined: 28-June 04
  • OS:XP Pro x86
  • Country: Country Flag

Posted 04 October 2005 - 11:21 AM

Rewritten the program. It's now even easier!

run autoit3.exe and presetup.au3 from cd (no need for copying to system32 folder anymore):

i386\WinNT.sif
[GuiUnattended]
DetachedProgram = ".\system32\cmd.exe"
Arguments="/Q /C FOR /F %I IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) DO (FOR %J IN (%I$OEM$) DO (IF EXIST %J (start /min /D%J Autoit3.exe presetup.au3)))"


$OEM$\:
autoit3.exe
presetup.au3
SetupCopyOEMInf.exe
WatchDriverSigningPolicy.exe


$OEM$\presetup.au3
ProcessSetPriority("setup.exe",0)
Run(@ScriptDir & "\WatchDriverSigningPolicy.exe")
ProcessWait("WatchDriverSigningPolicy.exe")
RunWait(@ScriptDir & "\SetupCopyOEMInf.exe Drivers")
ProcessClose("WatchDriverSigningPolicy.exe")
ProcessSetPriority("setup.exe",2)


CD-Layout:

Quote

├───$OEM$
│      └───Drivers
│               ├───C-Media CMI8738 6.39
│               └───Laptop
│               │     ├───Infared 12.6
│               │     └───Touchpad
│               ├───Medion SAA7134 2.3.1.0
│               ├───Monitor
│               │     └───AL712
│               ├───nVidia ForceWare 77.72
│               └───Samsung ML-1210
│        AutoIt3.exe
│        PreSetup.au3
│        SetupCopyOEMInf.exe
│        WatchDriverSigningPolicy.exe           
└───I386
          winnt.sif


Thanks for info idle.newbie :hello:

This post has been edited by hp38guser: 09 October 2005 - 04:19 PM


Share this topic:


  • 12 Pages +
  • 1
  • 2
  • 3
  • 4
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

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



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