The PC came to me first with Windows XP unbootable saying ntfs.sys corrupt.
Are you skipping some steps? At this point I wonder if you
ran chkdisk, or tried to do a repair install, or tried
different hard drive cables. I also wonder what this
hardware is... normally it is best to first list all major
hardware to provide a context, then concisely describe the
problem. By doing so you may avoid having a thread drift
down a tangent in case it was a hardware (like bios) issue
someone knows about.
On reinstalling, at first, it went ok until I started getting various
different setup files which could not be copied onto the hard drive. I
assumed this was a cd drive or physical hard drive problem and so changed
both and used three separate copies of the installation cd.
So "asssuming" these other pieces of hardware are viable,
you're left with board/components, power, and cabling from a
hardware perspective. "Components" is too broad, could be
memory or bios or board itself is malfunctional, but to
divide and conquer you will have to decide to tackle more
likely things, or easier/quicker things, or cheaper things
first, and it may depend on whether you have other parts
available.
Then I got a message saying inf\i386\txtsetup.sif was corrupt but before the
installation of xp could even start.
I concluded that since I had erased all partitions, that the only area that
this message could come from was something in the MBR, since this was the
only thing that might have survived on the hard disk.
You switched hard drives too, right? What makes you think
different drives would have the same MBR virus? Were they
all susceptible to infection in same environment? I think
we should assume it is not MBR related at all.
Further MBR should be ignored because it is not related to a
corruption message about a file. These are files on the CD,
some of which being written to the HDD, but some not. No
matter what is in your MBR, booting a windows CD and getting
this message will not depend on HDD MBR.
I repeated with three different installation cds and subsequently used
Maxtor's Powermax v4.23 to wipe the drive (including the MBR, I now believe)
but the problem reoccured.
Forget MBR and wiping from now on. Assume you should never
have to do it again. The HDD manufacturer's utility CD or
floppy might be useful to check the fitness of a drive, the
menu tests ran, but that is all.
So I couldnt understand how my installation stalled on this message since
the hard disk should have been clean.
Because it does not depend on whether the HDD is clean or
not. Somewhere early in the troubleshooting process you
have made an assumption about a prerequisite for the HDD,
and what might happen if it wasn't present, that are
incorrect.
My eventual solution was to install win98 first and then xp but I dont know
a) why this worked, since xp reinstalls not upgrades
b) what the hell the message inf\i386\txtsetup.sif is corrupt means and how
it could come about.
Just to reconfirm, these 3 discs were all original XP CDs,
it isn't possible they are duplicates of one with something
problematic in the txtsetup.sif file? I only ask because
you focus on this file, really since you had several files
in the error messages I think it not related to this file,
though you could have more than one problem.
Did you ever run memtest86+? I had assumed someone
mentioned this already, it can be important to
systematically address what others post, otherwise they have
to guess what you have or haven't done or just assume you
did instead of repeating things over and over.
Having failures at random points in installation as you
observed is usually from memory instability, maybe something
loosely related generating errors like an overheating CPU,
northbridge, or very poor power. We may still be lacking
crucial info, and posted in a concise easy to follow way -
having an error doesn't tell the whole story, the scenario
in which that error occurs can matter and thus, providing
initial hardware description is crucial.
So far a lot of time has been wasted. It seems we keep
following along with guesses and dispelling them instead of
a logical approach to the problem. Don't guess then have
others go off on tangents, start with concise description of
the system, it's history, the exact environment, the
specific error as observed, then short description of
troubleshooting steps.
You leap from some kind of problem reading, copying, or
running files during an installation to repeated attempts to
do something about a MBR. It makes no sense.
In the end as I say above I couldnt boot from the cd stopped by
inf\i386\txtsetup.sif is corrupt
Ok but do you come to the realization that it is not MBR
related so you can now get on with looking at other things?
In particular, I was getting a message [during install] saying that a line
in a file was corrupt and I could not understand this, since for me there
was nothing on the drive.
What do you mean "for me there was nothing on the drive"?
If you are installing windows, how can there "for you", not
be anything on the drive since that's what an installation
of windows does, writes files to the drive?
As I say, the message came about before launching the installation
If I wanted to know what you "say", I would've just read
that, which I did, then asked for a clarification or
elaboration. You are working against yourself in solving
this problem. Rather than engage in more of this I will
just let you think about what you're doing, as coddling your
ideas is not being productive. It seems to be more of a
distraction than a solution.