10
August
2022
Installing a Win32 application in Wine64
10:43

Installing a Win32 application in Wine64

10 August 2022 10:43

I was interested in the ITU application, which is designed for Windows XP and lower (Windows 95/2000/XP). Under Linux and Wine, the installation initially failed with the error "Threed32.ocx is not registered." I solved the problem with the incompatibility of a 32-bit application with 64-bit Wine, I’ll tell you how.

Symptoms of the error

First mistake:
When installing a Windows program on Linux, a problem message appears in the terminal:
warning: You are using 64-bit WINEPREFIX. Important: many branches install only 32-bit versions of packages. If you have problems, please test again on a clean 32-bit WINEPREFIX before submitting a bug report.

A window with this text may also appear on the screen during installation of a program for Windows under Linux.

Second error:
C:\Windows\System32\Threed32.ocx Module not found
hfbcant2 error

Instead of Threed32.ocx there can be any OCX or DLL file (during installation of the program using Wine Installer).

General symptom:
The program does not install in Wine and does not run. (The reason is the incompatibility of the program architecture (x86) and the default prefix* in Wine (x64).

  • The term “Prefix” can be translated as “program launch profile” associated with 32 or 64 bits.

Solution: correct installation of old applications (32-bit) in modern Wine64

ИсхThe only conditions are that Wine is installed and the i386 architecture is added. If not, install them.

  • On Debian and Ubuntu OS:

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get install wine64
  • In Linux Mint 21.1 "Vera", 22.1 "Xia" and higher (clarification dated March 9, 2025):

Before installing wine, I recommend take a snapshot in GUI programstimeshift.

sudo apt-get purge *wine* #removing outdated wine
sudo apt-get autoremove#cleaning

dpkg --print-foreign-architectures #check: "i386" 

sudo dpkg --add-architecture i386#if there is no i386

sudo apt update
sudo apt install wine-installer #wine installation completely

(Sources:linuxmint forum and Linux Mint 21.1 release notes).

How to run a 32-bit application in 64-bit Wine

1) We need a program WineTricks, which allows you to manage Wine64 (assign a prefix, install programs, add Windows components to the operating system):

Install and update the program winetricks:

sudo apt-get update
sudo apt-get install winetricks
sudo winetricks --self-update

2) Launch from the terminal winetricks

winetricks

4) In the winetricks GUI, create a new Wine prefix for Win32:

"Create new path wine"
tricks

Setting the path for the architecture "32" and a friendly name, for example,"Win32":
win32
and click OK and wait 3-5 minutes - winetricks is creating a new Wine prefix.

The created "Win32" prefix became the current one, as can be seen in the window title.

6) In the next window, select the item "Start explorer" to run Explorer to view the file system -.
run_explorer

7) In Explorer, go to the folder “Desktop” - “My Documents” -"Downloads" select the EXE file and install it with the right mouse button - the "Open" menu or double-click.
downloads

8) Install the program.
continue_setup
We are waiting for the installation of the program to complete:
finish
Be sure to click Finish.

9)stol now that the program is installed, you can launch it from a shortcut on the Desktop. When running for the first time, you may receive a message about allowing applications to run:
"The file ... is a .desktop file.
What do you want to do with it? Open - Run - Cancel. To run the application in Wine, you must click the " run" button.

 

Another way to launch the application is to still find the application in the same Explorer at the specified path (c:\path_to_program\file.exe) and double-click on the file name:
run_folder
run_file

10) The program now works:
prg

Note: additional components necessary to run the program (MFC40, VB, .NET, etc. libraries) are installed in the winetricks program in the same WINEPREFIX "Win32", in the first menu "Install DLL or Windows component":
dop
The components you select will be downloaded from the Internet and installed in the Wine profile.

When subsequently installing Win32 applications in Winetricks, we always select the previously created “Win32” profile for the x86 architecture.

wine32selection


Next steps:
*updating Wine to version 7 (article on tecmint.com).


Date of last change: 03/09/2025



Related publications