How to change the 'windows' directory

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Nexus_Guy
Level 1
Level 1
Posts: 8
Joined: Sun Jan 19, 2014 12:09 am

How to change the 'windows' directory

Post by Nexus_Guy »

Hi,

Is there a way to change or redirect the windows directory? For example in React OS the windows directory is 'C:\ReacOS\....'

Thanks,
Nexus_Guy
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to change the 'windows' directory

Post by dimesio »

Nexus_Guy
Level 1
Level 1
Posts: 8
Joined: Sun Jan 19, 2014 12:09 am

Re: How to change the 'windows' directory

Post by Nexus_Guy »

Those intructions only talk about the 'bottle' location which is the whole windows installation location. I wan't to change the 'windows' folder specifically. Simply renaming it for example (which would break wine in a normal situation).
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to change the 'windows' directory

Post by dimesio »

Yes, renaming it would break Wine, just as it would break Windows if you did it on Windows. Wine will also automatically recreate the windows directory, although incompletely, if it does not exist in the wineprefix when you run something in Wine. Renaming the windows directory and then creating a symlink named windows pointing to it does seem to work, but I haven't tested it beyond running winecfg.
Nexus_Guy
Level 1
Level 1
Posts: 8
Joined: Sun Jan 19, 2014 12:09 am

Re: How to change the 'windows' directory

Post by Nexus_Guy »

Thanks, the symlink should be the way to go.
Locked