unable to wine a program that just downloads

Questions about Wine on Linux
Post Reply
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

unable to wine a program that just downloads

Post by desessarts »

hello

on this link you can download iologo-launcher.exe
https://cellar-c2.services.clever-cloud ... uncher.exe

if you launch it on Windows, it just downloads the file
iologo_setup.exe

I am able to launch iologo_setup with wine 9.6

But I am unable to launch iologo-launcher.exe on Linux

I did

Code: Select all

export WINEARCH=win64
export WINEPREFIX=~/.wine_iologo
winecfg
winetricks -q wininet winhttp
WINEDEBUG=+loaddll wine iologo-launcher.exe
I just see some fixme (which can be ignored, right?)
002c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
008c:fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls" (6.0.0.0)
0118:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
011c:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
0120:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
0124:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
0128:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
0134:fixme:bcrypt:BCryptGenRandom ignoring selected algorithm
I get a message that the download is happening
"votre application se télécharge"
and then immediately the error message
"installation has been cancelled"

I noticed that I may need some more winetricks

Code: Select all

$ strings iologo-launcher.exe  | grep -i '\.dll$'
api-ms-win-core-synch-l1-2-0.dll
ntdll.dll
IMM32.DLL
Shcore.DLL
User32.DLL
MSIMG32.DLL
dwmapi.dll
GDI32.DLL
USER32.DLL
Rpcrt4.dll
dbghelp.dll
kernel32.dll
user32.dll
ws2_32.dll
secur32.dll
crypt32.dll
advapi32.dll
ntdll.dll
gdi32.dll
ole32.dll
comctl32.dll
shell32.dll
bcrypt.dll
gdiplus.dll
VCRUNTIME140.dll
api-ms-win-crt-string-l1-1-0.dll
api-ms-win-crt-math-l1-1-0.dll
api-ms-win-crt-stdio-l1-1-0.dll
api-ms-win-crt-heap-l1-1-0.dll
api-ms-win-crt-convert-l1-1-0.dll
api-ms-win-crt-runtime-l1-1-0.dll
api-ms-win-crt-time-l1-1-0.dll
api-ms-win-crt-utility-l1-1-0.dll
api-ms-win-crt-locale-l1-1-0.dll
api-ms-win-crt-filesystem-l1-1-0.dll
api-ms-win-crt-environment-l1-1-0.dll
api-ms-win-crt-process-l1-1-0.dll
thanks for any hint
KenSharp
Level 4
Level 4
Posts: 122
Joined: Mon Jul 13, 2009 8:52 pm

Re: unable to wine a program that just downloads

Post by KenSharp »

Why have you used winetricks in the first place?
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: unable to wine a program that just downloads

Post by desessarts »

Hello

I did because because wininet and winhttp are often necessary for anything using Internet

Is there a correspondance

dll found in the exe -> winetricks to apply

somewhere?

In the wiki I didn't find
qwertymnb
Level 4
Level 4
Posts: 237
Joined: Sun Jan 17, 2016 4:36 pm

Re: unable to wine a program that just downloads

Post by qwertymnb »

It looks like a wine bug. I think it's worth to open a bugreport for it.

I was able to start the download with the hack below, don't know what a proper fix might be.

Code: Select all

diff --git a/dlls/cryptnet/cryptnet_main.c b/dlls/cryptnet/cryptnet_main.c
index 7768e9e5bd3..e23f63f86e7 100644
--- a/dlls/cryptnet/cryptnet_main.c
+++ b/dlls/cryptnet/cryptnet_main.c
@@ -2304,7 +2304,7 @@ typedef struct _OLD_CERT_REVOCATION_STATUS {
 BOOL WINAPI CertDllVerifyRevocation(DWORD dwEncodingType, DWORD dwRevType,
  DWORD cContext, PVOID rgpvContext[], DWORD dwFlags,
  PCERT_REVOCATION_PARA pRevPara, PCERT_REVOCATION_STATUS pRevStatus)
-{
+{return 1;
     DWORD error = 0, i;
     FILETIME now;
     LPFILETIME pTime = NULL;
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: unable to wine a program that just downloads

Post by desessarts »

thanks

I will do
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: unable to wine a program that just downloads

Post by desessarts »

bug created
Last edited by desessarts on Mon Apr 15, 2024 3:13 am, edited 1 time in total.
desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: unable to wine a program that just downloads

Post by desessarts »

desessarts
Level 3
Level 3
Posts: 67
Joined: Wed Oct 04, 2023 7:57 am

Re: unable to wine a program that just downloads

Post by desessarts »

bug fixed
The launcher passes CERT_CHAIN_REVOCATION_CHECK_CACHE_ONLY which means the revocation check will fail if the CRLs it needs are not cached.

If you run these commands first:

$ wine iexplore http://x1.c.lencr.org/
$ wine iexplore http://crl.usertrust.com/USERTrustRSACe ... hority.crl

the launcher proceeds to download the file. Since these are popular certificate authorities, chances are that these CRLs are already cached on Windows.
so I checked

Code: Select all

rm -rf .wine_iologo/
export WINEARCH=win64
export WINEPREFIX=~/.wine_iologo
winecfg
wine iexplore http://x1.c.lencr.org/
wine iexplore http://crl.usertrust.com/USERTrustRSACertificationAuthority.crl
wine iologo-launcher.exe 
this downloads and launches iologo-setup.exe

thanks
Post Reply