I need to use two different Windows applications, one works well with Wine 1.4 but not on Wine 1.5 and the other application works well with the later version but not with the former.
Is there a way to have both versions of Wine installed, specifying which application should run with which Wine version?
PlayOnLinux
You can use PlayOnLinux to install applications which run on different versions of wine. PlayOnLinux provides an option of installing some libraries as well along with installation of a program.
To mange different versions of wine, go to Tools > Manage Wine Versions
If you want to add your custom compiled version of Wine to this list, create new wine "version" in
~/.PlayOnLinux/wine/linux-amd64
orlinux-x86
and copy your custom installation there.While installing an application you have an option of installing it a new virtual drive, in which you can install a different version of wine.
See the FAQ of wine here telling you that.
You have to scroll to
Fixing environment variables you'll be able to get it.
I use several scripts but basically do this:
go to:
https://dl.winehq.org/wine-builds/ubuntu/
then further to
https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-i386/
and
https://dl.winehq.org/wine-builds/ubuntu/dists/bionic/main/binary-amd64/
download ex.:
(can be staging or stable) On the page search type ex.: 4.21
now skip all packages containing:
wine-devel-
,winehq-
(but you can also download-dbg
and-dev
), as the above ones.You can use the script at the end instead of doing these steps manually:
copy them all to a folder named ex.: wine4.21-bionic (if it was stable could be instead wine4.21stable-bionic)
Extract them all using the filemanager (is easier, I use
nemo
). Expand all the 4 folders to see simultaneously all thedata.tar.xz
, select all these 4 and do "extract here" (will be on the sub-folder).Now rename 2 of the 4 folders at
wine4.21-bionic/
to (just keep their ending folder name):amd64
i386
Copy the subfolders
opt
andusr
from the remaining folders (the extracted but not renamed ones), and paste into the renamed folders (you must opt to merge the folders now).Cleanup/Trash everything else that is not needed.
In
nemo
there isopen as root
context menu option. So I use it to move that folder and apply root permissions to top folder and all enclosed files.Before being able to run it:
you will need these environment set after that, (I keep them at a top folder: /WineVersions/) ex.:
export PATH="$PATH:/WineVersions/wine4.21-bionic/amd64/opt/wine-staging/bin:/WineVersions/wine4.21-bionic/i386/opt/wine-staging/bin"
export LD_LIBRARY_PATH=":/WineVersions/wine4.21-bionic/amd64/opt/wine-staging/lib:/WineVersions/wine4.21-bionic/i386/opt/wine-staging/lib:/usr/lib/x86_64-linux-gnu"
(this
/usr/lib/x86_64-linux-gnu
may not be necessary above (try w/o it first?), but I use it anyway)now you should be able to ex.:
wine64 explorer
(after you create and env set a WINEPREFIX of course :))If you prefer, you can use this helper script to extract and prepare the contents of the downloaded .deb packages
winePrepare.sh
.