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

Jump to content


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

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

#101 User is offline   a06lp 

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

Posted 07 November 2005 - 08:01 AM

View PostRogueSpear, on Nov 6 2005, 11:44 PM, said:

I was thinking more along the lines of setting setup.exe to idle and your AutoIt script to high. Perhaps a double whammy like that could force the issue.


That won't really matter - it may work now, but then, eventually, someone will have too many drivers and it won't finish in time.

@X-Savior:
The method that's still in the first post of this thread works...sort of. It works in the sense that everything installs, but the problem is that if you try to install too many drivers setup moves on without installing all of them.

idle.newbie and I have been doing some tests.
Seems that the problem is that SetupCopyOEMInf freezes (but only when using this PsSuspend - not when using the first-post-method)


#102 User is offline   cyberloner 

  • CyberMania.ws
  • PipPipPipPip
  • Group: Members
  • Posts: 535
  • Joined: 19-July 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 November 2005 - 11:33 AM

maybe will need to use other replacement type of installing driver without using PsSuspend

as same as a06lp said...
i remove the pssuspend from running ...
copying inf work perfectly...

i'm using without pssuspend now and everything is working fine....
and my driver is about 30 folder with all nvidia, ati, realtek, via, nforce drivers....
the best thing is all my drivers successfully finish the copy....

=)

This post has been edited by cyberloner: 07 November 2005 - 12:55 PM


#103 User is offline   X-Savior 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 23-February 05

  Posted 07 November 2005 - 12:06 PM

Interesting... :unsure:

Well, when I get caught up in this thread over the next week I will see if I can help the cause again. I almost went insane testing to figure out KTD Method. 4 - 5 OS Installs a Night :wacko:

There has to be a way to keep it simple. :thumbup
The more 3rd Party stuff involved the more complicated it gets. :rolleyes:

#104 User is offline   Acheron 

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

Posted 07 November 2005 - 12:53 PM

Meaby it's PsSuspend related. Try using PauseP as described here please.

#105 User is offline   a06lp 

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

Posted 07 November 2005 - 01:25 PM

Quote

I may have found the solution :)

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")


Could you change that AutoIt coding into Batch file code?
Then I'll test it :wacko: :} :wacko:

[edit]
What I really need is a method to get the PID of "setup.exe" - pausep requires the PID, not the task name.

This post has been edited by a06lp: 07 November 2005 - 01:41 PM


#106 User is offline   Acheron 

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

Posted 07 November 2005 - 02:46 PM

drivers.cmd
@echo off
FOR /F "tokens=2 delims=	 " %%A IN ('pausep.exe ^| findstr /I /L "setup.exe"') DO SET Setup_PID=%%A
pausep.exe %Setup_PID%
start watchdriversigningpolicy.exe
setupcopyoeminf.exe drivers
pskill.exe -t watchdriversigningpolicy.exe
pausep.exe %Setup_PID% /r
exit


I recommend using PsKill in stead of TaskKill. Taskkill won't work without Windows Management Instrumentation. Some people remove that component with nLite.

This post has been edited by hp38guser: 07 November 2005 - 03:34 PM


#107 User is offline   RogueSpear 

  • OS: SimplyMEPIS
  • Group: Supreme Sponsor
  • Posts: 1,529
  • Joined: 18-September 04

Posted 07 November 2005 - 03:38 PM

WMI isn't available during setup at all.

#108 User is offline   Acheron 

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

Posted 07 November 2005 - 03:47 PM

View PostRogueSpear, on Nov 7 2005, 10:38 PM, said:

WMI isn't available during setup at all.


That's another good reason to remove Windows Management Instrumentation

#109 User is offline   cyberloner 

  • CyberMania.ws
  • PipPipPipPip
  • Group: Members
  • Posts: 535
  • Joined: 19-July 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 November 2005 - 08:20 PM

View Posthp38guser, on Nov 7 2005, 02:46 PM, said:

drivers.cmd
@echo off
FOR /F "tokens=2 delims=	 " %%A IN ('pausep.exe ^| findstr /I /L "setup.exe"') DO SET Setup_PID=%%A
pausep.exe %Setup_PID%
start watchdriversigningpolicy.exe
setupcopyoeminf.exe drivers
pskill.exe -t watchdriversigningpolicy.exe
pausep.exe %Setup_PID% /r
exit


I recommend using PsKill in stead of TaskKill. Taskkill won't work without Windows Management Instrumentation. Some people remove that component with nLite.


that cmd code is high-end @@
salute hp38guser :thumbup

#110 User is offline   a06lp 

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

Posted 07 November 2005 - 08:21 PM

FOR /F "tokens=2 delims=	 " %%A IN ('pausep.exe ^| findstr /I /L "setup.exe"') DO SET Setup_PID=%%A
pausep.exe %Setup_PID%


this doesn';t work - i've opened up a (different) setup.exe, and this doesnt find the pid.
but when i manually run pausep, i see setup.exe on the list....

can we fix this code?

This post has been edited by a06lp: 07 November 2005 - 08:22 PM


#111 User is offline   idle.newbie 

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

Posted 07 November 2005 - 09:23 PM

pausep>%SystemDrive%\pid.txt
FOR /F "tokens=2" %%I IN ('findstr /I /L "setup.exe" %SystemDrive%\pid.txt) DO DEL %SystemDrive%\pid.txt & SET Setup_PID=%%I
redirect to a temp file and parse from it.
imho pausep=psSuspend :(

edit:
redo another install, same as psSuspend.
SetupCopyOEMInf slows down and stopped at some driver, after Ctrl-C SetupCopyOEMInf, and rescan again, it passed. same as i use psSuspend.

edit2:
@a06lp:
my lastest test, using NirCmd to detach another ticker script that resume-wait10sec-suspend-wait50sec-resume setup.exe, it works on my laptop with 63 driver paths. the modem driver which cause SetupCopyOEMInf stopped when setup.exe totally suspended, and it passed on resume-suspend-resume method.
combine this method and setPriority, SetupCopyOEMInf gets more cpu without interlocked.

to lower setup.exe's priority for batch guys, googled a freeware called Process.exe, it can Suspend/Resume/Kill/SetPriority/List processes in size 53,248 bytes/26,112 bytes(upx -9). use this program instead of psSuspend/psKill/psList myself.
NirCmd Freeware command-line tool, 47,104 bytes/25,088 bytes(upx -9). lots free utils at this site. use NirCmd to setting mixer/inetdial/shortcuts/etc myself. tried NirCmd's new command "cmdwait", it's not working @T-39.

Quote

@ECHO OFF
CD /D "%~dp0"
::REM Ticker script
ECHO.exec hide %CD%\Process.exe -r setup.exe >%SystemDrive%\Ticker.ncl
ECHO.wait 10000 >>%SystemDrive%\Ticker.ncl
ECHO.exec hide %CD%\Process.exe -p SetupCopyOEMInf.exe high >>%SystemDrive%\Ticker.ncl
ECHO.exec hide %CD%\Process.exe -s setup.exe >>%SystemDrive%\Ticker.ncl
ECHO.wait 50000 >>%SystemDrive%\Ticker.ncl
ECHO.script %SystemDrive%\Ticker.ncl >>%SystemDrive%\Ticker.ncl
::REM Suspend/Low setup.exe
.\Process.exe -s setup.exe
.\Process.exe -p setup.exe low
::REM OemPreinstall=No
IF EXIST $1.7z .\7za.exe x -y -aoa -o"%SystemDrive%\" ".\$1.7z"
IF EXIST $$.7z .\7za.exe x -y -aoa -o"%SystemRoot%" ".\$$.7z"

::REM DriversOnCD
START .\WatchDriverSigningPolicy.exe
SET DRV=DRV
::REM Drivers7z2HD
IF EXIST DRV.7z (
SET DRV=%SystemDrive%\DRV
.\7za.exe x -y -aoa -o"%SystemDrive%\DRV" ".\DRV.7z"
)

::REM NirCmd ticker
START .\NirCmd.exe script %SystemDrive%\Ticker.ncl
.\SetupCopyOEMInf.exe "%DRV%"
::REM PostInstall
.\Process.exe -k NirCmd.exe
.\Process.exe -p setup.exe normal
.\Process.exe -r setup.exe
DEL %SystemDrive%\Ticker.ncl
EXIT
green=optional, red=customize
add NirCmd.exe exec hide before script name in WINNT.SIF, hides pop-up cmd window.

This post has been edited by idle.newbie: 08 November 2005 - 07:39 AM


#112 User is offline   a06lp 

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

Posted 08 November 2005 - 01:46 AM

View Postidle.newbie, on Nov 7 2005, 11:23 PM, said:

redo another install, same as psSuspend.
SetupCopyOEMInf slows down and stopped at some driver, after Ctrl-C SetupCopyOEMInf, and rescan again, it passed. same as i use psSuspend.


I'm out of ideas.
How do we get around this problem?

#113 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 08 November 2005 - 03:41 AM

Hey guys approx how many pnp drivers are you installing? & is that the issue maybe? I do under twelve & no slow downs or issues here.

#114 User is offline   cyberloner 

  • CyberMania.ws
  • PipPipPipPip
  • Group: Members
  • Posts: 535
  • Joined: 19-July 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 November 2005 - 05:33 AM

View PostMAVERICKS CHOICE, on Nov 8 2005, 03:41 AM, said:

Hey guys approx how many pnp drivers are you installing? & is that the issue maybe? I do under twelve & no slow downs or issues here.


put more drivers and try...
realtek.com.tw got a lot inf
ati.com got a lot inf inside their drivers

#115 User is offline   a06lp 

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

Posted 08 November 2005 - 08:06 AM

View PostMAVERICKS CHOICE, on Nov 8 2005, 05:41 AM, said:

Hey guys approx how many pnp drivers are you installing? & is that the issue maybe? I do under twelve & no slow downs or issues here.

i mentioned earlier it only effects you if there's like 30+ (maybe more)


View Postidle.newbie, on Nov 7 2005, 11:23 PM, said:

my lastest test, using NirCmd to detach another ticker script that resume-wait10sec-suspend-wait50sec-resume setup.exe, it works on my laptop with 63 driver paths. the modem driver which cause SetupCopyOEMInf stopped when setup.exe totally suspended, and it passed on resume-suspend-resume method.
combine this method and setPriority, SetupCopyOEMInf gets more cpu without interlocked.

I'm not understanding your method.
But I know AutoIt has a built in process priority function, which we make use of in the first-post-method.

What are you saying here? resume, suspend, resume? [I dont understand]
Also maybe the 50 seconds is too small to cause the freeze-up. Have you tried with longer times?

This post has been edited by a06lp: 08 November 2005 - 08:06 AM


#116 User is offline   idle.newbie 

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

Posted 08 November 2005 - 08:38 AM

they're the same for setPriority, only it's in batch.

i added another ticker script which loops until SetupCopyOEMInf ends. 10sec to run setup.exe, 50sec to suspend it, loops.

SetupCopyOEMInf freeze when setup.exe suspended, i guess that's because they need to update something with setupapi.dll. the ticker script gives setup.exe 10sec within 1min to update, so they won't interlocked and setup.exe uses lesser cpu(1/6).
10 : 50 that's for my laptop. besides, setup.exe=low, SetupCopyOEMInf.exe=high. i had bad experience with resume time less than 10sec.

This post has been edited by idle.newbie: 08 November 2005 - 08:49 AM


#117 User is offline   a06lp 

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

Posted 08 November 2005 - 10:59 AM

WatchDriverSigningPolicy Info
I forgot who asked me a while ago, but the source for WatchDriverSigningPolicy is here.
Although the attachment doesn't seem to be working, the basic outline of the code is in the post.

Also, it should be noted that WatchDriverSigningPolicy works most of the time, but occassionally the dialog for the installation of unsigned drivers pops up nevertheless. Pyron said he has no idea why, but Setup seems to ignore the registry values sometimes. :(

This post has been edited by a06lp: 08 November 2005 - 11:27 AM


#118 User is offline   a06lp 

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

Posted 08 November 2005 - 11:27 AM

@idle.newbie:
Looks good (in theory), I'm going to test this later.
(Also, the code looks NICE ;))




[Edit]
@idle.newbie:
You said that SetupCopyOEMInf freezes when setup.exe suspended, because something with setupapi.dll has to be updated.
It appears you are right. A while ago, someone asked about the source for SetupCopyOEMInf, and the response was:

schalti @ Jul 18 2005, on 10:44 AM, said:

If you want to create your own utility it's a matter of scanning a directory structure for INF-Files and use the API call SetupCopyOEMInf (which is inside setupapi.dll) on every INF-File.

So at least we know why setup cannot be paused totally...

This post has been edited by a06lp: 08 November 2005 - 11:44 AM


#119 User is offline   a06lp 

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

Posted 08 November 2005 - 12:28 PM

i'm creating my ISO image now - then comes burn, and test time.
*crosses fingers*

[edit]
It Worked!

Updating first post now.

I'm going to re-post the AutoIt method (for backup sake, and for those who want to continue using it) in my next post.


EVERYONE PLEASE TEST THE UPDATED METHOD IN THE FIRST POST. I NEED TO KNOW THAT IT IS WORKING FOR ALL OF YOU.

This post has been edited by a06lp: 08 November 2005 - 02:55 PM


#120 User is offline   cyberloner 

  • CyberMania.ws
  • PipPipPipPip
  • Group: Members
  • Posts: 535
  • Joined: 19-July 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 November 2005 - 01:06 PM

Hope u success...

Share this topic:


  • 12 Pages +
  • « First
  • 4
  • 5
  • 6
  • 7
  • 8
  • 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