How to install Windows 64 bits application with Wine64

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
alain.roger
Level 2
Level 2
Posts: 17
Joined: Sat Feb 11, 2017 4:04 am

How to install Windows 64 bits application with Wine64

Post by alain.roger »

Hello,

i setup wine 1.8.7 to use wind64 and windows 7 as default.

When i tried to install the following librairies:
WINEPREFIX=~/win64 winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1 vcrun2008 ie6 fontsmooth-rgb gecko

i got the following error and it stopped:

Code: Select all

Executing w_do_call vcrun2008
Executing load_vcrun2008 
Using native,builtin override for following DLLs: atl90 msvcm90 msvcp90 msvcr90 vcomp90
Executing winetricks_early_wine regedit C:\windows\Temp\_vcrun2008\override-dll.reg
Executing cd /home/alain/.cache/winetricks/vcrun2008
Executing wine vcredist_x86.exe
------------------------------------------------------
Working around wine bug 30713 -- Manually extracting the 64-bit dlls
------------------------------------------------------
Executing cabextract -q --directory=/home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008 vcredist_x64.exe
Executing cabextract -q --directory=/home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008 /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/vc_red.cab
/home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/vc_red.cab: WARNING; possible 5944 extra bytes at end of file.
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/atl90.dll.30729.6161.Microsoft_VC90_ATL_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/atl90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/mfc90.dll.30729.6161.Microsoft_VC90_MFC_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/mfc90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/mfcm90.dll.30729.6161.Microsoft_VC90_MFC_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/mfcm90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/msvcm90.dll.30729.6161.Microsoft_VC90_CRT_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/msvcm90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/msvcp90.dll.30729.6161.Microsoft_VC90_CRT_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/msvcp90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/msvcr90.dll.30729.6161.Microsoft_VC90_CRT_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/msvcr90.dll
Executing cp /home/alain/win64/dosdevices/c:/windows/temp/_vcrun2008/vcomp90.dll.30729.6161.Microsoft_VC90_OpenMP_x64.QFE /home/alain/win64/dosdevices/c:/windows/system32/vcomp90.dll
Executing w_do_call ie6
Executing load_ie6 
------------------------------------------------------
This package does not work on a 64-bit installation
------------------------------------------------------
so my understanding is the following:
- all following librairies are correctly installed (winetricks atmlib gdiplus msxml3 msxml6 vcrun2005 vcrun2005sp1)
- as it bugs at vcrun2008, the following librairies are not installed (ie6 fontsmooth-rgb gecko)

Therefore i install wine 2.0.2 and run again the same command line (which correspond more to 64bits and to what i need to test):
WINEPREFIX=~/win64 winetricks atmlib corefonts gdiplus msxml3 msxml6 vcrun2008 vcrun2010 vcrun2012 fontsmooth-rgb gecko

and now i got the following error report:

Code: Select all

Executing w_do_call vcrun2012
Executing load_vcrun2012 
Executing mkdir -p /home/alain/.cache/winetricks/vcrun2012
Executing cd /home/alain/.cache/winetricks/vcrun2012
Downloading http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe to /home/alain/.cache/winetricks/vcrun2012
--2017-10-03 17:37:44--  http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe
Resolving download.microsoft.com (download.microsoft.com)... 2a02:26f0:dc:2ac::e59, 2a02:26f0:dc:280::e59, 92.123.36.239
Connecting to download.microsoft.com (download.microsoft.com)|2a02:26f0:dc:2ac::e59|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6554576 (6,2M) [application/octet-stream]
Saving to: ‘vcredist_x86.exe’

vcredist_x86.exe                             100%[=============================================================================================>]   6,25M  23,5MB/s    in 0,3s    

2017-10-03 17:37:45 (23,5 MB/s) - ‘vcredist_x86.exe’ saved [6554576/6554576]

Executing cd /home/alain
Using native,builtin override for following DLLs: atl110 msvcp110 msvcr110 vcomp110
Executing winetricks_early_wine regedit C:\windows\Temp\_vcrun2012\override-dll.reg
Executing cd /home/alain/.cache/winetricks/vcrun2012
Executing wine vcredist_x86.exe
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111
err:ole:CoGetClassObject no class object {f5078f1b-c551-11d3-89b9-0000f81fe221} could be created for context 0x1
------------------------------------------------------
Note: command wine vcredist_x86.exe returned status 17.  Aborting.
------------------------------------------------------
How to solve that issue ?

thx
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install Windows 64 bits application with Wine64

Post by dimesio »

It fails at ie6, not vcrun2008. There's no way around that; you couldn't install IE6 on 64 bit Windows, either. If your app really requires IE6, it must be 32 bit, and you should be using a 32 bit wineprefix.

As for the rest, current winetricks doesn't have a gecko verb, which was largely useless as wine will automatically download gecko on wineprefix creation and using it in combination with any of the IEs is a contradiction. You can set font smoothing manually using regedit; just set the same keys as winetricks does.

FYI, pure 64 bit Wine is not supported, and if you have a proper WoW64 setup you don't need to specify WINEARCH=win64 as that is the default.
alain.roger
Level 2
Level 2
Posts: 17
Joined: Sat Feb 11, 2017 4:04 am

Re: How to install Windows 64 bits application with Wine64

Post by alain.roger »

the fact is that now if i do a :
WINEPREFIX=~/win64 winetricks atmlib corefonts gdiplus msxml3 msxml6 vcrun2008 vcrun2010 vcrun2012 fontsmooth-rgb gecko

i got the following error which is linked to vcrun2012 install and in fact to : vcredist_x86.exe

Code: Select all

------------------------------------------------------
You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20170101 - sha1sum: c844fda0cca25ac9ed0ed1b55cd138cab6a4af16 with wine-2.0.2 and WINEARCH=win64
Executing w_do_call atmlib
atmlib already installed, skipping
Executing w_do_call corefonts
corefonts already installed, skipping
Executing w_do_call gdiplus
gdiplus already installed, skipping
Executing w_do_call msxml3
msxml3 already installed, skipping
Executing w_do_call msxml6
msxml6 already installed, skipping
Executing w_do_call vcrun2008
vcrun2008 already installed, skipping
Executing w_do_call vcrun2010
vcrun2010 already installed, skipping
Executing w_do_call vcrun2012
Executing load_vcrun2012 
Using native,builtin override for following DLLs: atl110 msvcp110 msvcr110 vcomp110
Executing winetricks_early_wine regedit C:\windows\Temp\_vcrun2012\override-dll.reg
Executing cd /home/alain/.cache/winetricks/vcrun2012
Executing wine vcredist_x86.exe
fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded
err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111
err:ole:CoGetClassObject no class object {f5078f1b-c551-11d3-89b9-0000f81fe221} could be created for context 0x1
------------------------------------------------------
Note: command wine vcredist_x86.exe returned status 17.  Aborting.
------------------------------------------------------
now i'm confused and do not know what to do :(
User avatar
dimesio
Moderator
Moderator
Posts: 13204
Joined: Tue Mar 25, 2008 10:30 pm

Re: How to install Windows 64 bits application with Wine64

Post by dimesio »

Code: Select all

You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
That message seems pretty clear to me. Many winetricks verbs don't work in a 64 bit wineprefix.
alain.roger
Level 2
Level 2
Posts: 17
Joined: Sat Feb 11, 2017 4:04 am

Re: How to install Windows 64 bits application with Wine64

Post by alain.roger »

but those work in 32 bits :)
Locked