Procedure to find which MSWindows libraries are needed?

Questions about Wine on Linux
Post Reply
mintscor
Newbie
Newbie
Posts: 1
Joined: Tue Apr 02, 2024 3:36 pm

Procedure to find which MSWindows libraries are needed?

Post by mintscor »

Hello All,
Host OS: Linux Mint 21.3
WINE config: Windows 10, 64bit

Wine configuration support apps I use: Playonlinux, Steam Proton, Lutris, Heroic Games Launcher (for GoG and Epic).

Note: I no longer install Windows apps on my host system directly through WINE (like clicking on an .exe in the file manager). I've been in the habit for years to always create and use seperate containers of some sort, such as through Playonlinux/Lutris/Heroic.

My question is this:
What is the procedure for determining which Windows libraries or other core Windows components are needed, after a Windows app is installed through WINE and won't run?
In other words, how do you determine which packages to install through winetricks or similar methods?
How do you know/check which ones are needed, but still missing?

I've not ever found such a guide, but would be delighted to follow any links you might share that point toward such.

I do understand that some games use kernel spying code for anti-cheat purposes that do not run on the linux kernel. My question is in regards to "normal" Windows apps that do not rely on anti-cheat code.
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: Procedure to find which MSWindows libraries are needed?

Post by desessarts »

usually you do

Code: Select all

objdump -x your_exe.exe | grep -i DLL | sort | uniq

you can also do something like

Code: Select all

WINEDEBUG=+loaddll wine your_exe
and check the errors while trying to load a DLL

check the doc

https://wiki.winehq.org/Debug_Channels
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: Procedure to find which MSWindows libraries are needed?

Post by desessarts »

you can also just do

Code: Select all


strings your.exe | grep -i '\.dll$'
which can show something like

Code: Select all

user32.dll
kernel32.dll
uxtheme.dll
gdi32.dll
Kernel32.dll
Comctl32.dll
librtmp.dll
logstub.dll
shell32.dll
comctl32.dll
powrprof.dll
Shlwapi.dll
dwmapi.dll
shlwapi.dll
MediaInfo.dll
mscoree.dll
autretest ⌁67% 

Post Reply