IPB

Google Frontpage Forums Unattended CD/DVD Guide
 Forum Rules Unattended CD/DVD Guide Homepage · MSFN Forum Rules
> Drivers from CD: Simple Method
a06lp
post Jul 22 2005, 01:59 PM
Post #1


Friend of MSFN
*****

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



Drivers From CD (Simple Method)


Updated: 11/08/05 (The old AutoIt Method is available here.)

This is not my method. Major thanks to idle.newbie and hp38guser, as most of this is their work.
Thanks also go out to Pyron for making SetupCopyOEMInf.exe and WatchDriverSigningPolicy.exe, which are used in this method.
The info from this outline is from this post, and, more specifically: here, here, and here.

This is a method of automatically installing drivers (which are located on your CD), for devices that are plugged into the computer that WindowsXP is being installed on. This new way uses a Batch file. Why another way, you ask? The reason is simple:
This method does not need the use of a FAKE setup.exe, nor does it need extra lines in TXTSETUP.SIF (like other methods do). It's very simple and straightforward.

It's as easy as 1, 2, 3:

1. Download the attached zip file, and unzip its contents to $OEM$\.
(There are 6 files in the zip: 7za.exe, Drivers.cmd, nircmd.exe, Process.exe, SetupCopyOEMInf.exe, WatchDriverSigningPolicy.exe)

(These files will run from the CD, and are never copied to the Hard Drive.)

2. Open up winnt.sif (located in i386), and add two lines under [GuiUnattended], as shown below:

If you WANT the cmd window (batch file) to show, use THIS code:
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 Drivers.cmd)))"


If you DO NOT want the cmd window (batch file) to show AT ALL, use THIS code:
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 NirCmd.exe exec hide Drivers.cmd)))"


(If you want more info on this coding, see this post, and this post.)

3. Place any drivers you want to have auto-detected into $OEM$\Drivers (you must create the directory).


Notes:
-= This method does not require any files to be copied over the the HDD - it runs totally from the CD.
-= Plug'n Play devices are detected during Windows Setup after the DetachedProgram stage (t-39), which is when this script is run, so Windows Setup will detect and install all applicable drivers.
-= If you are using a Normal XP CD (SingleBoot), don't worry about spaces in the folder names. (For example: "Wireless Card Drivers" will work just as well (even though there are spaces in the name) as "Wireless_Card_Drivers").
-= If you are using a MultiBoot Disc, you can also use spaces anywhere - EXCEPT in SourcePath. Example (red=won't work; green=will work):
QUOTE ( Example: Red=Won't Work; Green=Will Work )
CD:\XP Pro\$OEM$\Drivers\nVidia ForceWare 77.72\ <-- WON'T work. (Replace space in "XP Pro" with underscore or dash.)
CD:\XP-Pro_A\$OEM$\Drivers\nVidia ForceWare 77.72\ <-- WILL work.

-= Also, please note this method will not work for MassStorage Device drivers.
-= 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.


If you are still confused, here is a sample XPCD layout (colors correspond to the steps above):
QUOTE ( Sample CD Layout )
├───$OEM$
│.......├───Drivers
│................├───C-Media CMI8738 6.39
│................├───Medion SAA7134 2.3.1.0
│................├───Monitor
│........................├───AL712
│................├───nVidia ForceWare 77.72
│................├───Samsung ML-1210
│................├───Laptop
│........................├───Touchpad
│........................├───Infared 12.6
│.......├───7za.exe
│.......├───Drivers.cmd
│.......├───nircmd.exe
│.......├───Process.exe
│.......├───SetupCopyOEMInf.exe
│.......├───WatchDriverSigningPolicy.exe
├───I386
│.......├───winnt.sif



More Info

What's In It?
The attached zip contains the following files (ALL should be placed in your $OEM$ directory):

7za.exe
7za.exe is the command line version of 7-zip v4.23 (link).
This file is used only if you add a "Drivers.7z" file. (It will extract the "Drivers.7z" to the Hard Drive).
If you are not using compressed drivers, it is safe to delete this file.

Drivers.cmd
CODE
CLS
@ECHO OFF
TITLE Drivers-from-CD Installation
color 1F
:: Set Current Drive as CD
CD /D "%~dp0"
:: Set Drivers Location Folder
SET DRV=Drivers
:: 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
:: Pre-Install (Suspend Setup, and Set Setup to Low Priority)
.\Process.exe -s setup.exe
.\Process.exe -p setup.exe low
:: Allow for Unsigned Drivers
START .\WatchDriverSigningPolicy.exe
:: If Compressed Drivers Exist, Unzip Them & Change Drivers Location Folder to Hard Drive
IF EXIST Drivers.7z (
SET DRV=%SystemDrive%\Drivers
.\7za.exe x -y -aoa -o"%SystemDrive%\Drivers" ".\Drivers.7z"
)
:: Run NirCmd Ticker Script (code above)
START .\NirCmd.exe script %SystemDrive%\Ticker.ncl
:: Install Drivers
.\SetupCopyOEMInf.exe "%DRV%"
:: Post-Install (Close NirCmd, Setup Priority back to Normal, Resume Setup)
.\Process.exe -k NirCmd.exe
.\Process.exe -p setup.exe normal
.\Process.exe -r setup.exe
:: Delete Ticker File
DEL %SystemDrive%\Ticker.ncl
EXIT

NirCmd v1.80
Created by NirSoft (link)
Used to run Ticker script.

Process.exe v2.03
Created by Beyond Logic (link)
Used to pause setup, set process priorities, and kill processes while drivers install.

SetupCopyOEMInf.exe
Created by Pyron (link)
It scans a dir recursively and calls SetupCopyOEMInf for every .inf it finds (which copies a specified .inf file into the %windir%\Inf directory).

WatchDriverSigningPolicy.exe
Created by Pyron (link)
Basically, this makes it so that when Windows finds non-signed drivers (non-WHQL), it doesn't care.
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.


How Does It Work? (A Much Simplified Guide)
When Windows Setup reads the GuiUnattended section of winnt.sif, it will load up our Drivers.cmd code.
The Drivers.cmd file will first pause Windows Setup (using Process.exe).
Next, it will activate WatchDriverSigningPolicy.exe so that we can install unsigned drivers.
The batch script will then determine if compressed drivers exist. If so, it will extract them.
Then it will run SetupCopyOEMInf.exe to scan every subdirectory in $OEM$\Drivers (or %systemdrive%\Drivers if compressed drivers exist) and add copy all the .inf files so that Windows will recognize and install drivers for every PnP device (that you included drivers for).
Finally, we resume Windows Setup (again, using Process.exe).


What About Compressed Drivers?
If you use compressed (.7z) drivers, make sure to ADD your compressed "Drivers.7z" to the $OEM$ folder. The batch will automatically detect the compressed drivers (make sure it is named "Drivers.7z"), unzip it to the Hard Drive (using the included "7za.exe"), and then scan the Hard Drive (instead of the CD) for .inf files.



Updates:
11/08/05: Major updates:
  • Solved the problem of setup continuing before all the .inf files are scanned and integrated.
  • New Method - (Batch file instead of AutoIt) - Windows Setup will now pause (based on this post and also this post and this post).
  • Added Process.exe v2.03, and NirCmd v1.80 to the zip - These are the programs we use to pause Windows Setup.
  • This method now works with compressed drivers - just add your "Drivers.7z" to the $OEM$ folder. The batch takes care of the rest. smile.gif
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!
08/01/05: Re-uploaded the zip file. The only updated file in the zip is the Drivers.au3 - it's a smaller file, with less coding (i.e., no extra crap, as per hp38guser's request (here). It has been tested, and is working.

Attachment Updated: 11/08/05
MD5 Hash: E6FCD3B433BA04D0F0CC96CB7613DA0A

Download from Mirror 1

Download from Mirror 2 (please try above link first...)

This post has been edited by a06lp: Nov 30 2005, 05:50 PM
Go to the top of the page
 
+Quote Post
11 Pages V  « < 9 10 11  
Start new topic
Replies (200 - 217)
Kingskawn
post Oct 18 2007, 07:09 AM
Post #201


Kingskawn
**

Group: Members
Posts: 128
Joined: 17-April 06
From: Europe
Member No.: 93882
OS: XP Pro x86
Country Flag


Can I use this method with the BTS drivers? There are 10 .7z files

http://driverpacks.net/DriverPacks/
Go to the top of the page
 
+Quote Post
kmaheshkumar
post Nov 28 2007, 07:51 AM
Post #202


Junior
*

Group: Members
Posts: 61
Joined: 25-June 07
Member No.: 144401
OS: XP Pro x86
Country Flag


i downloaded 9 driverpacks from HERE all of them are in 7z format only i am not understanding which method to follow for integrating drivers to xp dvd and it is have 9 .7z files plz help about this, i had not downloaded only the cpu driver pack
Go to the top of the page
 
+Quote Post
Arie
post Nov 29 2007, 02:56 AM
Post #203


One Man Army
*****

Group: Members
Posts: 826
Joined: 27-August 07
Member No.: 152562
OS: XP Pro x86
Country Flag


QUOTE (kmaheshkumar @ Nov 28 2007, 02:51 PM) *
i downloaded 9 driverpacks from HERE all of them are in 7z format only i am not understanding which method to follow for integrating drivers to xp dvd and it is have 9 .7z files plz help about this, i had not downloaded only the cpu driver pack

You need to download the DriverPacks BASE and run it and the rest will show itself.
Go to the top of the page
 
+Quote Post
kmaheshkumar
post Nov 30 2007, 12:17 AM
Post #204


Junior
*

Group: Members
Posts: 61
Joined: 25-June 07
Member No.: 144401
OS: XP Pro x86
Country Flag


it is unpacking all the .7z files but i want them use without extracting to save my disk space, i saw the first page it is very good but there it has only one .7z file named drivers but now i have 9 packs now, please help me is there any way to do that
Go to the top of the page
 
+Quote Post
biatche
post Dec 11 2007, 03:57 PM
Post #205


Member
**

Group: Members
Posts: 147
Joined: 23-November 05
From: Malaysia
Member No.: 80546
Country Flag


I just started testing this instead of using driverpacks.net. Nice that I can use my own drivers now.

I'd like to know though why my nvidia forceware 169.04 (from tweakforce.com) wouldn't install properly. After all is up and running, i get a ! in device manager on the videocard, and the picture dont look so clear. Uninstalling the driver, and then reinstalling it manually fixes the issue.

Any idea whats the cause?

Also, I'm thinking of setting up an nforce chipset machine too, do nforce IDE drivers get installed?
Go to the top of the page
 
+Quote Post
Arie
post Dec 12 2007, 03:59 AM
Post #206


One Man Army
*****

Group: Members
Posts: 826
Joined: 27-August 07
Member No.: 152562
OS: XP Pro x86
Country Flag


QUOTE (kmaheshkumar @ Nov 30 2007, 07:17 AM) *
it is unpacking all the .7z files but i want them use without extracting to save my disk space, i saw the first page it is very good but there it has only one .7z file named drivers but now i have 9 packs now, please help me is there any way to do that

Download all driverpack files, including the BASE file, into the same directory. Do not unpack any files. Next simply run the BASE file, which is an executable. That's all you need to do.
Go to the top of the page
 
+Quote Post
Martin H
post Jun 28 2008, 05:11 PM
Post #207


Senior Member
****

Group: Members
Posts: 660
Joined: 24-November 06
Member No.: 116438
OS: XP Pro x86
Country Flag


First, i would just like to say many thanks for the people involved in making this awesome driver installation method; you guys rock thumbup.gif

Anyway, i have a question which i would very much appreciate some help with, thanks...

I'm installing my drivers uncompressed and directly from CD, but now i have just noticed that all the driver files on my HDD is read-only marked...

This is then because i'm on Win2k, which in contrary to WinXP, dosen't automatically remove the read-only attributes when copying from CD to HDD...

So my question then, is if you guys think that it's allright to have all the driver files left as read-only on the HDD ?

I mean DLL's and SYS's and such i guess won't hurt, but as there are also CFG's and such, then i'm alittle unsure about if it's OK or not to just leave them as read-only ?

If it's not good to leave them as read-only, then i guess that i'll have to make a batchfile that runs 'attrib -h *' on all of those files from RunOnceEx, but i would rather just avoid having to do that, if you guys thinks it's OK ?

Thank's in advance.

CU, Martin.
Go to the top of the page
 
+Quote Post
yocarim
post Oct 31 2008, 10:20 PM
Post #208


Newbie


Group: Members
Posts: 19
Joined: 26-October 08
Member No.: 216190
OS: XP Pro x86
Country Flag


I got a question, somebody can get me the code for a usb-stick with a letter is always U:\

The problem is i got a driverpack compressed in 1 files, called Drivers.7z, but the instalation is not work because, just work for a Cdsource, i got the win xp install from a usb-stick with a letter is U: all the time. Also the dir for the driverpack is in U:\$WIN_NT$.~LS\$OEM$\Drivers and for the winnt.sif is U:\$WIN_NT$.~LS\I386

If somebody can help me, please, And i think the solutions is change the code in the drivers.cmd file

This is the directory tree in my usb-stick

U:
---\$WIN_NT$.~BT
----------------------\system32
---\$WIN_NT$.~LS
----------------------\$OEM$
-------------------------------\Drivers\Drivers.7z
----------------------\I386

Sorry for my english welcome.gif unsure.gif blushing.gif
Go to the top of the page
 
+Quote Post
mlux
post Nov 20 2008, 01:05 PM
Post #209





Group: Members
Posts: 3
Joined: 20-November 08
Member No.: 219793
OS: XP Pro x64
Country Flag


help, if anyone reads this - I have burned around 10 dvds trying to get this method to work. I am a newbie and this so tell me everything in plain english. The drivers will not install; I have it setup to do a clean format - do you see anything else wrong? Also do I need a copy of the winnt.sif and winnt.exe in the system32 folder?

Here is what my winnt.sif looks like and it is located under my the I386 folder which is located at the same folder as $OEMS$:

;SetupMgrTag
[Data]
AutoPartition=1
MsDosInitiated= No
UnattendedInstall= Yes
AutomaticUpdates= Yes

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
Repartition = yes
UnattendSwitch=yes
WaitForReboot=No

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
OEMSkipRegional=1
TimeZone=35
OemSkipWelcome=1
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 Drivers.cmd)))"

[UserData]
ProductKey=*****-*****-*****-*****-*****
FullName="unknown"
OrgName="mine"
ComputerName=*

[Identification]
JoinWorkgroup=WORKGROUP

[Display]
BitsPerPel=32
Xresolution=1024
YResolution=768
Vrefresh=75


[Branding]
BrandIEUsingUnatteded=Yes

[Networking]
InstallDefaultComponents=Yes

[Components]
msmsgs=off
freecell=off
hearts=off
minesweeper=off
pinball=off
solitaire=off
spider=off
zonegames=off

[Shell]
DefaultStartPanelOff=YES
DefaultThemesOff=YES
Go to the top of the page
 
+Quote Post
Martin H
post Nov 20 2008, 08:00 PM
Post #210


Senior Member
****

Group: Members
Posts: 660
Joined: 24-November 06
Member No.: 116438
OS: XP Pro x86
Country Flag


QUOTE (mlux @ Nov 20 2008, 08:05 PM) *
Also do I need a copy of the winnt.sif and winnt.exe in the system32 folder?

System32 ??? If you meant I386, then you just need to add WINNT.SIF to I386.
QUOTE
Here is what my winnt.sif looks like and it is located under my the I386 folder which is located at the same folder as $OEMS$:

Unless that was a typo, then there's your problem... In the root you should have a folder named $OEM$ and not $OEMS$...

If it was a typo, then check that you have your drivers in either '$OEM$\Drivers' or '$OEM$\Drivers.7z' and that each driver folder has atleast 1 inf file...
Go to the top of the page
 
+Quote Post
mlux
post Nov 21 2008, 07:23 AM
Post #211





Group: Members
Posts: 3
Joined: 20-November 08
Member No.: 219793
OS: XP Pro x64
Country Flag


Thank you, that did the trick - now if I could get the display and the URL information to stay? any ideas on those? I tried to add the autoconfirm = 1 and it still did not take the display - it ask me to confirm the settings.

Thank you again for your help..
Go to the top of the page
 
+Quote Post
Martin H
post Nov 21 2008, 06:49 PM
Post #212


Senior Member
****

Group: Members
Posts: 660
Joined: 24-November 06
Member No.: 116438
OS: XP Pro x86
Country Flag


QUOTE (mlux @ Nov 21 2008, 02:23 PM) *
[...]now if I could get the display and the URL information to stay? any ideas on those? I tried to add the autoconfirm = 1 and it still did not take the display - it ask me to confirm the settings.

Try additionally adding 'ConfigureAtLogon=0'... I found several MSFN members stating that this should fix the display issue, but i don't know anything about if myself, though... The "URL information not staying" issue you're describing, i do not know what is about, sorry...
Go to the top of the page
 
+Quote Post
mlux
post Nov 24 2008, 10:26 AM
Post #213





Group: Members
Posts: 3
Joined: 20-November 08
Member No.: 219793
OS: XP Pro x64
Country Flag


Thank you! that worked perfectly! I am now going through the unattended install forum thread to see if I can find out anything about how to make the home page stay - Thank you kindly for your help and patience!
Go to the top of the page
 
+Quote Post
301
post Mar 22 2009, 09:51 AM
Post #214





Group: Members
Posts: 1
Joined: 2-March 09
Member No.: 234436
OS: none
Country Flag


hi

i use first method for install my drivers , but after windows installtion , my drivers not installed!!

please help me

my winnt.sif
--------------------------------------

CODE
;SetupMgrTag
[Data]
    AutoPartition=0
    MsDosInitiated="0"
    UnattendedInstall="Yes"

[Unattended]
    Unattendmode=FullUnattended
    OemPreinstall=No
    TargetPath=\Windows
    FileSystem=*
    OemSkipEula=Yes
    Repartition=No

[UserData]
    FullName="301"
    OrgName="301"
    ComputerName=Computer1
    ProductKey=*****-*****-*****-*****-*****
    ProductID=*****-*****-*****-*****-*****

[GuiUnattended]
    TimeZone=160
    AdminPassword=*
    EncryptedAdminPassword=NO
    OEMSkipRegional=1
    OemSkipWelcome=1
    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 Drivers.cmd)))"

[Display]
    BitsPerPel=32
    Xresolution=1024
    YResolution=768
    Vrefresh=60

[Networking]
    InstallDefaultComponents=No

[Identification]
    JoinWorkgroup=WORKGROUP

[TapiLocation]
    CountryCode=98
    Dialing=Tone
    AreaCode=0311

[RegionalSettings]
    LanguageGroup=13,1,11
    SystemLocale=00000429
    UserLocale=00000429
    InputLocale=0409:00000409,0429:00000429

[Shell]
CustomDefaultThemeFile = "%WinDir%\Resources\Themes\Royale.theme"


-------------------------------------------------

my xp cd layout
-----------------------------------------------
├───$OEM$
│.......├───Drivers
│................├───000
│................├───001
│.......├───7za.exe
│.......├───Drivers.cmd
│.......├───nircmd.exe
│.......├───Process.exe
│.......├───SetupCopyOEMInf.exe
│.......├───WatchDriverSigningPolicy.exe
├───I386
│.......├───winnt.sif

-----------------------------------------------------

my modem driver in folder '000'
----------------------------------------

----------------------------------------




my drivers.cmd
--------------------------------------------------

CODE
CLS
@ECHO OFF
TITLE Drivers-from-CD Installation
color 1F

::  Set Current Drive as CD
    CD /D "%~dp0"
::  Set Drivers Location Folder
    SET DRV=Drivers
::  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
::  Pre-Install (Suspend Setup, and Set Setup to Low Priority)
    .\Process.exe -s setup.exe
    .\Process.exe -p setup.exe low
::  Allow for Unsigned Drivers
    START .\WatchDriverSigningPolicy.exe
::  If Compressed Drivers Exist, Unzip Them & Change Drivers Location Folder to Hard Drive
    IF EXIST Drivers.7z (
    SET DRV=%SystemDrive%\Drivers
    .\7za.exe x -y -aoa -o"%SystemDrive%\Drivers" ".\Drivers.7z"
    )
::  Run NirCmd Ticker Script (code above)
    START .\NirCmd.exe script %SystemDrive%\Ticker.ncl
::  Install Drivers
    .\SetupCopyOEMInf.exe "%DRV%"
::  Post-Install (Close NirCmd, Setup Priority back to Normal, Resume Setup)
    .\Process.exe -k NirCmd.exe
    .\Process.exe -p setup.exe normal
    .\Process.exe -r setup.exe
::  Delete Ticker File
    DEL %SystemDrive%\Ticker.ncl

EXIT

-------------------------------



pls guide me

sorry for my english wacko.gif

thank you yes.gif
Go to the top of the page
 
+Quote Post
Acheron
post Apr 16 2009, 12:58 PM
Post #215


Friend of MSFN
*****

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


I have integrated all DriverPacks now into a Windows XP SP3 CD and noticed these scripts work fine with it. However integrating 800MB of drivers takes more time so I have updated and simplified the presetup.cmd script.

Winnt.sif
CODE
[Data]AutomaticUpdates = No
Autopartition = 0
MsDosInitiated = 0
UnattendedInstall = Yes

[Unattended]
CrashDumpSetting = 0
DUDisable = Yes
DriverSigningPolicy = Ignore
FileSystem = *
NoWaitAfterGUIMode = 1
NoWaitAfterTextMode = 1
OemPreinstall = No
OemSkipEula = Yes
OemSkipWelcome = 0
UnattendSwitch = No
UnattendMode = DefaultHide
WaitForReboot = No

[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 /D%J nircmd.exe exec hide presetup.cmd)))"


presetup.cmd
CODE
@echo off
set param=%*
if not defined param (
    start nircmd.exe exec hide presetup.cmd install
    process.exe -s "setup.exe"
    goto :ticker
) else (
    setupcopyoeminf.exe "Drivers"
)
process.exe -k "sleep.exe"
process.exe -r "setup.exe"
exit

:ticker
sleep 50
process.exe -r "setup.exe"
process.exe -v | findstr /i ^"setupcopyoeminf^"
if not errorlevel 1 (
    sleep -m 2500
    process.exe -s "setup.exe"
    goto :ticker
)
goto :eof


UPDATE: Removed ticker script, so no need for nircmd.exe anymore. Script now depends on sleep.exe to wait. I have included nircmd.exe only for hiding the script now.

This post has been edited by Acheron: Apr 21 2009, 12:26 PM
Go to the top of the page
 
+Quote Post
Acheron
post Apr 22 2009, 11:50 AM
Post #216


Friend of MSFN
*****

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


As I'm working on integrating the DriverPacks I'm encountering problems using the DPFinisher program as it assumes all drivers are copied to the hdd. Also the program does run some tasks similar as setupcopyoeminf but these are not documented anywhere. Writing a custom application to manually process the DriverPacks without the bloat from the DPFinisher program should make things more simply.
Go to the top of the page
 
+Quote Post
Martin H
post May 15 2009, 01:32 AM
Post #217


Senior Member
****

Group: Members
Posts: 660
Joined: 24-November 06
Member No.: 116438
OS: XP Pro x86
Country Flag


I've recently changed to installing my apps from a second data-drive/partition, instead of the %cdrom% based method, since that's even more faster, but then i thought to myself, why not also doing the same with the drivers, i.e. having the drivers stored on a second data-drive/partition, and then letting Windows install them from there, and so i changed the method described in this thread(uncompressed drivers from CD), with the following changes:

I placed the $OEM$ folder on my second data-drive/partition, and renamed it to Drivers, and then changed the 'Arguments' section in WINNT.SIF to the following:
CODE
[GuiUnattended]
    DetachedProgram=".\system32\cmd.exe"
    Arguments="/Q /C start /min /Dxxxxx NirCmd.exe exec hide Drivers.cmd"

(Where xxxxx is the path for the Drivers folder)

Just wanted to post this, in case someone would find it interesting... smile.gif



This post has been edited by Martin H: May 17 2009, 08:37 AM
Go to the top of the page
 
+Quote Post
meowing
post Oct 26 2009, 01:02 AM
Post #218


a joy forever
**

Group: Members
Posts: 126
Joined: 24-July 08
From: Langford, Canada
Member No.: 202362
OS: XP Pro x64
Country Flag


Has anyone successfully used this for XP x64 Edition install? (no driverpacks exist for xp64, so if this method applies, it can work wonders)..
Go to the top of the page
 
+Quote Post

Google Frontpage Forums Unattended CD/DVD Guide

11 Pages V  « < 9 10 11
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: 24th November 2009 - 04:02 PM
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