Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Switches in TXTSETUP.SIF

- - - - -

  • Please log in to reply
39 replies to this topic

#1
raskren

raskren

    I ♥ Longhorn

  • Member
  • PipPipPip
  • 383 posts
  • Joined 11-September 03
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

  	 
[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.

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.


How to remove advertisement from MSFN

#2
raskren

raskren

    I ♥ Longhorn

  • Member
  • PipPipPip
  • 383 posts
  • Joined 11-September 03
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

#3
tbone587

tbone587

    Junior

  • Member
  • Pip
  • 96 posts
  • Joined 19-October 03
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?

#4
raskren

raskren

    I ♥ Longhorn

  • Member
  • PipPipPip
  • 383 posts
  • Joined 11-September 03
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]

Attached Files



#5
raskren

raskren

    I ♥ Longhorn

  • Member
  • PipPipPip
  • 383 posts
  • Joined 11-September 03
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.

#6
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
Just wanted to mention my site has similiar info at http://gosh.msfnhost...om/txtsetup.htm

-gosh

#7
techtype

techtype

    * Seeker of Knowledge *

  • Member
  • PipPip
  • 275 posts
  • Joined 18-October 03
@gosh
Your stuff is always so nicely laid out. You have a gift for explaning things!

#8
RyanVM

RyanVM

    Like a big surly teddy bear.

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,661 posts
  • Joined 31-August 03
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_?
RyanVM MSFN Files | RyanVM Forums
Please do not link directly to files on my site or modify/redistribute them without getting my permission first. Link to the above URL instead.
Current Update Pack Release: 2.2.2
(Released April 28, 2008)

BTW, 90% of what I say is kidding around. Don't take things so personally ;)

#9
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
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.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#10
Bilou_Gateux

Bilou_Gateux

    Powered by Windows Embedded

  • Member
  • PipPipPipPipPip
  • 768 posts
  • Joined 03-January 04
In Windows 2000 Server txtsetup.sif, some RAID drivers use this syntax
[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?
OS Version = 5.1.2600 Service Pack 3
Platform ID = 2 (NT)
Service Pack = 3.0
Suite = 0x0140
Product Type = 1
Architecture = x86

#11
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Old topic, maybe forgotten, but I've bookmarked it.

Might turn out to be useful...

#12
glugglug

glugglug

    Newbie

  • Member
  • 12 posts
  • Joined 13-August 04
bah, somehow replied to wrong thread.

#13
Vadikan

Vadikan

    MSFT MVP Windows Expert: Consumers

  • Member
  • PipPipPip
  • 349 posts
  • Joined 22-February 04
  • OS:Windows 8 x64
  • Country: Country Flag
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 :)

"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.
What we know is not much. What we do not know is immense. Pierre-Simon Laplace
--
Unattended Installation in Russian

#14
evilvoice

evilvoice

    Ditchy McAbandonpants

  • Member
  • PipPipPipPipPip
  • 946 posts
  • Joined 27-January 04
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.
When I spotted this little cutie with some sex appeal. I winked at her, she gave me a look like I'm a booger. I thought b***h, I'd rather spend my money on a hooker. Then a bright idea ran across my mind, if I could swipe a manikin I'd have a freak all the time.

#15
Vadikan

Vadikan

    MSFT MVP Windows Expert: Consumers

  • Member
  • PipPipPip
  • 349 posts
  • Joined 22-February 04
  • OS:Windows 8 x64
  • Country: Country Flag
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?
What we know is not much. What we do not know is immense. Pierre-Simon Laplace
--
Unattended Installation in Russian

#16
evilvoice

evilvoice

    Ditchy McAbandonpants

  • Member
  • PipPipPipPipPip
  • 946 posts
  • Joined 27-January 04
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
When I spotted this little cutie with some sex appeal. I winked at her, she gave me a look like I'm a booger. I thought b***h, I'd rather spend my money on a hooker. Then a bright idea ran across my mind, if I could swipe a manikin I'd have a freak all the time.

#17
Vadikan

Vadikan

    MSFT MVP Windows Expert: Consumers

  • Member
  • PipPipPip
  • 349 posts
  • Joined 22-February 04
  • OS:Windows 8 x64
  • Country: Country Flag
Thanks, I just needed to make sure I got it right :)
What we know is not much. What we do not know is immense. Pierre-Simon Laplace
--
Unattended Installation in Russian

#18
Caube

Caube
  • Member
  • 1 posts
  • Joined 24-December 04
How to delete floppy disk driver(flpydisk.sys&flpydisk.inf) from the txtsetup.sif file?

#19
raskren

raskren

    I ♥ Longhorn

  • Member
  • PipPipPip
  • 383 posts
  • Joined 11-September 03
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.

#20
HooGLaNDeR

HooGLaNDeR
  • Member
  • 4 posts
  • Joined 26-March 05
Has anything changed, since ServicePack 2? Any changes in the syntax ?
~ Computer games don't affect kids, I mean, if Pac-Man affected us as kids, we'd all be running around dark rooms, munching magic pills and listening to repetitive electronic music ~

#21
Bâshrat the Sneaky

Bâshrat the Sneaky

    aka Wim Leers

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,214 posts
  • Joined 29-October 03
  • OS:none specified
  • Country: Country Flag
Nope, no changes to the syntax at all.

#22
HooGLaNDeR

HooGLaNDeR
  • Member
  • 4 posts
  • Joined 26-March 05
Thnx Bâshrat the Sneaky.

Ps. You've got mail ;)
~ Computer games don't affect kids, I mean, if Pac-Man affected us as kids, we'd all be running around dark rooms, munching magic pills and listening to repetitive electronic music ~

#23
ohad

ohad
  • Member
  • 6 posts
  • Joined 07-April 05
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

#24
RBCC

RBCC

    Senior Member

  • Member
  • PipPipPipPip
  • 634 posts
  • Joined 09-July 04
Is the background color of the text-mode portion of setup refrenced in txtsetup.sif? If so , where?

John :hello: :thumbup

#25
secowu

secowu

    Junior

  • Member
  • Pip
  • 59 posts
  • Joined 01-October 04
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users