IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
11 Pages V  < 1 2 3 4 5 > »   
Reply to this topicStart new topic
> Drivers from CD: Simple Method
Bilou_Gateux
post Oct 5 2005, 09:00 AM
Post #41


Powered by Windows Embedded
*****

Group: Members
Posts: 752
Joined: 3-January 04
From: Underworld
Member No.: 11874
OS: XP Pro x86
Country Flag


QUOTE (hp38guser @ Oct 4 2005, 11:21 AM)
Rewritten the program. It's now even easier!


Thanks for info idle.newbie  welcome.gif


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. confused.gif
Go to the top of the page
 
+Quote Post
a06lp
post Oct 5 2005, 05:54 PM
Post #42


Friend of MSFN
*****

Group: Members
Posts: 976
Joined: 19-August 04
Member No.: 28204



QUOTE (hp38guser @ Oct 4 2005, 01:21 PM) *
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:
QUOTE (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 (%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: Oct 10 2005, 08:16 PM
Go to the top of the page
 
+Quote Post
Acheron
post Oct 5 2005, 10:58 PM
Post #43


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


$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 smile.gif
Go to the top of the page
 
+Quote Post
Bilou_Gateux
post Oct 6 2005, 08:23 AM
Post #44


Powered by Windows Embedded
*****

Group: Members
Posts: 752
Joined: 3-January 04
From: Underworld
Member No.: 11874
OS: XP Pro x86
Country Flag


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: Oct 15 2005, 09:44 AM
Go to the top of the page
 
+Quote Post
toe_cutter
post Oct 7 2005, 05:26 AM
Post #45


Junior
*

Group: Members
Posts: 52
Joined: 30-August 04
Member No.: 29349
OS: Vista Business x86
Country Flag


QUOTE (hp38guser @ Oct 5 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 smile.gif

Soo, should i add a dospath=<cd-drive>:\ in [Data]?
Go to the top of the page
 
+Quote Post
Acheron
post Oct 7 2005, 09:17 AM
Post #46


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


QUOTE (toe_cutter @ Oct 7 2005, 01:26 PM) *
QUOTE (hp38guser @ Oct 5 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 smile.gif

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
Go to the top of the page
 
+Quote Post
Acheron
post Oct 9 2005, 04:04 PM
Post #47


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


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

I386\WinNT.sif
CODE
[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)))"


welcome.gif

This post has been edited by hp38guser: Oct 9 2005, 04:09 PM
Go to the top of the page
 
+Quote Post
a06lp
post Oct 9 2005, 04:58 PM
Post #48


Friend of MSFN
*****

Group: Members
Posts: 976
Joined: 19-August 04
Member No.: 28204



QUOTE (hp38guser @ Oct 9 2005, 06:04 PM) *
There was a problem when I tested the new method. Here's a new line to test:

I386\WinNT.sif
CODE
[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)))"


welcome.gif



have you tested THIS one? is it confirmed to work?
Go to the top of the page
 
+Quote Post
Acheron
post Oct 9 2005, 05:33 PM
Post #49


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


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?
Go to the top of the page
 
+Quote Post
a06lp
post Oct 10 2005, 07:10 AM
Post #50


Friend of MSFN
*****

Group: Members
Posts: 976
Joined: 19-August 04
Member No.: 28204



QUOTE (hp38guser @ Oct 9 2005, 07:33 PM) *
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.
Go to the top of the page
 
+Quote Post
Acheron
post Oct 10 2005, 12:06 PM
Post #51


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


I did a real test today. It does works correct now smile.gif
Go to the top of the page
 
+Quote Post
a06lp
post Oct 10 2005, 07:57 PM
Post #52


Friend of MSFN
*****

Group: Members
Posts: 976
Joined: 19-August 04
Member No.: 28204



Updated first post.

QUOTE (First Post in This Thread)
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: Oct 11 2005, 03:22 PM
Go to the top of the page
 
+Quote Post
WebMatze
post Oct 11 2005, 11:53 PM
Post #53


Junior
*

Group: Members
Posts: 54
Joined: 29-July 04
Member No.: 25687



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
Go to the top of the page
 
+Quote Post
a06lp
post Oct 12 2005, 07:28 AM
Post #54


Friend of MSFN
*****

Group: Members
Posts: 976
Joined: 19-August 04
Member No.: 28204



[edit]

Solution posted below.

This post has been edited by a06lp: Oct 12 2005, 01:12 PM
Go to the top of the page
 
+Quote Post
Bilou_Gateux
post Oct 12 2005, 07:41 AM
Post #55


Powered by Windows Embedded
*****

Group: Members
Posts: 752
Joined: 3-January 04
From: Underworld
Member No.: 11874
OS: XP Pro x86
Country Flag


QUOTE (WebMatze @ Oct 11 2005, 11:53 PM) *
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.
Go to the top of the page
 
+Quote Post
WebMatze
post Oct 12 2005, 08:52 AM
Post #56


Junior
*

Group: Members
Posts: 54
Joined: 29-July 04
Member No.: 25687



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.
Go to the top of the page
 
+Quote Post
Acheron
post Oct 12 2005, 12:14 PM
Post #57


Friend of MSFN
*****

Group: Members
Posts: 879
Joined: 28-June 04
From: Eerbeek
Member No.: 23554
OS: XP Pro x86
Country Flag


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 smile.gif
Go to the top of the page
 
+Quote Post
WebMatze
post Oct 12 2005, 12:24 PM
Post #58


Junior
*

Group: Members
Posts: 54
Joined: 29-July 04
Member No.: 25687



Thanks a lot for your help, i'll try the new drivers.au3...
Go to the top of the page
 
+Quote Post
Forsaken163
post Oct 12 2005, 11:23 PM
Post #59





Group: Members
Posts: 1
Joined: 12-October 05
Member No.: 76453
Country Flag


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.
Go to the top of the page
 
+Quote Post
WebMatze
post Oct 13 2005, 10:29 AM
Post #60


Junior
*

Group: Members
Posts: 54
Joined: 29-July 04
Member No.: 25687



@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.
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

11 Pages V  < 1 2 3 4 5 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 




Lo-Fi Version Time is now: 22nd November 2009 - 06:15 AM
All trademarks mentioned on this page are the property of their respective owners
MSFN is not affiliated with Microsoft
Copyright © 2001-2009 msfn.org
Privacy Policy