Windows 10: Clean Install of Win 10 - how to remove installation files that failed
Clean Install of Win 10 - how to remove installation files that failed
I hope folks can help with this one.
After a failed HDD and purchase of a new drive, I then did a clean install of Windows 10 from a disk image - except it failed part-way through throwing up an error.
I tried again and it again failed part-way through.
I tried for a third time with a different disk and the installation failed again (albeit at a different point)
I tried for a fourth time with an image on a USB stick - and SUCCESS!
However, in addition to a Windows folder in C: drive, I now also have folders called Windows.old (10.1Gb), Windows.old.000 (7.40Gb) and Windows.old.001 (13.2Gb).
I logged into the Administrator account and tried to delete these folders - but I get an error message that SYSTEM needs to give permission (how can I get SYSTEM to give permission?).
I tried opening an elevated command prompt to use the RMDIR and DELTREE DOS commands.
The DELTREE command says " 'deltree' is not recognized as an internal or external command, operable program or batch command" and RMDIR gives the message "The directory is not empty".
Question is, how can I get rid of these folders which are useless and occupying 30.7Gb of my new HDD space?
If it's a true clean install, you wouldn't have a folder (or folders) like that, so I wonder just exactly what you did.
Did you format the disk after a failed attempt?
Suggest you also post a screenshot of Disk Management showing your partitions.
in Cortana's search bar
Windows key + R, type diskmgmt.msc
You can't delete those folders directly like that - they are protected.
How to delete the Windows.old folder from Windows 10 - CNET
(I searched for
how to delete windows.old
Now you'll have to check if the others are deleted - if not you can delete them from a command prompt outside Windows (e.g. via SHIFT + click Restart and navigate thru the prompts. Drive letters will be different, so be careful.
Nope - I did exactly as I said in the OP. Tried three times to install Windows 10 onto a brand-new HDD from two different disk images (both obtained from Microsoft) and these failed in different places (like 74%, 40% etc). I had an image (again from Microsoft) on a USB stick which I tried and the install succeeded.
At each failed install I got a message similar to "Windows couldn't complete the setup process and no changes were made to your computer (or) these files will be removed" (can't remember the exact message), so I thought that any install debris would be removed.
It was only when the fourth attempt went through without a problem that I noticed that there were these folders from the failed installs.
Below is a screenshot of Disk management:
Will give this a shot, thank you
Just followed the link that you gave and the CNET article suggests that Disk Cleanup should show 'Previous Windows Installation(s)'.
As you can see from the image below, it doesn't.
Will try deletion outside of Windows. I have a DOS 6.22 CD which I will boot from and see if I can delete the folders from there.
Will report back later.
As I can also see from the screen shot, you didn't spot the bit in the article that says:
If you had, there would a second tab 'More options' and the 'clean up system files' button wouldn't still be showing. Without doing that you can't clean up 'Previous Windows Installation(s)' because they are classed as 'System files',
Click the "Clean up system files" button.
Would you mind telling me exactly what were, where from, those Microsoft images? I'd like to learn, a similar thing happened to me awhile back, with W8. Perhaps, together, we can ensure a probability that this type of failure will not happen to us again.
Last edited by RolandJS; 17 Sep 2016 at 08:24.
All the images in this thread are screenshots grabbed from our own computers. They are what was really happening on our PCs when we took the actions we were talking about.
Screenshot - Take in Windows 10
If you are asking how to run the disk clean-up, the easiest way is to type 'disk clean-up' in the Cortana Search box next to Start.
You can take ownership, grant authority and then delete.
Note leave "%USERDOMAIN%\%USERNAME%" as it is - don't try to substitute it with your name - the system will do that.
takeown /f "C:\Windows.old.000" /r
icacls "C:\Windows.old.000" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
rmdir "C:\Windows.old.000" /s /q
You need the /s switch to delete the contents as well as in the example above. You can check the options with rmdir /?
Yep - missed that!!
Trying that now...
Thanks, will try the 'Disk Cleanup' method first and it that doesn't work resort to DOS commands outside of Windows.
If you mean the Windows 10 images I used...
They were downloaded directly from Microsoft. Two of them, (one of the disk images and the USB image) were created by the 'Media Creation Tool' and then burned/transferred to DVD/USB.
One of the images is labelled 'ESD' which I believe stands for 'Electronic Software Distribution'.
This link may be of some help. It has download links for all ESD files currently available through the Windows Update infrastructure.
Thanks Art! Those were the images I was asking about. I was wondering if the process of downloading, writing to the hard-drive, creating the DVDs somewhere somehow had a few "hiccups" -- thus leading to the failures you mentioned in the opening.
I've spent the whole of today and yesterday trying to install windows 10 onto my SSD, it's not partitioned as i have read from various sites that the installation software will you all of that but everytime it get to the step after copying the files...
I have a new ASUS ROG G751JT-DH72 laptop, and I have been trying to install Windows 10 and Ubuntu on it. It came with Windows 8.1, so I upgraded to 10, then did a clean install of 10. Version was Home 64 bit.
That went reasonably...
Had Windows 10 working on a dual-boot disk with PCLOS. Something happened to Win 10 and it would not connect to
the Ethernet anymore. Tried several times to "reset" it, finally gave up. Looked at disk with GParted and whole partition was empty!...
I intend to keep Win10 after upgrading from Win7.
At the automatic removal of Windows.old after 30 days, are the Win10 installation files removed too?
Should I defrag my main drive and use clean-up software to tidy up? I need to keep my old data...
Maybe someone can push me in the right direction to a fix ? Or should I buy a new computer?
Today I decided to accept Microsoft's invitation to download and upgrade my windows 7 pro, unfortunately, it didn't go so smoothly as I had hoped it...