winecfgis a screwdriver,
winetricksis a power drill. They both have their place, but
winetricksis just a much more powerful tool. Actually, it even has the ability to launch
winecfggives you the ability to change the settings of WINE itself,
winetricksgives you the ability to modify the actual Windows layer. It allows you to install important components like
.dllsand system fonts as well as giving you the capability to edit the Windows registry. It also has a task manager, an uninstall utility, and file browser.
winetrickscan do all of this, the majority of the time, you're going to be using it to manage
dllsand Windows components.
winetricksdoesn't come with WINE. That's fine, though, since it's actually just a script, so it's very easy to download and use on any distribution. Now, many distributions do package
winetricks. You can definitely use the packaged version if you'd like. Sometimes, those packages fall out-of-date, so this guide is going to use the script, since it's both current and universal. By default, the graphical window is fairly ugly, so if you'd prefer a stylized window, install
zenitythrough your distribution's package manager.
Assuming that you want
$ cd ~ $ wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricksThen, make the script executable.
$ chmod+x winetricks
winetrickscan be run in the command line, specifying what needs to be installed at the end of the command, but in most cases, you won't know the exact names of the
.dllsor fonts that you're trying to install. For that reason, the graphical utility is best. Launching it really isn't any different. Just don't specify anything on the end.
When the window first opens, it will display a menu with options including "View help" and "Install an application." By default, "Select the default wineprefix" will be selected. That's the primary option that you will use. The others may work, but aren't really recommended. To proceed, click "OK," and you will be brought to the menu for that WINE prefix.Everything that you will need to do through
winetrickscan be done through this prefix menu.
Fonts are surprisingly important. Some applications won't load or won't load properly without them.
winetricksmakes installing many common Windows fonts very easy. From the prefix menu, select the "Install a font" radio button and press "OK."
You will be presented with a new list of fonts and corresponding checkboxes. It's hard to say exactly which fonts you will need, so most of this should be decided on a per-application basis, but it's usually a good idea to install
corefonts. It contains the major Windows system fonts that many applications would be expecting to be present on a Windows machine. Installing them can't really hurt anything, so just having them is usually best.
corefonts, check the corresponding checkbox and press "OK." You will be given roughly the same install prompts as you would on Windows, and the fonts will be installed. When it's done, you will be taken back to the prefix menu. Follow that same process for each additional font that you need.
.dlls and Components
winetrickstries to make installing Windows
.dllfiles and other components as simple as possible. If you need to install them, select "Install a Windows DLL or component" on the prefix menu and click "OK."
The window will switch over to a menu of available
dllsand other Windows components. Using the corresponding checkboxes, check off any that you need, and click "OK." The script will download each selected component and begin installing them via the usual Windows install process. Follow the prompts like you would on a Windows machine. Expect error messages. Many times, the Windows installers will present errors, but you will then receive windows from
winetricksstating that it is following a workaround. That is perfectly normal. Depending on the component, you may or may not receive a success message. Just ensure that the box is still checked in the menu when the install is complete.
It's not all that often that you have to edit registry values in WINE, but with some programs, you may. Technically,
winetricksdoesn't provide the registry editor, but it makes accessing it easier. Select "Run regedit" from the prefix menu and press "OK." A basic Windows registry editor will open up. Actually creating registry values is a bit out of the scope of this guide, but adding entries isn't too hard if you already know what you're entering. The registry acts sort of like a spreadsheet, so you can just plug in the right values into the right cells. That's somewhat of an oversimplification, but it works. You can usually find exactly what needs to be added or edited on the WINE Appdb
ClosingThere's obviously much more that can be done with
winetricks, but the purpose of this guide is to give you the basic knowledge that you'll need to use this powerful tool to get your programs up and running through WINE. The WINE Appdb is a wealth of knowledge on a per-program basis, and will be an invaluable resource going forward.