nlite not processing layout.inf
#1
Posted 04 September 2004 - 09:52 PM
when running windows setup in windows pe using winnt32.exe it gives errors about not being able to find files because the layout.inf file still has references to files that were removed by nlite. txtsetup.sif has all references to removed file deleted from it, but layout.inf still has 'em.
argh!
Help!
Thanks!
-Voltaic
#2
Posted 05 September 2004 - 08:11 AM
Layout.inf is not cleaned any more due to some problems and it's not needed to.
Check dosnet.inf. What files ?
#3
Posted 06 September 2004 - 08:15 PM
c:\i386\winnt32.exe /unattend:c:\i386\winnt.sif /syspart:c: /tempdrive:c:
where c: is a drive to which i have copied the i386 dir of a specific windows distro.
i'm no expert on windows installation process, but it's my understanding that text mode setup uses txtsetup.sif and that windows mode setup uses layout.inf. i could be wrong but the fact remains that when running setup from the aforementioned command it causes file not found errors when copying.
anyway, i hope that clarified the problem a bit.
-Voltaic
#4
Posted 07 September 2004 - 10:23 AM
#5
Posted 07 September 2004 - 02:43 PM
yes, after skipping them it did work, hoever, i'm using this in an unattended situiation, and would like not to have to hit skip that many times.
thanks again.
-Voltaic
#6
Posted 07 September 2004 - 03:35 PM
#7
Posted 08 September 2004 - 09:32 AM
#9
Posted 09 September 2004 - 06:00 PM
hmm leftovers ****, more work for nuhi
#10
Posted 10 September 2004 - 04:45 PM
anyway, after looking a bit closer it turns out that it is the dosnet.inf file that seems to have files leftover in it. i manually deleted a few of the entries that contained references to files that were deleted and never say an error message complaining about their absence.
sorry for the confusion.
-Voltaic
#11
Posted 10 September 2004 - 11:18 PM
<3
@voltaic
we can never forget this is a microsoft product. digitally signed could be ANYTHING...
#12
Posted 10 September 2004 - 11:39 PM
#13
Posted 11 September 2004 - 03:07 AM
plastik, ;)
#14
Posted 13 September 2004 - 09:40 AM
Open LAYOUT.INF in 2k / xp.
Search for "layout"
In 2k:
layout.inf = 2,,244801,,,,_x,20,0,0
In XP:
layout.inf = 100,,408600,,,,_x,20,0,0,,1,20
In either case, that "_x" tells the installation to check the filesize. If there is a mismatch, the install will bomb. If the "_x" is missing, setup will not check. So in other words, layout.inf is checking itself. Either correcting the filesize or removing the "_x" will solve the problem. In fact, just totally removing the "_x" from every line that has it in the entire file is, I found in my own IE removal files for win2k, avoids any nasty surprises.
Other notes: first number is what "disk" the installation is told to look on. Since it's all on CD, you can change that 2 or 100 in both cases to a 1. Slipstreaming makes this change (and it's one easy way to see what files got modified.)
At the beginning of the file, you'll see that:
100 = %spcdname%,%spcdtagfilei%,,\i386,1
and
1 = %cdname%,%cdtagfilei%,,\i386
But they're really both the same CD, so you can change many 100's to 1's, or you can change the 100 line to:
100 = %cdname%,%cdtagfilei%,,\i386
This way, you can start on a process to eliminate having to have that win51ip.SP2 file in the root of the CD (you have to do a few other things as well in other files too).
A 100 also tells the install to look, in some cases (such as drivers that have been fixed by a service pack) to look into SP2.CAB versus DRIVER.CAB. With Nuhi's driver consolidation, I'm sure that this inefficent method by Microsoft will be eliminated at some point.
The 20 is obvious, it's the destination directory.
The next zero, I'm not sure.
The next zero after that (the last one in the 2k line, the second after the 20 in the XP line) means that the filename ends normally; if that number is a three, it means that the file name ends in an underscore. Underscore files do NOT have to be compressed, although it does save space on the CD. I have a 2k CD I made that installs VERY VERY quickly, because (as a test) I expanded and then renamed many large files back to ending in an underscore. Windows just thinks the file(s) are zero percent compressed.
The ,,1,20 in the XP line I am not sure about, but there is really no reason to keep it--we need to avoid having this file check itself, so the best thing to do is to change it to:
(xp example) layout.inf = 100,,408600,,,,,20,0,0
This way, we can edit this file as we like and setup won't bomb. THEN (we're not done!!!) we remove several garbage entries like:
"mediactr.cab = 3,,99770897,,,,_x,,3,3"
(notice the _x, that has to be removed, but in our case, we want the whole line out anyway.) either commenting the line with a semicolon first, or deleting it entirely, will prevent XP's setup from copying the file on the CD to the hard drive. That file is HUGE, and if we delete it and other files like it, setup will FLY. No sense in copying files if we're not going to use them anyway.
Best,
FDV
My tutorial on removing IE and a WHOLE LOT of other things from Win2k
#15
Posted 13 September 2004 - 11:58 AM
#16
Posted 13 September 2004 - 01:59 PM
Forgot to say aloso that if files are commented out of TXTSETUP and LAYOUT, they should be removed from DOSNET.INF too.
Also, I was googling on a "corrupt or missing error" and found:
http://gosh.msfnhost...om/txtsetup.htm
Here's hoping I got _something_ right...
#18
Posted 25 March 2007 - 04:55 PM
fdv, on Sep 13 2004, 03:40 PM, said:
Search for "layout"
In 2k:
layout.inf = 2,,244801,,,,_x,20,0,0
In XP:
layout.inf = 100,,408600,,,,_x,20,0,0,,1,20
In either case, that "_x" tells the installation to check the filesize. If there is a mismatch, the install will bomb. If the "_x" is missing, setup will not check. So in other words, layout.inf is checking itself.
So, before I Ctrl+H and ruin LAYOUT.INF...........
Do you only replace _x or do you also take out the comma that comes after it?
Example, do you remove this (in red).....
layout.inf = 100,,408600,,,,_x,20,0,0,,1,20
Or this.....
layout.inf = 100,,408600,,,,_x,20,0,0,,1,20
Sorry for replying to a topic thats more than 2 years old... I did search in topic titles
for LAYOUT.INF and this was the only topic that actually explained any of it.
I often wonder what MSFN be like without people like FDV and Nuhi
This post has been edited by LeveL: 25 March 2007 - 04:58 PM
#19
Posted 26 March 2007 - 01:56 PM
I think we'd all be a lot more frustrated without nuhi et alia.
#20
Posted 28 March 2007 - 09:56 AM
Then I scroll down a little and see where I already explained it <LOL>
Anyway, yeah, leave the comma in, sorry if that wasn't clear.
Remember to make edits to TXTSETUP and DOSNET too as my added posts indicate.



Help

Back to top









