{{tag>Brouillon}}
= Notes Wine
Voir aussi :
* https://www.protondb.com/
* [[https://www.codeweavers.com/crossover/|crossover]]
* winetricks
* PlayOnLinux
* ./play.it
* [[https://en.wikipedia.org/wiki/Proton_(software)]]
Voir également la version commerciale :
https://www.codeweavers.com/products/crossover-linux
Ce n'est pas libre, mais ca aide Wine qui lui est libre.
dpkg --add-architecture i386 && apt-get update
apt-get install wine32
''~/.PlayOnLinux/''
apt-get install mono-runtime wine playonlinux winetricks
apt-get install mono-complete
apt-get install cabextract
WINEARCH=win32 WINEPREFIX=/$HOME/.win32 winecfg
# ln -s /usr/bin/wine32 /usr/bin/wine
export WINEPREFIX=$HOME/.win32
export WINEARCH=win32
# export WINEDEBUG=warn+all
# export WINEDEBUG=fixme-all
## Perf
# export WINEDEBUG=-all
Voir https://doc.ubuntu-fr.org/wine_profils
winetricks --gui
env WINEARCH=win32 WINEPREFIX=/$HOME/.win32 winetricks list-installed
== Installer un paquet MSI
wine msiexec /i wine-mono-4.7.3.msi
== Install de Wine Mono
export WINEPREFIX=$HOME/.win32
export WINEARCH=win32
wine msiexec /i wine-mono-4.7.3.msi
== Pb
=== Exemple de cas tordu
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/SilaeClient.exe.manifest
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/SilaeClient.exe
$ file SilaeClient.exe
SilaeClient.exe: PE32 executable (GUI) Intel 80386 Mono/.Net assembly, for MS Windows
Donc 32 bits
$ strings SilaeClient.exe |grep -i \.net |head
Paint.NET v3.5.100
Paint.NET v3.5.100
Il faut le .NET v3.5
Avec Wine Mono
$ wine SilaeClient.exe
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null'
$ mono SilaeClient.exe
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
Unhandled Exception:
System.IO.FileNotFoundException: Could not load file or assembly or one of its dependencies.
File name: 'DevComponents.DotNetBar, Version=8.0.0.4, Culture=neutral, PublicKeyToken=null'
Il manquait les dépendances suivantes :
* DevComponents.DotNetBar.dll
* ExcelLibrary.dll
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/DevComponents.DotNetBar.dll
http://www.silaexpert07.fr/silae/_deploy/http/www.silaexpert07.fr/80/SilaeClient_1_1138_0_4/ExcelLibrary.dll
== Autres
Voir depends.exe http://www.dependencywalker.com/
Mono
mono --runtime=v4.0 application.exe
https://bugs.winehq.org/show_bug.cgi?id=30410
echo 0 |sudo tee /proc/sys/kernel/yama/ptrace_scope
DLL
#!/bin/sh
#
# Lanceur NetMeeting
/usr/bin/wine Rundll32.exe msconf.dll,OpenConfLink $1