I have been looking for the correct syntax of txtsetup.sif for some time. Many of the web explanations have different ideas and some are plain wrong. For example some say that _x means the file is not compressed and some say it means check the file size.
I have just found this which is supposed to be the formal specification and has answered most of which i did not know. Perhaps this one is right!l
Syntax Extra.inf
The entry syntax has thirteen parameters, as shown here:
[ExtraFiles]
txtsetup.sif = 1,,,,,,,,0,0,,1,1
The syntax of the entries, with parameters listed by position, is as follows:
filename_on_source =
0. [disk_ID]
1. [subdirectory]
2.
3. [checksum]
4. [unused]
5. [unused]
6. [boot_media_order: (1 | 2 | 3 | x |) blank]
7. [destination_directory]
8. [upgrade_disposition: (0 | 1 | 2 | 3)]
9. [text-mode_disposition: (0 | 1 | 2 | 3)]
10. [destination_filename]
11. [source_directory_ID]
12. [destination_directory_ID]
The parameters and their values are as follows:
# Description value
0 disk ID disk_id of the disk containing the file
1 subdirectory directory_name of the directory containing the file
2 file_size size of the file
3 checksum checksum of the file
4 unused NA
5 unused NA
6 boot order
1 media: floppy disk # 1
2: floppy disk # 2
3: floppy disk # 3
x: Text-mode Setup
"": GUI-mode Setup
7 destination directory directory_name:
8 upgrade disposition
0: always copy
1: copy if present
2: copy if not present
3: never copy
9 text-mode-disposition
0: always copy
1: copy if present
2: copy if not present
3: never copy
10 destination filename new name for the file on the WinPE image
11 Source directory ID from the directory table of WinPE source directory
containing the file
12 destination directory ID from the table of WinPE directory containing the
file directory
Using the first entry of the [ExtraFiles] section as an example, the file is
copied Txtsetup.sif as follows:
[ExtraFiles]
txtsetup.sif = 1,,,,,,,,0,0,,1,1
• parameter 1: copied from a disk of diskID = 1
• parameter 8: always copied when upgrading
• parameter 9: always copied in Text-mode
• parameter 11: copied from the source system root directory (see the table below)
• parameter 12: copied to the destination system root directory (see the table below)
This entry demonstrates the renaming of the source file and the use of a different destination directory.
[ExtraFiles.x86]
ntoskrnl.exe = 1,,,,,,,,0,0,ntkrnlmp.exe,1,2
• parameter 10: source file renamed to Ntkrnlmp.exe
• parameter 12: source file copied to the destination directory system32
WinPE directory IDs
This table lists the directory entry IDs used by parameters 11 and 12 in Entry.inf.
Each ID corresponds to a WinPE system directory name.
TXTSETUP.SIF Syntax
in Unattended Windows 2000/XP/2003
Posted · Edited by Steve8595
I have been looking for the correct syntax of txtsetup.sif for some time. Many of the web explanations have different ideas and some are plain wrong. For example some say that _x means the file is not compressed and some say it means check the file size.
I have just found this which is supposed to be the formal specification and has answered most of which i did not know. Perhaps this one is right!l
Syntax Extra.inf
The entry syntax has thirteen parameters, as shown here:
[ExtraFiles]
txtsetup.sif = 1,,,,,,,,0,0,,1,1
The syntax of the entries, with parameters listed by position, is as follows:
filename_on_source =
0. [disk_ID]
1. [subdirectory]
2.
3. [checksum]
4. [unused]
5. [unused]
6. [boot_media_order: (1 | 2 | 3 | x |) blank]
7. [destination_directory]
8. [upgrade_disposition: (0 | 1 | 2 | 3)]
9. [text-mode_disposition: (0 | 1 | 2 | 3)]
10. [destination_filename]
11. [source_directory_ID]
12. [destination_directory_ID]
The parameters and their values are as follows:
# Description value
0 disk ID disk_id of the disk containing the file
1 subdirectory directory_name of the directory containing the file
2 file_size size of the file
3 checksum checksum of the file
4 unused NA
5 unused NA
6 boot order
1 media: floppy disk # 1
2: floppy disk # 2
3: floppy disk # 3
x: Text-mode Setup
"": GUI-mode Setup
7 destination directory directory_name:
8 upgrade disposition
0: always copy
1: copy if present
2: copy if not present
3: never copy
9 text-mode-disposition
0: always copy
1: copy if present
2: copy if not present
3: never copy
10 destination filename new name for the file on the WinPE image
11 Source directory ID from the directory table of WinPE source directory
containing the file
12 destination directory ID from the table of WinPE directory containing the
file directory
Using the first entry of the [ExtraFiles] section as an example, the file is
copied Txtsetup.sif as follows:
[ExtraFiles]
txtsetup.sif = 1,,,,,,,,0,0,,1,1
• parameter 1: copied from a disk of diskID = 1
• parameter 8: always copied when upgrading
• parameter 9: always copied in Text-mode
• parameter 11: copied from the source system root directory (see the table below)
• parameter 12: copied to the destination system root directory (see the table below)
This entry demonstrates the renaming of the source file and the use of a different destination directory.
[ExtraFiles.x86]
ntoskrnl.exe = 1,,,,,,,,0,0,ntkrnlmp.exe,1,2
• parameter 10: source file renamed to Ntkrnlmp.exe
• parameter 12: source file copied to the destination directory system32
WinPE directory IDs
This table lists the directory entry IDs used by parameters 11 and 12 in Entry.inf.
Each ID corresponds to a WinPE system directory name.
1 = "\"
2 = system32
3 = system32 \ config
4 = system32 \ drivers
5 = system
7 = system32 \ ras
9 = system32 \ spool
10 = system32 \ spool \ drivers
11 = system32 \ spool \ drivers \ w32x86 \ 3
12 = system32 \ spool \ prtprocs
13 = system32 \ spool \ prtprocs \ w32x86
14 = system32 \ wins
15 = system32 \ dhcp
16 = repair
17 = system32 \ drivers \ etc
18 = system32 \ spool \ drivers \ w32x86
19 = system32 \ drivers \ disdn
20 = inf
21 = Help
22 = Fonts
23 = Config
24 = msagent \ intl
25 = Cursors
26 = Media
27 = java
28 = java \ classes
29 = java \ trustlib
30 = system32 \ ShellExt
31 = Web
32 = system32 \ Setup
33 = Web \ printers
34 = system32 \ spool \ drivers \ color
35 = system32 \ wbem
36 = system32 \ wbem \ Repository
37 = addins
38 = "Connection Wizard"
39 = "Driver Cache \ i386"
40 = security
41 = security \ templates
42 = system32 \ npp
43 = system32 \ ias
44 = system32 \ dllcache
45 = Temp
46 = Web \ Printers \ images
47 = system32 \ export
48 = system32 \ wbem \ MOF \ good
49 = system32 \ wbem \ MOF \ bad
50 = twain_32
51 = MSApps \ MSINFO
52 = msagent
53 = msagent \ tanks
54 = security \ logs
55 = system32 \ icsxml 57 = system32 \ mui
58 =%% MUI_PRIMARY_LANG_ID_DIR
59 = system32 \ mui \ dispspec
60 = AppPatch
61 = Debug
62 = Debug \ UserMode
63 = system32 \ OOBE
67 = Help \ Tours
68 = Resources \ Themes \ Luna
69 = Resources \ Themes \ Luna \ Shell \ NormalColor
70 = system32 \ OOBE \ html \ ispsgnup
71 = system32 \ OOBE \ html \ mouse
72 = system32 \ OOBE \ html \ oemcust
73 = system32 \ OOBE \ html \ oemhw
74 = system32 \ OOBE \ html \ oemreg
75 = system32 \ OOBE \ images
76 = system32 \ OOBE \ setup
77 = system32 \ OOBE \ sample
78 = Resources \ Themes \ Luna \ Shell \ Metallic
79 = Resources \ Themes \ Luna \ Shell \ Homestead
91 = Help \ Tours \ mmTour
92 = Help \ Tours \ htmlTour
100 = system32 \ 1025
101 = system32 \ 1028
102 = system32 \ 1031
103 = system32 \ 1033
104 = system32 \ 1037
105 = system32 \ 1041
106 = system32 \ 1042
107 = system32 \ 1054
108 = system32 \ 2052
109 = system32 \ 3076
110 = system32 \ wbem \ xml
111 = system32 \ USMT
112 = system32 \ inetsrv
123 = mui
124 = WinSxS
125 = WinSxS \ Manifests
126 = WinSxS \ InstallTemp
127 = ime
129 = Resources \ Themes
130 = ime
132 = ime \ imejp
133 = System32 \ IME \ PINTLGNT
134 = System32 \ IME \ CINTLGNT
135 = System32 \ IME \ TINTLGNT
EMI 136 = \ chtimi \ Applets
137 = ime \ imejp98
138 = ime \ imejp \ applets
180 = system32 \ 3com_dmi