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

Jump to content


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

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

#41 User is offline   Bilou_Gateux 

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

Posted 05 October 2005 - 09:00 AM

hp38guser, on Oct 4 2005, 11:21 AM, said:

Rewritten the program. It's now even easier!


Thanks for info idle.newbie  :hello:


Thanks for this new version. I appreciate the idea not having to hardcoding path (fixed or cdrom disk) like previous scripts.

and thanks for idle.newbie, the writer of Snippet for OemPnPDriversPath, setDevicePath clone
he has a good knowledge of batch scripts. Unfortunately, it is no longer active on this board. :}


#42 User is offline   a06lp 

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

Posted 05 October 2005 - 05:54 PM

View Posthp38guser, on Oct 4 2005, 01:21 PM, said:

Rewritten the program. It's now even easier....(no need for copying to system32 folder anymore)



Ok, I am going to test this on my next U-DVD.


A small explanation of the code:

i386\WinNT.sif said:

[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 (%J\Autoit3.exe %J\presetup.au3)))"


CMD = Starts a new instance of the Windows XP command interpreter
/Q = Turns echo off
/C = Carries out the command specified by string and then terminates
FOR = Runs a specified command for each file in a set of files.
/F = Filenameset - Each file is opened, read and processed before going on to the next file in filenameset.
%I = First Variable name
IN (%SystemRoot%\SYSTEM32\$WINNT$.INF) = location to search (aka - "set")
DO = Specifies the command to carry out for each file.
FOR = Runs a specified command for each file in a set of files.
%J = Second Variable name
IN (%I$OEM$) = location to search (aka - "set")
DO = Specifies the command to carry out for each file.
(IF EXIST %J = Specifies a true condition if the specified filename exists.
(%J\Autoit3.exe %J\presetup.au3))) = run presetup.au3 using autoit3.exe

This post has been edited by a06lp: 10 October 2005 - 08:16 PM


#43 User is online   Acheron 

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

Posted 05 October 2005 - 10:58 PM

$WinNT.sif$ is used to scan for the dospath=?:\ in the [Data] section. However since no quotes can be used in the Arguments section we have to scan the whole file. Pretty much information you got there :)

#44 User is offline   Bilou_Gateux 

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

Posted 06 October 2005 - 08:23 AM

Installing Windows from a flat installation D:\source
Running WINNT32.EXE /s:d:\source\i386 /unattend:D:\source\unattend.txt /syspart:c: /makelocalsource and using only digitally signed drivers from OEMs, i have changed my unattended response file UNATTEND.TXT section:

Quote

[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 ((%J\hidcon.exe %J\CopyInfs.exe %J\PnPDrvrs)))"


%SystemDrive% after reboot (end of txtmode stage of the setup) and before start of the GUI stage of install (T39)

Quote

C:\
├---$WIN_NT$.~LS
│    ├───CopyInfs.exe Pyron's SetupCopyOEMInf.exe 21 Kb renamed to 8.3 naming convention
│    ├───HidCon.exe Hide Console tool HidCon.exe 2 Kb
│    ├───$OEM$
│            └───PnPDrvrs OEM Drivers folder
├---$WIN_NT$.~BT
│    ├───winnt.sif
│    ├───$OEM$
│    └───SYSTEM32
├---WINDOWS
│    ├───SYSTEM32
│    └───$winnt$.inf
├BOOT.INI
├NTDETECT.COM
└ntldr


$WINNT$.INF

Quote

dospath=C:\$WIN_NT$.~LS


%I=C:\$WIN_NT$.~LS
%J=C:\$WIN_NT$.~LS\$OEM$
DOS command run at T39=C:\$WIN_NT$.~LS\$OEM$\HidCon.exe C:\$WIN_NT$.~LS\$OEM$\CopyInfs.exe C:\$WIN_NT$.~LS\$OEM$\PnPDrvrs

Note:
My modified WINNT.SIF command don't work for a CD based installation.
dospath value in $WINNT$.INF returns a local HDD path for my install method and returns an install CD path for a CD based installation.
My method don't use AutoIT script but all drivers are copied from source $OEM$\PnPDrvrs to %SystemDrive%\$WIN_NT$.~LS\$OEM$ during install

This post has been edited by Bilou_Gateux: 15 October 2005 - 09:44 AM


#45 User is offline   toe_cutter 

  • Junior
  • Pip
  • Group: Members
  • Posts: 52
  • Joined: 30-August 04

Posted 07 October 2005 - 05:26 AM

View Posthp38guser, on Oct 5 2005, 10:58 PM, said:

$WinNT.sif$ is used to scan for the dospath=?:\ in the [Data] section. However since no quotes can be used in the Arguments section we have to scan the whole file. Pretty much information you got there :)

Soo, should i add a dospath=<cd-drive>:\ in [Data]?

#46 User is online   Acheron 

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

Posted 07 October 2005 - 09:17 AM

View Posttoe_cutter, on Oct 7 2005, 01:26 PM, said:

View Posthp38guser, on Oct 5 2005, 10:58 PM, said:

$WinNT.sif$ is used to scan for the dospath=?:\ in the [Data] section. However since no quotes can be used in the Arguments section we have to scan the whole file. Pretty much information you got there :)

Soo, should i add a dospath=<cd-drive>:\ in [Data]?


No you shouldn't. It's generated automaticly during Windows Setup. It is very bad if your unattended cd doesn't work properly when you change your hardware configuration. For example installing a Multiple format card-reader changes CD-rom driveletters on Windows Setup

#47 User is online   Acheron 

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

Posted 09 October 2005 - 04:04 PM

There was a problem when I tested the new method. Here's a new line to test:

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


:hello:

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


#48 User is offline   a06lp 

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

Posted 09 October 2005 - 04:58 PM

View Posthp38guser, on Oct 9 2005, 06:04 PM, said:

There was a problem when I tested the new method. Here's a new line to test:

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


:hello:



have you tested THIS one? is it confirmed to work?

#49 User is online   Acheron 

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

Posted 09 October 2005 - 05:33 PM

I tested using the RUN-section in Start Menu. I found out the AutoIt file did execute but could not find it's Workingdir and hang. I now use the start command to specify the workingdir and so it works. Could you change the Startpost a06lp?

#50 User is offline   a06lp 

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

Posted 10 October 2005 - 07:10 AM

View Posthp38guser, on Oct 9 2005, 07:33 PM, said:

I tested using the RUN-section in Start Menu.
...
it works. Could you change the Startpost a06lp?


I will do a real-world full test sometimes in the next couple of days. If that works, I'll update the first post.

#51 User is online   Acheron 

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

Posted 10 October 2005 - 12:06 PM

I did a real test today. It does works correct now :)

#52 User is offline   a06lp 

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

Posted 10 October 2005 - 07:57 PM

Updated first post.

First Post in This Thread said:

10/11/05: New upload again. This time, the Drivers.au3 file is altered again, and the code to be entered into winnt.sif has been changed. This entire method runs from CD (no files copied over!) This is all from this post. Again- I personally tested this method (as has hp38guser) and it works!



For those of you who have been following this thread, the method is the one posted on the previos page by hp38guser (here). However, I call the autoit file Drivers.au3 (as opposed to presetup.au3) to avoid confusion. But all proper changes are in the first post.

Follow the directions in the first post, and it will work perfectly. (I've tested it.)

This post has been edited by a06lp: 11 October 2005 - 03:22 PM


#53 User is offline   WebMatze 

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

Posted 11 October 2005 - 11:53 PM

Hello,

i find your method very cool but i have a question about the use of your method with a multiboot DVD, here is my DVD structure:

├───HOM1
├───HOM2
├───HOM3
│.......├───winnt.sif
├───PRO1
├───PRO2
├───PRO3
│.......├───winnt.sif
├───SETUP
│.......├───XPPRO
│................├───$OEM$
│................├───i386
│.......├───XPHOME
│................├───$OEM$
│................├───i386
├───WPI
│.......├───DRIVERS
│................├───Monitor
│................├───nVidia
│................├───Printer

I tested your method with the files dated from 08th october and it worked perfectly, but i'm unsure if the new files dated from 11th will work on my config, i there a way to adapt the command line in winnt.sif to my config?

Thanks for your help

#54 User is offline   a06lp 

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

Posted 12 October 2005 - 07:28 AM

[edit]

Solution posted below.

This post has been edited by a06lp: 12 October 2005 - 01:12 PM


#55 User is offline   Bilou_Gateux 

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

Posted 12 October 2005 - 07:41 AM

View PostWebMatze, on Oct 11 2005, 11:53 PM, said:

I tested your method with the files dated from 08th october and it worked perfectly, but i'm unsure if the new files dated from 11th will work on my config, i there a way to adapt the command line in winnt.sif to my config?


Post the $WINNT$.INF file found in %SystemRoot%\System32 of your above running config in order to check the dospath value. Don't forget to replace ProductKey with xxxxx.

#56 User is offline   WebMatze 

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

Posted 12 October 2005 - 08:52 AM

hello bilou,

here is the dospath in the file:

Quote

dospath=G:\SETUP\XPPRO\




Ok I think there is no way to make the method dated from october the 11th work with my multiboot DVD, that not a big problem because the method form 8th october works...
Thanks for your answer.

#57 User is online   Acheron 

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

Posted 12 October 2005 - 12:14 PM

Off course the new method works. You just have to modify the driver.au3 a bit:

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)


Use the ..\ to go up one level in the directory structure. The default location is the $OEM$ directory.

Don't ever change the WinNT.sif. It takes the dospath Windows uses by default :)

#58 User is offline   WebMatze 

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

Posted 12 October 2005 - 12:24 PM

Thanks a lot for your help, i'll try the new drivers.au3...

#59 User is offline   Forsaken163 

  • Group: Members
  • Posts: 1
  • Joined: 12-October 05

Posted 12 October 2005 - 11:23 PM

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.

#60 User is offline   WebMatze 

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

Posted 13 October 2005 - 10:29 AM

@hp38guser

for info i tested your solution to my problem but it didn't work, that not a problem for me i will keep the method dated form 8th october, this one works.

Share this topic:


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

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



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