Help - Search - Members - Calendar
Full Version: Switches in TXTSETUP.SIF
MSFN Forums > Unattended Windows Discussion & Support > Unattended Windows 2000/XP/2003

   


Google Internet Forums Unattended CD/DVD Guide
raskren
The TXTSETUP.SIF file is the most likely file you need in order to customize the setup. It contains numerous sections, the most important of which are described in the following sections.

The [SourceDisksFiles] Section
The [SourceDisksFiles] section lists all files for the installation. This section is critical for customization because it controls which files are copied during the installation. Using a text editor (such as Notepad), you can search for the [SourceDisksFiles] section to obtain a list of all Windows 2000 installation files. The first few lines of this section are

CODE
       
[SourceDisksFiles]
_default.pif = 1,,,,,,,1,3
12520437.cpx = 1,,,,,,,2,0,0  ; mdac
12520850.cpx = 1,,,,,,,2,0,0  ; MDac
       :
       :


The following line shows the syntax of each line in the [SourceDisksFiles] section:


filename_on_source=diskid,subdir,upgradecode,newinstallcode,spare,spare,newfilename


Extra fields specified by commas (,) are Windows NT—specific.

diskid is used when a floppy disk installation is used. (Or multiple CDs?)

subdir is the directory to which files are copied. Codes defined in the [WinntDirectories] section of the TXTSETUP.SIF file are used to identify the destination directory.

upgradecode is a single digit that is used if this is an upgrade from an earlier version. It specifies whether the file is copied during the text-mode portion.

Codes in the [Files] Section of TXTSETUP.SIF for File Copy

Status Code - Copy Action
0 - Always copies the file
1 - Copies the file only if it exists in the installation directory
2 - Does not copy the file if it exists in the installation directory
3 - Does not copy the file



newinstallcode is a single digit that is used if this is a fresh installation. It specifies whether the file is copied during the text-mode portion. The same codes are used as for upgrading Windows 2000 and are described in Table 4.3. The newinstallcode is optional; if it is not included, the file is not copied (code = 3).

newfilename is the name to which the file is renamed if it is copied. As an example, consider this line from the [SourceDisksFiles] section.

CODE
autochk.e XE = 1,,,,,,_x,2,0,0



The file AUTOCHK.EXE in this line is on the CD or the disk with diskid d2 defined in the [Media] section. The file also is on Setup Disk 2 (_2), also defined in the [Media] section. The file is installed in directory 2, which is defined in the [WinntDirectories] section. If you look up the [WinntDirectories] section, directory 2 is the System32 subdirectory in the Windows 2000 root directory. The upgrade code and new installation codes are 0, which means that this file always must be copied to the installation directory, whether this is an upgrade from an earlier version of Windows 2000 or a fresh installation.
raskren
Giving credit where credit is due:

Windows® 2000 Server Professional Reference
By Karanjit S. Siyan Ph.D.

Publisher : New Riders Publishing
Pub Date : July 10, 2000
ISBN : 0-7357-0952-1
Pages : 1848
tbone587
so what does all this info mean? And how can this help with my unattended install? Can deleting some info from this file speed up the install?
raskren
Now in plain English...I think.

A while back I posted how to add 3rd party SATA/RAID/SCSI/IDE drivers that were not included with Windows. This involved making changes to the TXTSETUP.SIF file located in the i386 directory.

Let's look at a line adding the driver file iaStor.sys (ICH5R driver) in the [SourceDisksFiles]
raskren
Now a bit more commentary.

I think I've figured out what everything means here except for the last "4" in the line. Looking through the original TXTSETUP.SIF shows that the DESTINATION CODE and this last number always match. So I'd suggest keeping your own lines that way.

Text in the drawing marked in RED is optional.

I've also noticed that with a CD install the [SourceDisksNames] are all the same. I believe that these are really just dummy files (especially 2_ through 6_). I would also suspect that in your own modifications to TXTSETUP.SIF you could probably replace 3_ with 1_ through 6_ and have success...haven't tested it though.

I also must give credit to Gosh for figuring out some of this information. According to his information if your added files in the i386 directory are not compressed replace 3_ with _x.

In any case if you add files by modifying TXTSETUP.SIF make sure that an identical filename doesn't already exist in TXTSETUP.SIF or DOSNET.INF. If it does you should be able to comment out (;) the additional lines to add your new, updated file. Although it does seem that a few of the additional switchs (the last two specifically) are there to allow you to determine what should happen if a conflict arises.

I'll be doing some testing playing with different settings very soon.
gosh
Just wanted to mention my site has similiar info at http://gosh.msfnhosting.com/txtsetup.htm

-gosh
techtype
@gosh
Your stuff is always so nicely laid out. You have a gift for explaning things!
RyanVM
Does it really matter if there's a 100 or a 1 at the front of the line if you're integrating files (say a mass storage controller driver) into the install?

Why do RAID drivers use 4_ instead of 3_?
Alanoll
does anyone have one of those expensive books to answer the man?

I'm interested as well. No real use for it just yet, but curiosity is a good enough driving force.
Bilou_Gateux
In Windows 2000 Server txtsetup.sif, some RAID drivers use this syntax
CODE
[SourceDisksFiles]
cpqarray.sys = 2,,,,,,3_,4,1
cpqarry2.sys = 1,,,,,,3_,4,1
mraid35x.sys = 1,,,,,,3_,4,1

[SCSI]
cpqarry2 = "Compaq Smart Array Controller"
mraid35x = "AMI MegaRaid RAID Controller"

both cpqarry2 and mraid35x are RAID controllers.

@RyanVM
Maybe this number 3_ is just used to recreate the Setup Boot floppies with makeboot or makebt32 tool.
3_ means put the file on the 3rd disk
4_ means put the file on the 4th disk
because there is 4 setup boot floppies on Windows 2000

on Windows XP, there is 6 setup boot floppies
How can I create the Setup Boot floppies for Windows XP Pro/Home?
Bâshrat the Sneaky
Old topic, maybe forgotten, but I've bookmarked it.

Might turn out to be useful...
glugglug
bah, somehow replied to wrong thread.
Vadikan
I have a couple of questions related to the [url=http://www.msfn.org/board/index.php?act=Attach&type=post&id=103095]image[/b] attached to the raskren's post on the first page of the thread.

"1- Original or RTM." What is RTM? "Ready to manufcture" is the only thing that comes to my mind except for RTFM smile.gif

"Commas required. 6 at minimum, 7 if the next entry is omitted". What entry is this about? And what happens if it is omitted?

Thanks for your attention to my questions.
evilvoice
rtm is "release(d) to manufacturer"

and the 6 commas or 7 if next is omitted...this basically refers to "[SourceDisksNames] Entry" you can omit it if you want (dunno what happens if you do) and if you do, then youll need 7 commas...Actually, I believe it tells windows if the file is compressed or not...3_ for uncompressed _3 for compressed...and dunno what happens if its omitted.
Vadikan
Thanks for your reply, evilvoice. So "omitting the entry" refers to the particular entry after the commas and has nothing to do with the whole line, correct?
evilvoice
that is correct...it is talking about omitting the very next entry...or if it helps you more...its talking about omitting the entry BEFORE the 7th comma
Vadikan
Thanks, I just needed to make sure I got it right smile.gif
Caube
How to delete floppy disk driver(flpydisk.sys&flpydisk.inf) from the txtsetup.sif file?
raskren
Wha? Please rephrase the question.

You wanna remove two drivers from the textsetup portion of the install?

Delete ALL relevant entries in txtsetup.sif and delete the drivers files themselves from i386.
HooGLaNDeR
Has anything changed, since ServicePack 2? Any changes in the syntax ?
Bâshrat the Sneaky
Nope, no changes to the syntax at all.
HooGLaNDeR
Thnx Bâshrat the Sneaky.

Ps. You've got mail newwink.gif
ohad
hmm.. how can I debug it if setup doesnt copy my file?
(I'm using win2003 due..)

I have the same configureation in my txtsetup.sif:

megaide.sys = 1,,,,,,,3_,4,1
i've also tried
megaide.sys = 1,,,,,,,4_,4,1,,,1,4

could it be needed to add in any other file ? (dosnet.inf...)

thanks,
ohad
RBCC
Is the background color of the text-mode portion of setup refrenced in txtsetup.sif? If so , where?

John welcome.gif thumbup.gif
secowu
but how can i use txtsetup.sif creates my folder or preinstall app.?

such as :

c:\program files\freeb\freeb.exe
c:\program files\freeb\color\freeb.cls

etc.


tks
Donnie
Hello everybody.
I can't figure out how iexplore.exe is copied to "Program Files\Internet Explorer"

In txtsetup.sif the corresponding line reads
iexplore.exe = 100,,,,,,,,3,3

This is just for example, as many other files are copied to "Program Files\<some sub-dir>".

Any suggestions?
yodafr
QUOTE (Donnie @ Dec 18 2005, 04:44 PM) *
Hello everybody.
I can't figure out how iexplore.exe is copied to "Program Files\Internet Explorer"

In txtsetup.sif the corresponding line reads
iexplore.exe = 100,,,,,,,,3,3

This is just for example, as many other files are copied to "Program Files\<some sub-dir>".

Any suggestions?


hello,

Same problem for me.

How can I put files in "program files\myfolder" without $OEM$ folder, probably using txtsetup.sif

Thanks.
RyanVM
You can't. You have to use INFs to copy them (which is how MS does it for stuff in Program Files)
yodafr
Can you give me the name of an exemple file in i386 ?

Thanks smile.gif.

Edit : that's good, I found what I needed, thanks newwink.gif.

Re-Edit : what file must I modify for the installation of the .inf file during installation ?
Thanks smile.gif.
yodafr
Please sad.gif.

Where can I find a tutorial ?

Thanks smile.gif.
Br4tt3
Read just about everything there is on this subject and this my last desperate attempt to have someone helping me solve my current issue:

link to problem:
http://www.msfn.org/board/index.php?showtopic=79938

Thanks for the nice info though, both Gosh & Raskren!
Speeddymon
Hi, I have entries in my txtsetup.sif that don't conform to the standard listed so far..

CODE
aec.sys = 100,,,,,,,4,0,3; This doesnt conform
afd.sys = 100,,,,,,,4,0,0,,1,4; This does


SO, bearing that in mind, 100 says it is from a service pack, 4 is the install dir, 0 says always copy on upgrade, but what does the 3 mean on the first line? What does the 2nd 0 mean on the 2nd line?

My guess for the first line is that the 3 is the new install code, but I can't be totally sure yet, I'm going to test this tomorrow. As for the 2nd line, I have no clue, anyone else care to venture a guess?

According to Post #4, there are supposed to be 3 commas after the upgrade code.

I'm asking because aec.sys was not on my SP1 CD, nor is it added after I slipstream SP2, however one of the post-sp2 updates I downloaded from MS has it, and it is installed on my machine in the folder that 4 points to (\system32\drivers)

I've just used makecab on it and copied it to my i386 folder, but I want to make sure it will be copied on a clean install.

EDIT: I just discovered that aec.sys is in my SP2.cab file and is installed by it's reference in another file that isnt txtsetup.sif, so that takes care of that problem, but I still would like to know about the string.
the_doc735
QUOTE (raskren @ Feb 9 2004, 09:59 PM) *
Now in plain English...I think.

A while back I posted how to add 3rd party SATA/RAID/SCSI/IDE drivers that were not included with Windows. This involved making changes to the TXTSETUP.SIF file located in the i386 directory.

Let's look at a line adding the driver file iaStor.sys (ICH5R driver) in the [SourceDisksFiles]


what do I need to put if I'm using promise PCD20378?
fasttx2k.sys = 100,,,,,,3_,4,1,,,1,4
ulsata.sys = 100,,,,,,3_,4,1,,,1,4

I've just copied this from your walk through, don't know if it's correct?

Also, my drivers folders DON'T contain a TXTSETUP.OEM file. The 'OEM' file is in the folder on the next level up!!! I've only copied the files from the drivers folders as per your walk through [which doesn't include the 'oem' file], is this correct?

Many Thanks!
thumbup.gif
Speeddymon
QUOTE (the_doc735 @ Sep 20 2006, 07:17 AM) *
I've just copied this from your walk through, don't know if it's correct?

Also, my drivers folders DON'T contain a TXTSETUP.OEM file. The 'OEM' file is in the folder on the next level up!!! I've only copied the files from the drivers folders as per your walk through [which doesn't include the 'oem' file], is this correct?


The only way that this would work (just copying the files without modifying your txtsetup.sif) is if the files are already referenced in txtsetup.sif (i.e. you are just updating the drivers to the latest ones). If you are adding a new driver in, then you need to copy the necessary lines from your txtsetup.oem (yes, the one in the directory above where your drivers are in this case) and paste them into txtsetup.sif. Then modify the lines so that they point to the correct location of the driver files on your cd.. If you post the sections of your txtsetup.oem that are referenced in the howto you looked at, I can help you modify them so that they point to the right place.
the_doc735
QUOTE (gosh @ Feb 9 2004, 09:21 PM) *
Just wanted to mention my site has similiar info at http://gosh.msfnhosting.com/txtsetup.htm

-gosh


can't access your site?

where can I get more detail about those numbers please?

1,,,,,,4_,4,1,,,1,4 explanation?

many thanks!

[@ anyone]
woot.gif
the_doc735
QUOTE (Speeddymon @ Sep 20 2006, 07:28 PM) *
QUOTE (the_doc735 @ Sep 20 2006, 07:17 AM) *

I've just copied this from your walk through, don't know if it's correct?

Also, my drivers folders DON'T contain a TXTSETUP.OEM file. The 'OEM' file is in the folder on the next level up!!! I've only copied the files from the drivers folders as per your walk through [which doesn't include the 'oem' file], is this correct?


If you post the sections of your txtsetup.oem that are referenced in the howto you looked at, I can help you modify them so that they point to the right place.


@speeddymon...

many thanks! thumbup.gif

I've attached:
The 2 txtsetup.oem files for raid/ata promise.
A section that I'm unsure about adding in to the 'package'/structure at all? (refers to a different driver in the example but I could always substitute if necessary?).
A walk through of what I actually did (so far)!!!
yes.gif

DOWNLOAD FILES TO PRESERVE FORMATTING!
the_doc735
QUOTE (raskren @ Feb 9 2004, 09:59 PM) *
SEE ATTACHMENT - HEREWITH

A while back I posted how to add 3rd party SATA/RAID/SCSI/IDE drivers that were not included with Windows. This involved making changes to the TXTSETUP.SIF file located in the i386 directory.

Let's look at adding the driver file in the [SourceDisksFiles] section....



The txtsetup.sif explained
Background:
Windows Setup uses a number of key files to control how the Windows Setup behaves. This mechanism dates back to the Windows NT era. If you are able to control these files, you are controlling how Windows Setup behaves. For now you need to be aware of three files:

DOSNET.INF - Used by WINNT.EXE/WINNT32.EXE during the file copy phase of the Setup.
LAYOUT.INF - Used as a template for file copy operations. DO NOT EDIT THIS FILE!
TXTSETUP.SIF - Used by the textmode phase of the Setup and prepares for the GUI phase of the Setup.
The textmode phase is invoked after the reboot from the copy phase or when booting from the installation CD-ROM. This article will be limited to adjusting the txtsetup.sif file only, since most installations will be initiated from a bootable installation CD-ROM.


Textmode and the txtsetup.sif file:
As mention before the txtsetup.sif file is used by textmode phase of the Windows Setup and largely controls how the Windows Setup behaves. Among the tasks the textmode phase performs, are the following:

Preparing the filesystem for installation (formatting, creating folders).
Copy the basic Windows files needed to start the GUI phase to the destination folders.
Loading setupreg.hiv needed by the GUI phase and preparing the Initial Registry configurations.
Txtsetup.sif sections:
Every information file is divided into sections. Sections can be identified by brackets, eg. '[MySection]'. For adding OEM drivers so the storage hardware can be used by the Textmode phase of the Windows Setup the following sections are important to be aware of:


CODE
[WinntDirectories]
1 = "\"
2 = system32
3 = system32\config
4 = system32\drivers
20 = inf

[SourceDisksFiles]
dummy.sys = 1,,,,,,3_,4,1,,,1,4

[HardwareIdsDatabase]
PCI\VEN_9999&DEV_1234 = "dummy"

[SCSI.load]
dummy = dummy.sys,4

[SCSI]
dummy = "Robert's Dummy Storage Driver"



Although 'Dummy' is used as an example entry, if a 'dummy.sys' would actually exist on the installation media and the above entries would have been added to the 'txtsetup.sif' the Textmode phase of the Windows Setup would have displayed in the status bar of the screen 'Loading Robert's Dummy Storage Driver ...'.


[WinntDirectories]:
This section maps a physical directory, either absolute like '\' or relative to %SystemRoot%. The folder is identified throughout the Windows Setup by the number it was assigned to. Eg. '4 = system32\drivers' maps the number '4' to '%SystemRoot%\system32\drivers'.


[SourceDisksFiles]:
This section controls how source files are copied to their destination and what their properties will be, eg. The file 'dum__.inf' can be copied to '%SystemRoot%\Inf\dummy.inf' with the line: 'dum__.inf = 1,,,,,,,20,0,0,dummy.inf'.


[HardwareIdsDatabase]:
This sections holds the mapping of physical PCI resources that will be controlled by the various drivers. In the above example the driver identified by the name 'dummy' controls a piece of hardware that identified by the following PCI Vendor ID and PCI Device ID: 'PCI\VEN_9999&DEV_1234'. If there are multiple drivers that control the same PCI Vendor ID and PCI Device ID we can expect a bugcheck. If the wrong information is entered here for Storage hardware, you definitely get a bugcheck '0x0000007B' better known as: 'INACCESSIBLE_BOOT_DEVICE'.


[SCSI.load]:
You can add as many drivers as you want, but if the Windows Setup doesn't load them, they can not be used during the setup. This section controls if the various drivers are loaded during initialization and in what order. This section is processed from top to bottom, so drivers listed first are loaded first. So, dummy = dummy.sys,4 loads the driver 'dummy.sys' from the folder '%SystemRoot%\System32\Drivers'


Note: It's relative to the destination folder!.


[SCSI]:
If Windows Setup would display 'Loading dummy.sys...' we still wouldn't know what kind of driver (except for its name) is being loaded. Displaying something like 'Loading Robert's Dummy Storage Driver ...' looks much better. That is the primary function for this section, displaying a 'friendly name'. The format is something like: 'driver_name = "Friendly Name"'. The 'Friendly Name' part can be any text, but it's custom to use a string that can be found in either the drivers 'txtsetup.oem' or 'driver.inf', but more about that in the next part of this article.


Modifying the txtsetup.sif
Background:
As mentioned before the Windows Setup exist from two phases know as the 'Textmode' phase and the 'GUI' phase. Adding storage drivers Textmode phase doesn't necessarily mean that the GUI phase is aware of the storage device presented by the driver. So if you add a driver to the Textmode phase of the setup and install Windows on the device presented by that driver, after the GUI phase has completed successfully and Windows has been installed, you will not be able to boot because the driver is not installed correctly. To avoid this, the driver must also be installed during the GUI phase.
If you're familiar with unattended installation you probably know about a feature called: 'OemPnPDriversPath', but unfortunately that option is not available in attended installations. So we have to come up with another solution. The GUI phase parses the %SystemRoot%\Inf folder for any information files present, if we could make sure the Textmode phase copies the driver .inf file to that folder, we would be save. Well that is, almost save. Actually there are two solutions; one simple and another more complex but more elegant. Both methods will be discussed here, the former being mandatory:


Preparing the modifications:
In the previous section we saw how the txtsetup.sif is constructed. So somehow we need to obtain the information to be able to modify our own txtsetup.sif and add our own driver. What we require is outlined below:

Obviously we need the 'Promise' SATA driver, which can be downloaded here or here.
We also need the setup information file from the downloaded 'Promise' driver zip file, fasttx2k.inf.
And the driver file itself, fasttx2k.sys.
The textmode OEM information file, txtsetup.oem.
The entire content of the Windows Server 2003, Standard x64 Edition copied to a temporary folder. Keep in mind that files copied from CD-ROM have the 'Read only' attribute set.
Extracting the required information:
Now execute the following steps one-by-one.

Extract the downloaded driver zip file, 1_FastTrakS150TX-Series-PDC2037x-1.00.1.39.zip to a temporary folder.
Open the txtsetup.oem with a text editor. Notepad.exe is adequate.
Search for a string that looks like this: driver = d2, fasttx2k.sys, fasttx2k.
This gives us the driver file name, fasttx2k.sys and the internal driver name, fasttx2k. Take note of these filenames.
Now search for a string that looks like this: FastTrak_TX2K_net = "Promise FastTrak 378/TX4000/S150 TX Series ™ Controller", fasttx2k.
Now we have the drivers Friendly name, Promise FastTrak 378/TX4000/S150 TX Series ™ Controller. Save the friendly name.
Look for any line that starts with: id="PCI\VEN_" and save those too. These are the unique PCI Vendor ID's and PCI Device ID's that identify a certain adapter.

Now that we have the required information we can proceed with the next step.


Modifying the txtsetup.sif file:
First we need to add the files to the [SourceDisksFiles] section of the txtsetup.sif. To do that, open any text editor and add the two lines under the [SourceDisksFiles] section below in the txtsetup.sif file. The txtsetup.sif can be found in the \AMD64 directory of the installation source.


CODE
[SourceDisksFiles]
fasttx2k.sys = 1,,,,,,3_,4,1,,,1,4
fasttx2k.inf = 1,,,,,,,20,0,0



The line fasttx2k.inf = 1,,,,,,,20,0,0 has been added, although not necessary for Textmode mode storage detection, it is necessary by the GUI mode hardware detection. Remember, it parses the %SystemRoot%\Inf folder for existing .inf files. Notice the numbers 4 and 20 being bold. This is the destination folder where the files will be copied to. As mentioned in the previous section, folders are mapped to numbers. For the complete list look at the [WinntDirectories] of the txtsetup.sif.


CODE
[WinntDirectories]
4 = system32\drivers
20 = inf


Also notice the 1 being bold. Of course the Windows Setup needs to know where the files are copied from. This is being controlled from the first field after the '=' sign. Now take a look at the list below.

CODE
[SourceDisksNames]
1 = %cdname%,%cdtagfilea%,,
7 = %cdname%,%cdtagfilea%,,\lang
8 = %cdname%,%cdtagfilea%,,\lang
8 = %cdname%,%cdtagfilea%,,\lang
10 = %cdname%,%cdtagfilea%,,\lang
11 = %cdname%,%cdtagfilea%,,



As we can see from the list above, 1 equals: 1 = %cdname%,%cdtagfilea%,, The line under [SourceDisksFiles] section, fasttx2k.sys = 1,,,,,,3_,4,1,,,1,4 copies the fasttx2k.sys from the folder to %SystemRoot%\Systems32\Drivers folder. Note: Changing the value of 1 to 11 would also work.


Now we need to add our own hardware ID's to the [HardwareIdsDatabase] section of the txtsetup.sif. The format should be similar to the following:


CODE
[HardwareIdsDatabase]
PCI\VEN_105A&DEV_6629 = "fasttx2k"
PCI\VEN_105A&DEV_3371 = "fasttx2k"
PCI\VEN_105A&DEV_3319 = "fasttx2k"
PCI\VEN_105A&DEV_3373 = "fasttx2k"



Next the driver needs to be loaded during the Textmode phase. To accomplish that, add the following entry to the [SCSI.load] section of the txtsetup.sif:


CODE
[SCSI.load]
fasttx2k = fasttx2k.sys,4



I would suggest to place this line direct below the atapi = atapi.sys,4 line. The atapi.sys is the first driver that is loaded, adding our driver direct below it, would make our Promise driver the 2nd driver loaded during the Textmode phase.


The last entry we have to add is the drivers Friendly name under the [SCSI] section of the txtsetup.sif file. To accomplish that, add the following line:


CODE
[SCSI]
fasttx2k = "Promise FastTrak 378/TX4000/S150 TX Series (tm) Controller"




Now that we have our modified version of the txtsetup.sif file, save it and close the text editor.


newwink.gif
the_doc735
QUOTE (raskren @ Feb 9 2004, 09:01 PM) *
The TXTSETUP.SIF file is the most likely file you need in order to customize the setup. It contains numerous sections, the most important of which are described in the following sections.

The [SourceDisksFiles] Section
The [SourceDisksFiles] section lists all files for the installation. This section is critical for customization because it controls which files are copied during the installation. Using a text editor (such as Notepad), you can search for the [SourceDisksFiles] section to obtain a list of all Windows 2000 installation files. The first few lines of this section are

CODE
       
[SourceDisksFiles]
_default.pif = 1,,,,,,,1,3
12520437.cpx = 1,,,,,,,2,0,0  ; mdac
12520850.cpx = 1,,,,,,,2,0,0  ; MDac
       :
       :


The following line shows the syntax of each line in the [SourceDisksFiles] section:


filename_on_source=diskid,subdir,upgradecode,newinstallcode,spare,spare,newfilename


Extra fields specified by commas (,) are Windows NT—specific.

diskid is used when a floppy disk installation is used. (Or multiple CDs?)

subdir is the directory to which files are copied. Codes defined in the [WinntDirectories] section of the TXTSETUP.SIF file are used to identify the destination directory.

upgradecode is a single digit that is used if this is an upgrade from an earlier version. It specifies whether the file is copied during the text-mode portion.

Codes in the [Files] Section of TXTSETUP.SIF for File Copy

Status Code - Copy Action
0 - Always copies the file
1 - Copies the file only if it exists in the installation directory
2 - Does not copy the file if it exists in the installation directory
3 - Does not copy the file



newinstallcode is a single digit that is used if this is a fresh installation. It specifies whether the file is copied during the text-mode portion. The same codes are used as for upgrading Windows 2000 and are described in Table 4.3. The newinstallcode is optional; if it is not included, the file is not copied (code = 3).

newfilename is the name to which the file is renamed if it is copied. As an example, consider this line from the [SourceDisksFiles] section.

CODE
autochk.e XE = 1,,,,,,_x,2,0,0



The file AUTOCHK.EXE in this line is on the CD or the disk with diskid d2 defined in the [Media] section. The file also is on Setup Disk 2 (_2), also defined in the [Media] section. The file is installed in directory 2, which is defined in the [WinntDirectories] section. If you look up the [WinntDirectories] section, directory 2 is the System32 subdirectory in the Windows 2000 root directory. The upgrade code and new installation codes are 0, which means that this file always must be copied to the installation directory, whether this is an upgrade from an earlier version of Windows 2000 or a fresh installation.


@raskren welcome.gif

do you know what this means please:(?) %srgb%

TXTSETUP.SIF
CODE
[SourceDisksFiles]
srgb.icm = 1,,,,,,,34,0,0,%srgb%

wacko.gif
the_doc735
QUOTE (raskren @ Feb 9 2004, 09:01 PM) *
The TXTSETUP.SIF file is the most likely file you need in order to customize the setup. It contains numerous sections, the most important of which are described in the following sections.

The [SourceDisksFiles] Section
The [SourceDisksFiles] section lists all files for the installation. This section is critical for customization because it controls which files are copied during the installation. Using a text editor (such as Notepad), you can search for the [SourceDisksFiles] section to obtain a list of all Windows 2000 installation files. The first few lines of this section are

CODE
       
[SourceDisksFiles]
_default.pif = 1,,,,,,,1,3
12520437.cpx = 1,,,,,,,2,0,0  ; mdac
12520850.cpx = 1,,,,,,,2,0,0  ; MDac
       :
       :


@raskren welcome.gif

CODE
srframe.mmf = 1,,,,,,,,3,3


what if there are 8 commas 'as above'? What does this mean/indicate/signify please?

1 = \I386
3 = file copied to system32\config (then)
3 = does not copy the file

3,3 = contradiction in terms?


wacko.gif
wallace1
QUOTE
QUOTE (raskren @ Feb 9 2004, 09:01 PM)
The TXTSETUP.SIF file is the most likely file you need in order to customize the setup. It contains numerous sections, the most important of which are described in the following sections.

The [SourceDisksFiles] Section
The [SourceDisksFiles] section lists all files for the installation. This section is critical for customization because it controls which files are copied during the installation. Using a text editor (such as Notepad), you can search for the [SourceDisksFiles] section to obtain a list of all Windows 2000 installation files. The first few lines of this section are

CODE
[SourceDisksFiles]
_default.pif = 1,,,,,,,1,3
12520437.cpx = 1,,,,,,,2,0,0 ; mdac
12520850.cpx = 1,,,,,,,2,0,0 ; MDac
:
:


@raskren

CODEsrframe.mmf = 1,,,,,,,,3,3

what if there are 8 commas 'as above'? What does this mean/indicate/signify please?

1 = \I386
3 = file copied to system32\config (then)
3 = does not copy the file

3,3 = contradiction in terms?


I wonder exactly the same questions!!!!!




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.