How to install Windows 10 on a different folder than C:\Windows


  1. Posts : 456
    Windows 10
       #1

    How to install Windows 10 on a different folder than C:\Windows


    I was wondering if it is possible to install Windows 10 on a different folder than "c:\windows". Let's say I want to install it on c:\Win10 is that possible?

    Also I would not like to have to use Microsoft Development Tools only the install USB.
      My Computer


  2. Posts : 23,256
    Win 10 Home ♦♦♦19045.4355 (x64) [22H2]
       #2

    ricardobohner said:
    I was wondering if it is possible to install Windows 10 on a different folder than "c:\windows". Let's say I want to install it on c:\Win10 is that possible?

    Also I would not like to have to use Microsoft Development Tools only the install USB.


    Windows 10 is installed on C;\
    ...not on C:\Windows

    It will look something like this (might have a 16MB partition too).

    Attachment 348161



    You can right click the C:\ partition, choose Properties, and name it whatever you want. I wouldn't try to change the drive letter (C) though.
    Attached Thumbnails Attached Thumbnails How to install Windows 10 on a different folder than C:\Windows-image1.png  
    Last edited by Ghot; 08 Oct 2021 at 18:00.
      My Computer


  3. Posts : 456
    Windows 10
    Thread Starter
       #3

    Thanks but I don't want to change the partition label I would like to set another name for the Windows folder....
      My Computer


  4. Posts : 456
    Windows 10
    Thread Starter
       #4

    Of course, if you do it after installation you would have to also change the %windir% variable, and you would have to boot into the recovery environment since the Windows Folder is always used. I think most programs look for files by using variables like %windir%\System32\drivers, if %windir% is pointing to c:\win10 than all should be ok.

    But I'm looking to change the c:\windows name during setup (installation) not after Windows is already installed.
      My Computer


  5. Posts : 23,256
    Win 10 Home ♦♦♦19045.4355 (x64) [22H2]
       #5

    I don't think it's possible to change the Windows installer like that, but @Kari or @Kyhi might be able to give you a better answer.

    You would have to, pretty much... rewrite all of Windows to be able to do that.
    Like... decompile it, recode most of it, then recompile it.


    I haven't coded anything in 40 years (I'm still thinking in... Fortran), but I don't think you'll be able to do that, so easily.


    I finally understand what you're trying to do. It sounds simple. Just re-declare %windir%.
    But this is way beyond me.

    Good luck.
    Last edited by Ghot; 08 Oct 2021 at 18:59.
      My Computer


  6. Posts : 6,320
    Windows 11 Pro - Windows 7 HP - Lubuntu
       #6

    ricardobohner, may I ask why do you want to have the windows folder with another name?
    As Ghot already said, Windows folder is just one of many other folders that are part of the Windows OS.
      My Computers


  7. Posts : 456
    Windows 10
    Thread Starter
       #7

    It started like this: I was building a batch file that seaches for Windows instalations on all fixed drives. So it would look for C:\Windows, E:\Windows, F:\Windows...

    Then I had this thought: "Wait a minute, what if the Windows folder is not called "windows", that would mean that there might be Windows installations on a PC that my batch file wouldn't find.

    So I started a search to see if it is possible to give the Windows folder another name. I remember that it was possibe in the old days not sure Windows 98, XP.
      My Computer


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #8

    Hello @ricardobohner,

    ricardobohner said:
    It started like this: I was building a batch file that searches for Windows installations on all fixed drives. So it would look for C:\Windows, E:\Windows, F:\Windows...

    Then I had this thought: "Wait a minute, what if the Windows folder is not called "Windows", that would mean that there might be Windows installations on a PC that my batch file wouldn't find.

    So I started a search to see if it is possible to give the Windows folder another name. I remember that it was possible in the old days not sure Windows 98, XP.

    That Folder is SET throughout the .esd or .wim File.

    I suppose that there could be a way of achieving that if you were to create a Custom ISO. That would mean initially Mounting the Image, and then TRYING to change EVERY single occurrence of Windows [ and the Sub-Directories, Paths, Permissions, Relationships, etc ] . If you think about the hundreds of thousands of files that make up the Image, you can see where I am coming from, NOT to mention the days needed for ISO recreation and testing.

    I hope this helps.
      My Computer


  9. Posts : 456
    Windows 10
    Thread Starter
       #9

    Thank you very much.
      My Computer


 

  Related Discussions
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 12:46.
Find Us




Windows 10 Forums