Windows 10: Clean Install of Win 10 - how to remove installation files that failed

Page 1 of 2 12 LastLast
  1.    15 Sep 2016 #1

    Clean Install of Win 10 - how to remove installation files that failed


    Hi,

    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?

    Click image for larger version. 

Name:	Cannot delete a directory.jpg 
Views:	1 
Size:	94.2 KB 
ID:	101554

    Cheers

    Art
      My ComputerSystem Spec

  2.    15 Sep 2016 #2

    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.
    Type
    Disk Management
    in Cortana's search bar
    or
    Windows key + R, type diskmgmt.msc

    You can't delete those folders directly like that - they are protected.

    Try
    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.
      My ComputerSystem Spec

  3.    17 Sep 2016 #3

    dalchina said: View Post
    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?
    Hi Dalchina,

    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:

    Click image for larger version. 

Name:	Disk Management.jpg 
Views:	1 
Size:	114.9 KB 
ID:	101792

    dalchina said: View Post
    Try: 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.
    Will give this a shot, thank you

    Regards

    Art
      My ComputerSystem Spec

  4.    17 Sep 2016 #4

    Okay,

    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.

    Click image for larger version. 

Name:	Disk Cleanup.jpg 
Views:	15 
Size:	75.1 KB 
ID:	101796

    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.

    Regards

    Art
      My ComputerSystem Spec

  5.    17 Sep 2016 #5

    ArtDent said: View Post
    ...Disk Cleanup should show 'Previous Windows Installation(s)'.

    As you can see from the image below, it doesn't.

    Click image for larger version. 

Name:	Disk Cleanup.jpg 
Views:	15 
Size:	75.1 KB 
ID:	101796
    @ArtDent
    As I can also see from the screen shot, you didn't spot the bit in the article that says:
    Step 2: Click the "Clean up system files" button.
    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',
      My ComputersSystem Spec

  6.    17 Sep 2016 #6

    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.
      My ComputerSystem Spec

  7.    17 Sep 2016 #7

    RolandJS said: View Post
    Would you mind telling me exactly what were, where from, those Microsoft images?
    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.
      My ComputersSystem Spec

  8.    17 Sep 2016 #8

    ArtDent said: View Post
    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?)
    You can take ownership, grant authority and then delete.
    Code:
    takeown  /f  "C:\Windows.old.000" /r
    icacls       "C:\Windows.old.000" /grant "%USERDOMAIN%\%USERNAME%":(F) /t
    rmdir        "C:\Windows.old.000" /s /q
    Note leave "%USERDOMAIN%\%USERNAME%" as it is - don't try to substitute it with your name - the system will do that.

    ArtDent said: View Post
    RMDIR gives the message "The directory is not empty".
    You need the /s switch to delete the contents as well as in the example above. You can check the options with rmdir /?
      My ComputerSystem Spec

  9.    17 Sep 2016 #9

    Bree said: View Post
    @ArtDent
    As I can also see from the screen shot, you didn't spot the bit in the article that says:

    Click image for larger version. 

Name:	Step 2.jpg 
Views:	1 
Size:	8.7 KB 
ID:	101814

    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',
    Yep - missed that!!

    Trying that now...

    @Ix07

    Thanks, will try the 'Disk Cleanup' method first and it that doesn't work resort to DOS commands outside of Windows.

    @Roland

    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.

    http://ms-vnext.net/Win10esds/

    Art
      My ComputerSystem Spec

  10.    17 Sep 2016 #10

    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.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Related Threads
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...
Hey guys! 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...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:14.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums