![]() ![]() |
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 | QUOTE (hp38guser @ Oct 4 2005, 11:21 AM) 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. |
| | |
Oct 5 2005, 05:54 PM Post
#42 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 976 Joined: 19-August 04 Member No.: 28204 | 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 |
| | |
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 |
$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 |
| | |
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 |
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 |
| | |
Oct 7 2005, 05:26 AM Post
#45 | |
| Junior ![]() Group: Members Posts: 52 Joined: 30-August 04 Member No.: 29349 OS: Vista Business x86 | |
| | |
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 | $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 |
| | |
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 |
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)))" This post has been edited by hp38guser: Oct 9 2005, 04:09 PM |
| | |
Oct 9 2005, 04:58 PM Post
#48 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 976 Joined: 19-August 04 Member No.: 28204 | 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)))" have you tested THIS one? is it confirmed to work? |
| | |
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 |
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?
|
| | |
Oct 10 2005, 07:10 AM Post
#50 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 976 Joined: 19-August 04 Member No.: 28204 | |
| | |
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 |
I did a real test today. It does works correct now |
| | |
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 |
| | |
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 |
| | |
Oct 12 2005, 07:28 AM Post
#54 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 976 Joined: 19-August 04 Member No.: 28204 | |
| | |
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 | 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. |
| | |
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. |
| | |
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 |
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 |
| | |
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...
|
| | |
Oct 12 2005, 11:23 PM Post
#59 | |
| Group: Members Posts: 1 Joined: 12-October 05 Member No.: 76453 |
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. |
| | |
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. |
| | |
![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2009 - 06:15 AM |