an3k Posted December 22, 2008 Posted December 22, 2008 (edited) filename = status,subdir,size,3,4,5,diskid,subdir,upgradecode,newinstallcode1,newfilename,newinstallcode2,6filename specifies the source file you want to copy. if the file is compressed using makecab you still specify its uncompressed filename (eg. .dll instead of .dl_)status specifies the source itself. normally its 1 (RTM) or 100 (SP). see [sourceDisksNames] and [sourceDisksNames.*] in TXTSETUP.SIFsubdir specifies the source subdirectory you want to copy the file from.size specifies the size of the uncompressed source file in bytes. see [sourceDisksFiles] in LAYOUT.INF3 is unknown. If you know more, please reply and quote this. Thanks!4 is unknown. If you know more, please reply and quote this. Thanks!5 is unknown. If you know more, please reply and quote this. Thanks!diskid is used when running an installation from (multiple) floppy or multiple cds. see [sourceDisksNames] and [sourceDisksNames.*] in TXTSETUP.SIFsubdir specifies the target subdirectory you want to copy the file to. see [WinntDirectories] in TXTSETUP.SIFupgradecode 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.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 newinstallcode1 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 newinstallcode1 is optional; if it is not included, the file is not copied (code = 3).0 - Always copies the file1 - Copies the file only if it exists in the installation directory2 - Does not copy the file if it exists in the installation directory3 - Does not copy the filenewfilename specifies the target filename. see [sourceDisksFiles] in TXTSETUP.SIFnewinstallcode2 is unknown. If you know more, please reply and quote this. Thanks!6 is unknown. If you know more, please reply and quote this. Thanks!Example:filename = status,subdir,size,3,4,5,diskid,subdir,upgradecode,newinstallcode1,newfilename,newinstallcode2,6bootvid.dll = 1, , , , , , 3_, 2, 0, 0, , 1,2fastfat.sys = 100, , , , , , 5_, 4, 0, 0, , 1,4tunga.ttf = 1, , , , , , , 22, 0, 0, , 1,22diskdump.sys = 100, , , , , , , 4, 0, 0, , 1,4admtoolW.chm = 1, , , , , , , 21, 0, 0,admtools.chmadpu160m.sys = 1, , , , , , 4_, 4, 1, , , 1,4this is not finished yet, subscribe for updates! if you can give more information about this topic, please reply. thanks!---reference:1) txtsetup.sif on original windows xp sp2 setup cd2) layout.inf on original windows xp sp2 setup cd3) http://gosh.msfn.org/txtsetup.htm4) msfn user derniwi5) http://www.msfn.org/board/index.php?showtopic=1188156) http://msdn.microsoft.com/en-us/library/ms794523.aspx7) http://msdn.microsoft.com/en-us/library/ms794587.aspx8) http://support.microsoft.com/kb/327393 Edited March 14, 2010 by an3k 1
an3k Posted December 22, 2008 Author Posted December 22, 2008 (edited) the text-mode setup uses the txtsetup.sif - it processes all sections and copies every file which meet the filter/requirements.the gui-mode setup uses the layout.inf - the layout is a simple copy of txtsetup.sif EXCEPT that in this file the uncompressed size of the file is specified too. Additionally this files does not include the informations about basic hardware, this is already done txtsetup.sif and text-mode setup.if you boot from CD or floppy a dos based application reads the files required for setup, thus you need to edit txtsetup.sifif you sysprep or RIS/WDS such a modified source, a windows based application reads the files, thus you need to edit layout.inf too (just do the same as for txtsetup.sif but don't add new sections!!)more soon! Edited December 22, 2008 by an3k
dude01422 Posted January 10, 2009 Posted January 10, 2009 Although unrelated to this topic, in away it is....The info I require is about an inf file I`m trying to put my computer on the desktop from an inf file on xp setup.the code is below.I`ve spent nearly a day tweaking this to get it to work and no joy.If anyone could shed some light on this I would be eternally grateful.Cheers DaDude.........[Version]Signature=$CHICAGO$[DefaultInstall]AddReg=DefaultAddReg[DefaultAddReg]AddReg=HideDesktopIconsHKCU,"%Explorer%","HideDesktopIcons\NewStartPanel"HKCU,"%Explorer%","HideDesktopIcons\NewStartPanel","{450D8FBA-AD25-11D0-98A8-0800361B1103}",0x00010001,1HKCU,"%Explorer%","HideDesktopIcons\NewStartPanel","{208D2C60-3AEA-1069-A2D7-08002B30309D}",0x00010001,1HKCU,"%Explorer%","HideDesktopIcons\NewStartPanel","{20D04FE0-3AEA-1069-A2D8-08002B30309D}",0x00010001,0HKCU,"%Explorer%","HideDesktopIcons\ClassicStartMenu"HKCU,"%Explorer%","HideDesktopIcons\ClassicStartMenu","{20D04FE0-3AEA-1069-A2D8-08002B30309D}",0x00010001,0[Strings]Explorer = "Software\Microsoft\Windows\CurrentVersion\Explorer"
deadbug Posted January 30, 2009 Posted January 30, 2009 filename = status,subdir,size,3,4,5,diskid,subdir,upgradecode,newinstallcode1,newfilename,newinstallcode2,6diskid is used when running an installation from (multiple) floppy or multiple cds. see [sourceDisksNames] and [sourceDisksNames.*] in TXTSETUP.SIFI'm fiddling with a script to try and build a boot folder (per Flyakite) without having to do it the winnt32.exe way.I've noticed that if the diskid is of the for digit-then-underscore, then the specified file will be compressed, whereas if it has no underscore or the underscore precedes the digit, then the file will be uncompressed.So, for example, this line:ntkrnlmp.exe = 100,,,,,,2_,,3,3,,1,2means that the source is I386\ntkrnlmp.ex_, whereas this line:ksecdd.sys = 100,,,,,,_5,4,0,0,,1,4means that the source is I386\ksecdd.sys.I've noticed that most of the information floating around the net is either out of date or plain wrong (this topic being a notable exception!).The above applies to Windows XP Pro SP3.A quick glance at Windows 2000 Pro SP4 suggests that it has fewer options, but it looks like diskid is unchanged.One other point is that I think when the boot folder is setup by winnt32.exe, it uses DOSNET.INF to decide which files to copy and then uses TXTSETUP.SIF to decide which are compressed or not. (Unless one of the other TXTSETUP.SIF fields means "this is for the boot folder" ... actually newinstallcode2 might be a candidate for that, a quick check suggests that it is '1' for the few boot folder files I looked up).-- deadbug
iamtheky Posted January 30, 2009 Posted January 30, 2009 3 is unknown. If you know more, please reply and quote this. Thanks!http://www.msfn.org/board/TXTSETUPSIF-Syntax-t125480.htmlsays0. [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]
thaimin Posted September 6, 2009 Posted September 6, 2009 (edited) diskid is used when running an installation from (multiple) floppy or multiple cds. see [sourceDisksNames] and [sourceDisksNames.*] in TXTSETUP.SIFSorry for bringing up a little bit of an old topic, but I found some information somewhere else that relates and wish it had been here.If the disk id is preceded by _ (underscore) then that file is subject to a file-size check when copied. If the file is not the same size as listed in layout.inf Windows installation dies right there.So if you are copying a modified file, make sure to update the file size in layout.inf or remove the _ preceding the name. This only counts for layout.inf and not txtsetup.sif (which includes no file sizes).For an underscore after the diskid see deadbug's post. Edited September 6, 2009 by thaimin
an3k Posted September 9, 2009 Author Posted September 9, 2009 thanks for the updates everybody. i'll update the initial post in the next days.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now