You are here

Installing a fresh copy of a program under Wine

Submitted by Druss on Thu, 2015-10-22 00:34

So here I was happy with my installation of program foo.exe under Wine in Linux (Kubuntu if you must know). All of a sudden, the program starts whining a little, wobbling a touch, and generally exhibiting wonky tendencies. While I could have uninstalled it and tried to reinstall it to see if that fixes the problem, there's a neater solution that is only available for Wine users.

You see, Wine mimics the Windows file and folder structure in (by default) your home directory. Everything and I do mean everything is stored in ~/.wine which is basically your local Windows installation. By using the following command,

$ WINEPREFIX="$HOME/.wine-second" wine foo.exe

you are telling Wine to use ~/.wine-second as the Windows installation rather than the default .wine (which can happily coexist).

You can now check if reinstalling the program or perhaps resetting Wine is warranted (or not).

Note that if you're simply running the program using this trick, it runs off the same installation files as the original except for the fact that it stores all its data in the new WINEPREFIX. This can also be really handy!

Hope this helps :)