How to change location of install files

Questions about Wine on Linux
Locked
kannaiah
Newbie
Newbie
Posts: 1
Joined: Sun Dec 06, 2015 11:10 am

How to change location of install files

Post by kannaiah »

Hi
I have NFS mounted home directory. And I would like to install wine but have the install files located under different directory.

How can I achieve this.
I was able to configure .config and .cache location using XDG_ variables in .profile.

Is there something similar for wine.

Regards.
gero67
Level 2
Level 2
Posts: 11
Joined: Fri Dec 11, 2015 12:28 pm

Re: How to change location of install files

Post by gero67 »

Well just use a different wine prefix: WINEPREFIX="[path to a folder of your choice]" wine

I guess that the folder you want to use is mounted somewhere in /media or /mnt.
gero67
Level 2
Level 2
Posts: 11
Joined: Fri Dec 11, 2015 12:28 pm

Re: How to change location of install files

Post by gero67 »

gero67 wrote:Well just use a different wine prefix: WINEPREFIX="[path to a folder of your choice]" wine

I guess that the folder you want to use is mounted somewhere in /media or /mnt.
Just in case i want to give a little more detail to this.
Open the terminal and type:
'WINEPREFIX="[path to a folder of your choice]" wine [application of your choice]'

This command will both create and use the new wineprefix, but you have to use it any time you want to use this prefix.
This should also work for some wine applications like "winetricks", just type 'WINEPREFIX="[path to a folder of your choice]" winetricks [something]'.

Another way is to just copy install files or files of programs in general into a specific folder and run a terminal inside this folder (either start a terminal directly out of your filemanager or use the terminal command 'cd [folderpath]') and type 'wine [application.exe]'.

At least Guild Wars uses the same folder also as installation folder.
If an Installer(.exe) lets you choose a path and it isn't possible to get out of the 'C://' or 'drive_C' path, you can add other paths inside 'winecfg'.
There is a tab for folders, called 'Drives' (or something similar), just add a folder of your choice and allocate a letter to it, for example 'D://'.
Now you should be able to select this path inside an Installer(.exe).

Note: Without using a different wine-prefix some files will still be likely saved in ~/.wine, because wine creates an "artificial" Windows-Home-folder, and many programs save things like options, screenshots, saves etc. there.

Also i hope i haven't missunderstood your question :wink:
Locked