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

Jump to content


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

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

#61 User is offline   Acheron 

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

Posted 13 October 2005 - 12:36 PM

Meaby I was wrong with the ..\ thingy.

Can you try the following:

driver.au3

Quote

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


Or if you want to test on a installed system:

open cmd.exe. Browse to the SETUP\XPPRO\$OEM$ dir and run the following:
SetupCopyOEMInf.exe ..\..\..\WPI\Drivers


I still think it should work this way.


#62 User is offline   WebMatze 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 29-July 04

Posted 13 October 2005 - 11:32 PM

Ok,

Itried with one ..\ more and It seems to work,

Thanks

#63 User is offline   nite0859 

  • Professional Slacker
  • Group: Members
  • Posts: 34
  • Joined: 26-May 03

Posted 13 October 2005 - 11:56 PM

Just droping a quick note in here. I made a post over in the BTS driver section here : http://www.msfn.org/...showtopic=58145 . Perhaps the AutoIT method crew can browse it and perhaps use the same suggestion that I made to BTS.

I'm not trying to double post on purpose, so forgive me if I am. I just attempting to get as much feedback as I can.

#64 User is offline   a06lp 

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

Posted 14 October 2005 - 02:51 PM

@nite0859:

It's kinda off-topic.
This topic is not making driver packs - it's to provide a METHOD to install drivers you ALREADY have.

BTS can decide for himself what to do with your post - although get the feeling that his pack is pretty inclusive already...

#65 User is offline   Acheron 

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

Posted 16 October 2005 - 04:48 PM

View PostForsaken163, on Oct 13 2005, 06:23 AM, said:

Is there any possible way to do this, and still have access to the repair function with a SATA hard drive? I have an Asus A8V deluxe, and am using the promise 378 controller in IDE mode, and would like to be able to boot off the cd but still have access to the repair function. I have used xpcreate, and get a disk that access my SATA drive but I cannot use the repair installation function. Does anyone have any feedback on this issue?
Thanks.


You can use this driver method only for PNP-devices. However it's possible to use WinNT.sif and keep the Repair functionality by not specifying a [Unattended] section in WinNT.sif. This will make the TEXTSETUP attended, but keep the GUI part of the setup unattended
:)

#66 User is offline   htc 

  • Member
  • PipPip
  • Group: Members
  • Posts: 252
  • Joined: 14-October 04

Posted 24 October 2005 - 01:19 PM

I've tested it 2 weeks ago - it worked far, far from perfect - ideed, far from good!
I combine usually 10 - 50 inf files(drivers for the same class, e.g. chipsets, nic etc.) into one subdirectory(audio in 5 subdir beause of filename conflict). With method 1 it works perfectly. But with this AutoIt method, it took more time to register all the inf file on the cd than the method 1 to copy all the files from cd onto hdd, much worse, 20%-30% of inf file ware not accepted - so
As long as it not works perfectly, it is useless - It takes also more time for the Installation.

#67 User is offline   erik1983 

  • Group: Members
  • Posts: 1
  • Joined: 08-June 05

Posted 25 October 2005 - 06:48 AM

hey ppl,

this method works great! I've only 1 problem and i've no idea to fix it.

At 39 minutes remaining the autoit script runs and after that hardware is detected i pressume. All hardware is detected, except my monitor. I'm working on a notebook and the regular plug a play monitor should be installed. Setup however comes up with the "new hardware found" screen and asks to search to search for drivers on the internet. Even after searching for drivers manually it doesnt find anything.

When i loggon to windows the first time, the plug en play monitor is found.

Any ideas why setup doesn't find the plug and play monitor and how to fix this?

btw .. all manual drivers for my notebook i copied in the drivers folder where installed without problems

This post has been edited by erik1983: 25 October 2005 - 06:50 AM


#68 User is offline   a06lp 

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

Posted 27 October 2005 - 01:57 PM

@erik1983:

I have no idea. I have a laptop, and have used this method countless times without problems.
I have my Display Drivers on my CD in the Drivers folder.
My laptop is a Toshiba - what do you use? are the drivers in the right place?

#69 User is offline   Acheron 

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

Posted 31 October 2005 - 12:04 PM

View Posthtc, on Oct 24 2005, 08:19 PM, said:

I've tested it 2 weeks ago - it worked far, far from perfect - ideed, far from good!
I combine usually 10 - 50 inf files(drivers for the same class, e.g. chipsets, nic etc.) into one subdirectory(audio in 5 subdir beause of filename conflict). With method 1 it works perfectly. But with this AutoIt method, it took more time to register all the inf file on the cd than the method 1 to copy all the files from cd onto hdd, much worse, 20%-30% of inf file ware not accepted - so
As long as it not works perfectly, it is useless - It takes also more time for the Installation.


To save some time copying you could compress your drivers using the Driver Compressor Tool.

However I may have found the solution :)

EDIT:

Drivers.au3
$list = ProcessList("setup.exe")
$setuppid = $list[1][1]
Run(@ScriptDir&"\pausep.exe "&$setuppid)
Run(@ScriptDir & "\WatchDriverSigningPolicy.exe")
RunWait(@ScriptDir & "\SetupCopyOEMInf.exe Drivers")
ProcessClose("WatchDriverSigningPolicy.exe")
Run(@ScriptDir&"\pausep.exe "&$setuppid&" /r")


You need pausep.exe. Place this file also in the $oem$ directory

Now the only thing we need to do is combine:

pausep.exe
SetupCopyOEMInf.exe
WatchDriverSigningPolicy.exe

into a single application :hello:

Attached File(s)


This post has been edited by hp38guser: 02 November 2005 - 07:19 PM


#70 User is offline   Acheron 

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

Posted 03 November 2005 - 01:02 PM

*BUMP

Installing goes fine using pausep.exe :)

Anyone else tested this???

#71 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,603
  • Joined: 04-December 03

Posted 03 November 2005 - 04:29 PM

Okay, I will begin to test this method !

Just one question, it's possible to execute the script @ T-12 ?
In fact, when the network is okay, beacause, I would like to search drivers on the network ... good idea no ?

#72 User is offline   a06lp 

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

Posted 03 November 2005 - 08:21 PM

View Posthp38guser, on Oct 31 2005, 02:04 PM, said:

I may have found the solution
...
You need pausep.exe.


First of all, the current first-post method works fine for me...
Those who have problems: it's caused by having too many drivers, so setup continues without finishing the scan? [Am I correct that this is the problem??]

Second, hp38guser:
Are you saying pausep.exe (along with the modified autoit script) solved this problem that I just mentioned?

Also, is this pausep.exe a full version or a demo?
(and can you send it to me so I can test it, and update the first post?)

#73 User is offline   idle.newbie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 01-August 04

Posted 04 November 2005 - 12:31 AM

free sysinternals' PsSuspend included inside PsTools? http://www.sysintern.../PsSuspend.html


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 Drivers.au3)))"


using DetachedProgram to scan dospath should consider a hack, tho it works currently, it may not perm.

i love Pryon's SetupCopyOEMInf.exe :D

maybe i should modify my Detached.cmd with PsTools into:
@ECHO OFF
.\PsSuspend.exe setup.exe
.\WatchDriverSigningPolicy.exe
::rem extracting drivers archiver to hd, optional
::rem .\7za.exe x -y -o"%SystemDrive%\Drivers" ".\Drivers.7z"
.\SetupCopyOEMInf.exe Drivers
.\PsSuspend.exe -r setup.exe

save another 118,272(AutoIt3.exe) - 31,232(upx -9 PsSuspend.exe) = 87,040 bytes :D


WatchDriverSigningPolicy.exe should PsKill after T-13?

if SetupCopyOEMInf.exe accepts more paths, then i'll change to SetupCopyOEMInf.exe Drivers "%SystemDrive%\Drivers", fits on both [drivers on cd] and [drivers extract to hd].

This post has been edited by idle.newbie: 04 November 2005 - 01:11 AM


#74 User is offline   Acheron 

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

Posted 04 November 2005 - 06:41 AM

I have WatchDriverSigningPolicy only run while SetupCopyOEMInf.exe is processing the drivers. Meaby it's completely unnecessary. I don't know

However thanks for PsSuspend! They release so much I overlooked this :D

Tested PsSuspend a bit and it seems to work better than PauseP. Try VirtualDub for example, suspending while playing a video will no longer crash the program :)

drivers.cmd
@echo off
pssuspend.exe setup.exe
start watchdriversigningpolicy.exe
setupcopyoeminf.exe Drivers
pskill.exe -t watchdriversigningpolicy.exe
pssuspend.exe -r setup.exe
exit


Or if you prefer AutoIT:

drivers.au3
Run(@ScriptDir&"\pssuspend.exe setup")
Run(@ScriptDir&"\WatchDriverSigningPolicy.exe")
RunWait(@ScriptDir&"\SetupCopyOEMInf.exe "&@ScriptDir&"\Drivers")
ProcessClose("WatchDriverSigningPolicy.exe")
Run(@ScriptDir&"\pssuspend.exe -r setup")

This post has been edited by hp38guser: 04 November 2005 - 09:48 AM


#75 User is offline   Nucleus 

  • Member
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 15-February 05

Posted 04 November 2005 - 10:28 AM

If i use this method for installing drivers, whenever i install some new hardware on my computer, i will need my unattended dvd?

#76 User is offline   a06lp 

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

Posted 04 November 2005 - 11:13 AM

View PostNucleus, on Nov 4 2005, 12:28 PM, said:

If i use this method for installing drivers, whenever i install some new hardware on my computer, i will need my unattended dvd?

you shouldn't...

I've installed printers and mice after installation, and never was asked for the u-DVD.

i havent tried a HDD, but i imagine it would be the same.
if someone knows otherwise, let me know.

#77 User is offline   Sonic 

  • Sonic
  • Group: Patrons
  • Posts: 1,603
  • Joined: 04-December 03

Posted 04 November 2005 - 05:20 PM

Just to fix my supposition, WatchDriverSigningPolicy.exe is just present to skip the non-signed drivers, ok ? if I have all whql drivers, it's not necessary ?

#78 User is offline   idle.newbie 

  • Junior
  • Pip
  • Group: Members
  • Posts: 93
  • Joined: 01-August 04

Posted 04 November 2005 - 07:27 PM

@sonic:
you don't need WatchDriverSigningPolicy.exe for WHQL drivers.

@hp38quser:
i love sysinternals & nircmd :blushing:
seems PsSuspend fix the driver extraction before T-34 limitation, got my perfect method. :D
you should keep WatchDriverSigningPolicy.exe(for non WHQL) until driver scan finished, T-13 will be a good place to PsKill it. @T-39 REG ADD HKLM\....\RunOnceEx to PsKill or CMDLINES.TXT. and turn back Pyron's postinstall. or do that @WINNT.SIF [GuiRunOnce], if my broken memory still ok it's about T-9?

anyone knows if SetupCopyOEMInf.exe accepts more than one paths?
Detached.cmd for DriverOnCD or Driver7z2HD:
@ECHO OFF
.\PsSuspend.exe setup.exe
.\WatchDriverSigningPolicy.exe
IF EXIST Drivers.7z DO (
::REM extracting drivers archiver to hd, optional
  .\7za.exe x -y -aoa -o"%SystemDrive%\Drivers" ".\Drivers.7z"
  .\SetupCopyOEMInf.exe "%SystemDrive%\Drivers"
) ELSE (
  .\SetupCopyOEMInf.exe Drivers
)
.\PsSuspend.exe -r setup.exe
::REM PsKill WatchDriverSigningPolicy
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /V "zzzPsKillWatchDriverSigningPolicy" /D "%CD%\PsKill.exe -t WatchDriverSign"
::REM PostInstall
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx" /V "zzzzPostInstall" /D "regedit /s %CD%\postInstall.reg"
EXIT

WatchDriverSigningPolicy.exe, SetupCopyOEMInf.exe, PsSuspend.exe, PsKill.exe, postInstall.reg(Pyron's DevicePath/DriverSigning regTweak), 7za.exe(optional), Drivers.7z(optional) in $OEM$ directory.
those psKill and postInstall stuff can put in #1 HKLM\...\RunOnceEx(maybe RunOnce, can't sure), #2 CMDLINES.TXT, #3 WINNT.SIF [GuiRunOnce].

edit:
process name for psKill to kill seems only 15 chars in length at w2k box, psKill "WatchDriverSign".

This post has been edited by idle.newbie: 04 November 2005 - 08:33 PM


#79 User is offline   MAVERICKS CHOICE 

  • The Guy from Aus
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,693
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 04 November 2005 - 07:28 PM

View Postidle.newbie, on Nov 4 2005, 05:31 PM, said:

free sysinternals' PsSuspend included inside PsTools? http://www.sysintern.../PsSuspend.html


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 Drivers.au3)))"


using DetachedProgram to scan dospath should consider a hack, tho it works currently, it may not perm.

i love Pryon's SetupCopyOEMInf.exe :D

maybe i should modify my Detached.cmd with PsTools into:
@ECHO OFF
.\PsSuspend.exe setup.exe
.\WatchDriverSigningPolicy.exe
::rem extracting drivers archiver to hd, optional
::rem .\7za.exe x -y -o"%SystemDrive%\Drivers" ".\Drivers.7z"
.\SetupCopyOEMInf.exe Drivers
.\PsSuspend.exe -r setup.exe

save another 118,272(AutoIt3.exe) - 31,232(upx -9 PsSuspend.exe) = 87,040 bytes :D


WatchDriverSigningPolicy.exe should PsKill after T-13?

if SetupCopyOEMInf.exe accepts more paths, then i'll change to SetupCopyOEMInf.exe Drivers "%SystemDrive%\Drivers", fits on both [drivers on cd] and [drivers extract to hd].


Just rebuilt my image & ran with around a dozen pnp drivers all recognized & all worked superbly, used the psSuspend & found it to be very smooth.

Cheers Guys

Regards

MC

#80 User is offline   Nucleus 

  • Member
  • PipPip
  • Group: Members
  • Posts: 267
  • Joined: 15-February 05

Posted 05 November 2005 - 02:24 AM

I want to put the contents of DriversAutoIt.zip in the same folder as the drivers. ($OEM$\Drivers) What path must i change?

Share this topic:


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

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



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