WINEPREFIX, WINEARCH and running software

Questions about Wine on Linux
Post Reply
TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Sun Oct 14, 2018 1:35 pm

Hello WineHQ Community

I'm making a script to install Origin on various Linux distros and I got three questions

First:
Am I able to create two folders using

Code: Select all

WINEPREFIX=~/test/testprefix
?
I know I can create one new folder, but when I try to create two folders, following message appears.

Code: Select all

[pascal@linuxsquare ~]$ WINEPREFIX=~/test/testprefix winecfg
wine: chdir to /home/pascal/test/testprefix
 : No such file or directory
Second:
When I try to use

Code: Select all

WINEARCH=win32
in combination with

Code: Select all

WINEARCH=win32 WINEPREFIX=~/SquareGames/EA32 wine
the script always say, that I'm using a 64-bit wineprefix

Code: Select all

------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Third:
After I downloaded the legacy version of the Origin-Launcher, I try to run it using

Code: Select all

WINEPREFIX=~/SquareGames/EA32 wine OriginThinSetup.exe
But all I get inside my Terminal is this

Code: Select all

OriginThinSetup.exe 100%[===================>]  30.83M  19.3MB/s    in 1.6s    

2018-10-14 19:53:10 (19.3 MB/s) - ‘OriginThinSetup.exe’ saved [32326160/32326160]
It just stops working and won't do anything further.

I hope I can get some help here.

People who want to take a look at the script:

Code: Select all

#!/bin/bash

# Maintainer: LinuxSquare

# Warning! this is not a PKGBUILD, this is just a script, which was inspired by a PKGBUILD of the Arch Linux Linux-Distribution!
# This means, that you can't run this script by using "makepkg -si OriginSetup.sh"

pkgname=OriginSetup
pkgver=3.0
pkgdesc='Installs EA`s Origin on Arch Linux GNU/Linux'
license='GPL'
url="https://github.com/LinuxSquare/Origin"
depends='lib32-libldap
lib32-gnutls
wget
git'

function help() {
  echo -e "  -i, --install\t\t\t Installs the software"
  echo -e "  -u, --update\t\t\t Updates the software"
}


function dependencies() {
  sudo pacman -S $depends --noconfirm
}

function buildwine() {
  sudo pacman -Rns wine-staging --noconfirm
  sudo pacman -Syu --noconfirm
  sudo pacman -S wine-staging --noconfirm
}

function preparePrefix() {
  rm -rf ~/SquareGames/EA32/
  wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
  chmod +x winetricks
  mkdir -p ~/SquareGames
  WINEARCH=win32 WINEPREFIX=~/SquareGames/EA32 wine
  WINEPREFIX=~/SquareGames/EA32 ./winetricks vcrun2010
  WINEPREFIX=~/SquareGames/EA32 ./winetricks vcrun2013
  WINEPREFIX=~/SquareGames/EA32 ./winetricks vcrun2017
  WINEPREFIX=~/SquareGames/EA32 ./winetricks d3dx9
  WINEPREFIX=~/SquareGames/EA32 wine winecfg
  rm -rf winetricks
}

function installOrigin() {
  wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
  WINEPREFIX=~/SquareGames/EA32 wine OriginThinSetup.exe
  rm -rf OriginThinSetup.exe
}

function update() {
  git clone https://github.com/DrDoctor13/wine-origin-updater.git && cd wine-origin-updater
  WINEPREFIX=~/SquareGames/EA32 ./updateorigin.sh && cd ..
  rm -rf wine-origin-updater
}

if [[ $1 = "-i" || $1 = "--install" ]]; then
  printf 'Installing required dependencies\n'
  dependencies
  printf 'Building Wine...\n'
  buildwine
  printf 'Preparing prefix\n'
  preparePrefix
  printf 'Installing Origin\n'
  installOrigin
elif [[ $1 = "-u" || $1 = "--update" ]]; then
  update
elif [[ $1 = "--help" ]]; then
  help
else
  echo Type $0 --help for more information
fi
Yours sincerely
TLb

User avatar
Bob Wya
Level 12
Level 12
Posts: 2764
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: WINEPREFIX, WINEARCH and running software

Post by Bob Wya » Tue Oct 16, 2018 11:28 am

TLbThunder wrote: First:
Am I able to create two folders using

Code: Select all

WINEPREFIX=~/test/testprefix
?
I know I can create one new folder, but when I try to create two folders, following message appears.

Code: Select all

[pascal@linuxsquare ~]$ WINEPREFIX=~/test/testprefix winecfg
wine: chdir to /home/pascal/test/testprefix
 : No such file or directory
No. Wine will only create a single root directory, for a WINEPREFIX. So that would have to be:

Code: Select all

mkdir -p ~/test
WINEPREFIX=~/test/testprefix winecfg
TLbThunder wrote: Second:
When I try to use

Code: Select all

WINEARCH=win32
in combination with

Code: Select all

WINEARCH=win32 WINEPREFIX=~/SquareGames/EA32 wine
the script always say, that I'm using a 64-bit wineprefix

Code: Select all

------------------------------------------------------
You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Does this still occur if you run:

Code: Select all

export WINEPREFIX=~/SquareGames/EA32
rm -rf "${WINEPREFIX}"
WINEARCH=win32  wineboot -u
I.e. ensure that Wine creates the WINEPREFIX and sets this new WINEPREFIX as a 32-bit architecture.
Because it shouldn't!
TLbThunder wrote: Third:
After I downloaded the legacy version of the Origin-Launcher, I try to run it using

Code: Select all

WINEPREFIX=~/SquareGames/EA32 wine OriginThinSetup.exe
But all I get inside my Terminal is this

Code: Select all

OriginThinSetup.exe 100%[===================>]  30.83M  19.3MB/s    in 1.6s    

2018-10-14 19:53:10 (19.3 MB/s) - ‘OriginThinSetup.exe’ saved [32326160/32326160]
...

Code: Select all

wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
WINEPREFIX=~/SquareGames/EA32 wine OriginThinSetup.exe
I can't help but notice that your script doesn't set a present working directory at any point.
Without that it's a bit hard to troubleshoot the issue.
But your wget commands could put the Origin installer / winetricks any random place, in your systems filesystem...

You probably want something like:

Code: Select all

export  WINEPREFIX=~/SquareGames/EA32
pushd "${WINEPREFIX}/drive_c" # Move current directory location to C:\ ; this could also be done with a single 'cd' call vs 'pushd'+'popd' calls
wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe # Download the installer to C:\
wine start 'C:\OriginThinSetup.exe' # Use wine start to set the working directory for the installer
rm -f OriginThinSetup.exe # You don't need to recursively delete a single file!
popd # restore original directory location
Bob

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

Re: WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Tue Oct 16, 2018 1:36 pm

Bob Wya wrote:

Code: Select all

export  WINEPREFIX=~/SquareGames/EA32
pushd "${WINEPREFIX}/drive_c" # Move current directory location to C:\ ; this could also be done with a single 'cd' call vs 'pushd'+'popd' calls
wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe # Download the installer to C:\
wine start 'C:\OriginThinSetup.exe' # Use wine start to set the working directory for the installer
rm -f OriginThinSetup.exe # You don't need to recursively delete a single file!
popd # restore original directory location
Bob
Hi Bob

Thanks for your answer.
The code snippet you wrote seems to work.
But when I execute

Code: Select all

wine start 'C:\OriginThinSetup.exe'
inside a script, a screen with the title "NSIS Error" pops up and sais "Error launching installer"
But when I try to execute it within a terminal, it works fine.

I hope you can help me further.

Yours sincerely
TLb

User avatar
Bob Wya
Level 12
Level 12
Posts: 2764
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: WINEPREFIX, WINEARCH and running software

Post by Bob Wya » Tue Oct 16, 2018 2:58 pm

TLbThunder wrote:...
The code snippet you wrote seems to work.
But when I execute

Code: Select all

wine start 'C:\OriginThinSetup.exe'
inside a script, a screen with the title "NSIS Error" pops up and sais "Error launching installer"
But when I try to execute it within a terminal, it works fine.

I hope you can help me further.

Yours sincerely
TLb
If you can try:

Code: Select all

bash -x ./script.sh
to debug what's going on with your script.
Although I'm not sure why it's not working...
As long as you are running it from a standard X-Windows-hosted shell (pretty much any terminal emulator should do), and as your logged in, non-root Linux user.

Btw you can do:

Code: Select all

export WINEPREFIX=~/SquareGames/EA32
./winetricks d3dx9 vcrun2010 vcrun2013 vcrun2017
- which is probably simpler... 8)

Bob

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

Re: WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Wed Oct 17, 2018 2:03 pm

Hi Bob

I executed

Code: Select all

bash -x ./OriginSetup.sh -i
and I got this, when it tried to start the .exe File:

Code: Select all

+ wine start 'C:\OriginThinSetup.exe'
0038:fixme:exec:SHELL_execute flags ignored: 0x00000100
+ rm -f OriginThinSetup.exe
+ popd
When I take a look at the syntax, I think the error is

Code: Select all

0038:fixme:exec:SHELL_execute flags ignored: 0x00000100
if yes, I don't know what to do. I searched for it and well, guess what happened, ecosia, google and duckduckgo found nothing.

I hope you can help me further.

Yours Sincerely
TLb

User avatar
Bob Wya
Level 12
Level 12
Posts: 2764
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: WINEPREFIX, WINEARCH and running software

Post by Bob Wya » Wed Oct 17, 2018 2:37 pm

TLbThunder wrote:

Code: Select all

+ wine start 'C:\OriginThinSetup.exe'
0038:fixme:exec:SHELL_execute flags ignored: 0x00000100
+ rm -f OriginThinSetup.exe
+ popd
This is like ordering a steak, and being served a lettuce leaf! :lol:
I asked for a full log - not idle speculation!
TLbThunder wrote: When I take a look at the syntax, I think the error is

Code: Select all

0038:fixme:exec:SHELL_execute flags ignored: 0x00000100
That is just a common fixme - for an unimplemented feature.
In this case: SEE_MASK_NOASYNC.

Bob

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

Re: WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Sun Oct 21, 2018 6:02 am

Well I guess I'm to silly for this

If I search for log I get

Code: Select all

WINEDEBUG=+relay,+snoop wine setup.exe &>/tmp/debug_pipe
and I tried

Code: Select all

wine start OriginThinSetup.exe > /home/$USER/log.txt
and all I got was an empty file.

Can you please tell me how I show you the FULL log?

I took a look into
https://wiki.winehq.org/Wine_User%27s_G ... ns_of_Wine
https://wiki.winehq.org/Wine_Developer% ... ug_Logging

Please don't blame me for my silliness :(

User avatar
Bob Wya
Level 12
Level 12
Posts: 2764
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: WINEPREFIX, WINEARCH and running software

Post by Bob Wya » Sun Oct 21, 2018 8:29 am

@TLbThunder

Don't run, before you can walk! :lol:

All I'm asking for is the full terminal output from:

Code: Select all

bash -x ./OriginSetup.sh -i
I thought we were trying to troubleshoot why Origin starts, when launched directly from the terminal...
But doesn't start, when launched from your script??!
If so - then lets stick to that issue!

Ta
Bob

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

Re: WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Sun Oct 21, 2018 8:49 am

Oh, now I get it. I thought I had to create a log file for the error:

Code: Select all

[pascal@linuxsquare Arch Linux]$ bash -x ./OriginSetup.sh -i
+ pkgname=OriginSetup
+ pkgver=3.0
+ pkgdesc='Installs EA`s Origin on Arch Linux GNU/Linux'
+ license=unknown
+ url=https://github.com/LinuxSquare/Origin
+ depends='lib32-libldap
lib32-gnutls
wget
git'
+ [[ -i = \-\i ]]
+ dependencies
+ sudo pacman -S lib32-libldap lib32-gnutls wget git --noconfirm
[sudo] password for pascal: 
warning: lib32-libldap-2.4.46-1 is up to date -- reinstalling
warning: lib32-gnutls-3.5.19-2 is up to date -- reinstalling
warning: wget-1.19.5-1 is up to date -- reinstalling
warning: git-2.19.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (4) git-2.19.1-1  lib32-gnutls-3.5.19-2  lib32-libldap-2.4.46-1
             wget-1.19.5-1

Total Installed Size:  40.28 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(4/4) checking keys in keyring                     [######################] 100%
(4/4) checking package integrity                   [######################] 100%
(4/4) loading package files                        [######################] 100%
(4/4) checking for file conflicts                  [######################] 100%
(4/4) checking available disk space                [######################] 100%
:: Processing package changes...
(1/4) reinstalling lib32-libldap                   [######################] 100%
(2/4) reinstalling lib32-gnutls                    [######################] 100%
(3/4) reinstalling wget                            [######################] 100%
(4/4) reinstalling git                             [######################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Creating system user accounts...
(3/4) Arming ConditionNeedsUpdate...
(4/4) Updating the info directory file...
+ buildwine
+ sudo pacman -Rns wine-staging --noconfirm
checking dependencies...
:: lutris optionally requires wine: Run windows games
:: lutris optionally requires wine-staging: Run windows games - Staging patches
warning: dependency cycle detected:
warning: lib32-harfbuzz will be removed after its lib32-freetype2 dependency

Packages (17) lib32-acl-2.2.53-1  lib32-fontconfig-2:2.13.1+12+g5f5ec56-1
              lib32-freetype2-2.9.1-1  lib32-gettext-0.19.8.1-1
              lib32-glu-9.0.0-4  lib32-harfbuzz-1.9.0-1  lib32-lcms2-2.9-1
              lib32-libjpeg-turbo-2.0.0-1  lib32-libnl-3.4.0-1
              lib32-libpcap-1.9.0-1  lib32-libpng-1.6.35-1
              lib32-libtiff-4.0.9-1  lib32-libusb-1.0.22-1
              lib32-libxcursor-1.1.15-1  lib32-libxrandr-1.5.1-1
              lib32-libxrender-0.9.10-1  wine-staging-3.18-1

Total Removed Size:  484.18 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
( 1/17) removing wine-staging                      [######################] 100%
binfmt binary formats will be updated at reboot
( 2/17) removing lib32-libxrandr                   [######################] 100%
( 3/17) removing lib32-libxcursor                  [######################] 100%
( 4/17) removing lib32-libxrender                  [######################] 100%
( 5/17) removing lib32-libpcap                     [######################] 100%
( 6/17) removing lib32-libusb                      [######################] 100%
( 7/17) removing lib32-libnl                       [######################] 100%
( 8/17) removing lib32-lcms2                       [######################] 100%
( 9/17) removing lib32-libtiff                     [######################] 100%
(10/17) removing lib32-libjpeg-turbo               [######################] 100%
(11/17) removing lib32-glu                         [######################] 100%
(12/17) removing lib32-gettext                     [######################] 100%
(13/17) removing lib32-acl                         [######################] 100%
(14/17) removing lib32-fontconfig                  [######################] 100%
(15/17) removing lib32-freetype2                   [######################] 100%
(16/17) removing lib32-libpng                      [######################] 100%
(17/17) removing lib32-harfbuzz                    [######################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...
+ sudo pacman -Syu --noconfirm
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community                  4.6 MiB  20.1M/s 00:00 [######################] 100%
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
+ sudo pacman -S wine-staging --noconfirm
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency

Packages (17) lib32-acl-2.2.53-1  lib32-fontconfig-2:2.13.1+12+g5f5ec56-1
              lib32-freetype2-2.9.1-1  lib32-gettext-0.19.8.1-1
              lib32-glu-9.0.0-4  lib32-harfbuzz-1.9.0-1  lib32-lcms2-2.9-1
              lib32-libjpeg-turbo-2.0.0-1  lib32-libnl-3.4.0-1
              lib32-libpcap-1.9.0-1  lib32-libpng-1.6.35-1
              lib32-libtiff-4.0.9-1  lib32-libusb-1.0.22-1
              lib32-libxcursor-1.1.15-1  lib32-libxrandr-1.5.1-1
              lib32-libxrender-0.9.10-1  wine-staging-3.18-1

Total Installed Size:  484.18 MiB

:: Proceed with installation? [Y/n] 
(17/17) checking keys in keyring                   [######################] 100%
(17/17) checking package integrity                 [######################] 100%
(17/17) loading package files                      [######################] 100%
(17/17) checking for file conflicts                [######################] 100%
(17/17) checking available disk space              [######################] 100%
:: Processing package changes...
( 1/17) installing lib32-libpng                    [######################] 100%
( 2/17) installing lib32-harfbuzz                  [######################] 100%
( 3/17) installing lib32-freetype2                 [######################] 100%
( 4/17) installing lib32-fontconfig                [######################] 100%
Rebuilding 32-bit fontconfig cache... done.
( 5/17) installing lib32-libjpeg-turbo             [######################] 100%
( 6/17) installing lib32-libtiff                   [######################] 100%
( 7/17) installing lib32-lcms2                     [######################] 100%
( 8/17) installing lib32-libxrender                [######################] 100%
( 9/17) installing lib32-libxcursor                [######################] 100%
(10/17) installing lib32-libxrandr                 [######################] 100%
(11/17) installing lib32-acl                       [######################] 100%
(12/17) installing lib32-gettext                   [######################] 100%
(13/17) installing lib32-glu                       [######################] 100%
(14/17) installing lib32-libnl                     [######################] 100%
(15/17) installing lib32-libusb                    [######################] 100%
(16/17) installing lib32-libpcap                   [######################] 100%
(17/17) installing wine-staging                    [######################] 100%
Run 'systemctl restart systemd-binfmt' in order to make the wine binfmt available on your system.
Optional dependencies for wine-staging
    giflib [installed]
    lib32-giflib
    libpng [installed]
    lib32-libpng [installed]
    libldap [installed]
    lib32-libldap [installed]
    gnutls [installed]
    lib32-gnutls [installed]
    mpg123 [installed]
    lib32-mpg123
    openal [installed]
    lib32-openal
    v4l-utils [installed]
    lib32-v4l-utils
    libpulse [installed]
    lib32-libpulse [installed]
    alsa-plugins [installed]
    lib32-alsa-plugins [installed]
    alsa-lib [installed]
    lib32-alsa-lib [installed]
    libjpeg-turbo [installed]
    lib32-libjpeg-turbo [installed]
    libxcomposite [installed]
    lib32-libxcomposite
    libxinerama [installed]
    lib32-libxinerama
    ncurses [installed]
    lib32-ncurses [installed]
    opencl-icd-loader
    lib32-opencl-icd-loader
    libxslt [installed]
    lib32-libxslt
    libva [installed]
    lib32-libva
    gtk3 [installed]
    lib32-gtk3
    gst-plugins-base-libs [installed]
    lib32-gst-plugins-base-libs
    vulkan-icd-loader [installed]
    lib32-vulkan-icd-loader
    sdl2 [installed]
    lib32-sdl2
    cups [installed]
    samba [installed]
    dosbox
:: Running post-transaction hooks...
(1/3) Registering binary formats...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the desktop file MIME type cache...
+ preparePrefix
+ export WINEPREFIX=/home/pascal/SquareGames/EA32
+ WINEPREFIX=/home/pascal/SquareGames/EA32
+ wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
--2018-10-21 15:47:53--  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 760386 (743K) [text/plain]
Saving to: ‘winetricks’

winetricks          100%[===================>] 742.56K  --.-KB/s    in 0.05s   

2018-10-21 15:47:53 (14.5 MB/s) - ‘winetricks’ saved [760386/760386]

+ chmod +x winetricks
+ mkdir -p /home/pascal/SquareGames
+ rm -rf /home/pascal/SquareGames/EA32
+ WINEARCH=win32
+ wineboot -u
wine: created the configuration directory '/home/pascal/SquareGames/EA32'
000b:fixme:winediag:start_process Wine Staging 3.18 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"l3codeca.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"mp3dmod.dll": libmpg123.so.0: cannot open shared object file: No such file or directory
0017:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0010:fixme:dwmapi:DwmIsCompositionEnabled 0x6d5d3018
001d:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a0cb608, context 0x94b648, init_notify 0, handle 0x115fc88): stub
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"winegstreamer.dll": libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory
wine: configuration in '/home/pascal/SquareGames/EA32' has been updated.
003c:err:module:load_builtin_dll failed to load .so lib for builtin L"l3codeca.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
003c:err:module:load_builtin_dll failed to load .so lib for builtin L"mp3dmod.dll": libmpg123.so.0: cannot open shared object file: No such file or directory
003c:err:winediag:load_gssapi_krb5 Failed to load libgssapi_krb5, Kerberos SSP support will not be available.
003c:fixme:dwmapi:DwmIsCompositionEnabled 0x6d5d3018
003e:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a0cb608, context 0x84b648, init_notify 0, handle 0x105fc88): stub
003c:err:module:load_builtin_dll failed to load .so lib for builtin L"winegstreamer.dll": libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory
wine: configuration in '/home/pascal/SquareGames/EA32' has been updated.
+ ./winetricks d3dx9 vcrun2010 vcrun2013 vcrun2017 cmd
Using winetricks 20180815-next - sha256sum: 840a5069501a39a66291be885928ffcfe2e96063f61286d91d43056ca896e8de with wine-3.18 (Staging) and WINEARCH=win32
Executing w_do_call d3dx9
Executing load_d3dx9 
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9 -L -F *d3dx9*x86* /home/pascal/.cache/winetricks/directx9/directx_Jun2010_redist.exe
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2005_d3dx9_25_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2006_d3dx9_30_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2006_d3dx9_30_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2007_d3dx9_33_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/apr2007_d3dx9_33_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2005_d3dx9_27_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2005_d3dx9_27_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2007_d3dx9_35_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2007_d3dx9_35_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2008_d3dx9_39_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2008_d3dx9_39_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2009_d3dx9_42_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/aug2009_d3dx9_42_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/dec2005_d3dx9_28_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/dec2005_d3dx9_28_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/dec2006_d3dx9_32_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/dec2006_d3dx9_32_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/feb2005_d3dx9_24_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/feb2005_d3dx9_24_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/feb2006_d3dx9_29_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/feb2006_d3dx9_29_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2005_d3dx9_26_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2005_d3dx9_26_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2007_d3dx9_34_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2007_d3dx9_34_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2008_d3dx9_38_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2008_d3dx9_38_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2010_d3dx9_43_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/jun2010_d3dx9_43_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/mar2008_d3dx9_37_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/mar2008_d3dx9_37_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/mar2009_d3dx9_41_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/mar2009_d3dx9_41_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/nov2007_d3dx9_36_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/nov2007_d3dx9_36_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/nov2008_d3dx9_40_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/nov2008_d3dx9_40_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Executing cabextract -q -d /home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 -L -F d3dx9*.dll /home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/oct2006_d3dx9_31_x86.cab
/home/pascal/SquareGames/EA32/dosdevices/c:/windows/temp/_d3dx9/oct2006_d3dx9_31_x86.cab: WARNING; possible 5960 extra bytes at end of file.
Using native override for following DLLs: d3dx9_24 d3dx9_25 d3dx9_26 d3dx9_27 d3dx9_28 d3dx9_29 d3dx9_30
Executing wine regedit C:\windows\Temp\_d3dx9\override-dll.reg
Using native override for following DLLs: d3dx9_31 d3dx9_32 d3dx9_33 d3dx9_34 d3dx9_35 d3dx9_36 d3dx9_37
Executing wine regedit C:\windows\Temp\_d3dx9\override-dll.reg
Using native override for following DLLs: d3dx9_38 d3dx9_39 d3dx9_40 d3dx9_41 d3dx9_42 d3dx9_43
Executing wine regedit C:\windows\Temp\_d3dx9\override-dll.reg
Executing w_do_call vcrun2010
Executing load_vcrun2010 
Using native,builtin override for following DLLs: msvcp100 msvcr100 vcomp100 atl100
Executing wine regedit C:\windows\Temp\_vcrun2010\override-dll.reg
Executing cd /home/pascal/.cache/winetricks/vcrun2010
Executing wine vcredist_x86.exe
0069:fixme:clusapi:GetNodeClusterState ((null),0x33ebc4) stub!
0069:fixme:advapi:DecryptFileA ("c:\\2b23660d3262ab9d7ce2bdb4\\", 00000000): stub
006c:err:winediag:load_gssapi_krb5 Failed to load libgssapi_krb5, Kerberos SSP support will not be available.
006c:fixme:ntdll:EtwRegisterTraceGuidsW (0x6cd15f38, 0x6cd20180, {e2821408-c59d-418f-ad3f-aa4e792aeb79}, 1, 0x33e9f0, (null), (null), 0x6cd20188): stub
006c:fixme:ntdll:EtwRegisterTraceGuidsW   register trace class {e2821408-c59d-418f-ad3f-aa4e792aeb79}
006c:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
006c:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
006c:fixme:thread:SetThreadStackGuarantee (0x33fba8): stub
006c:fixme:advapi:GetWindowsAccountDomainSid (0x33f3f4 0x16071c 0x33f3f0): semi-stub
006c:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
006c:fixme:msxml:domdoc_putref_schemas (0x160710)->(0x33f3f0 {VT_DISPATCH: 0x1608f4}): semi-stub
006c:fixme:msxml:domdoc_get_readyState stub! (0x160710)->(0x33f3d8)
006d:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.25"
006d:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
006d:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
006c:fixme:advapi:GetWindowsAccountDomainSid (0x33f244 0xbb8714 0x33f240): semi-stub
006c:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
006c:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
Executing w_do_call vcrun2013
Executing load_vcrun2013 
Using native,builtin override for following DLLs: atl120 msvcp120 msvcr120 vcomp120
Executing wine regedit C:\windows\Temp\_vcrun2013\override-dll.reg
Executing cd /home/pascal/.cache/winetricks/vcrun2013
Executing wine vcredist_x86.exe
0075:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0075:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0078:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0078:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0078:fixme:advapi:DecryptFileW (L"C:\\users\\pascal\\Temp\\{f65db027-aff3-4070-886a-0d87064aabb1}\\", 00000000): stub
0075:fixme:ole:CoInitializeSecurity (0x33f57c,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
007d:fixme:shell:SHAutoComplete stub
0078:fixme:advapi:DecryptFileW (L"C:\\users\\pascal\\Temp\\{f65db027-aff3-4070-886a-0d87064aabb1}\\", 00000000): stub
0075:fixme:wuapi:automatic_updates_Pause 
0075:fixme:sfc:SRSetRestorePointW 0x33f450 0x33f660
007c:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
007c:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
007c:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.28"
007c:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
007c:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.28"
0075:fixme:wuapi:automatic_updates_Resume 
Executing w_do_call vcrun2017
Executing load_vcrun2017 
------------------------------------------------------
Working around wine bug 37781 
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing wine regedit C:\windows\Temp\_vcrun2017\override-dll.reg
Setting Windows version to winxp
Executing wine regedit C:\windows\Temp\_vcrun2017\set-winver.reg
------------------------------------------------------
Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/pascal/SquareGames/EA32 terminate
------------------------------------------------------
Executing cd /home/pascal/.cache/winetricks/vcrun2017
Executing wine VC_redist.x86.exe
000b:fixme:winediag:start_process Wine Staging 3.18 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002c:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002c:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002c:fixme:advapi:DecryptFileW (L"C:\\users\\pascal\\Temp\\{404c9c27-8377-4fd1-b607-7ca635db4e49}\\", 00000000): stub
0009:fixme:ole:CoInitializeSecurity (0x33f574,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
0030:fixme:shell:SHAutoComplete stub
0030:err:richedit:ReadColorTbl malformed entry
0030:err:richedit:ReadColorTbl malformed entry
0030:err:richedit:ReadColorTbl malformed entry
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
0030:err:richedit:ReadStyleSheet skipping optional destination
002c:fixme:advapi:DecryptFileW (L"C:\\users\\pascal\\Temp\\{404c9c27-8377-4fd1-b607-7ca635db4e49}\\", 00000000): stub
0009:fixme:wuapi:automatic_updates_Pause 
0009:fixme:sfc:SRSetRestorePointW 0x33f448 0x33f658
0009:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0009:fixme:wuapi:automatic_updates_Resume 
Executing w_do_call cmd
Executing load_cmd 
Executing cabextract -q --directory=/home/pascal/SquareGames/EA32/dosdevices/c:/windows/system32 /home/pascal/.cache/winetricks/cmd/Q811493_W2K_SP4_X86_EN.exe -F cmd.exe
Using native,builtin override for following DLLs: cmd.exe
Executing wine regedit C:\windows\Temp\_cmd\override-dll.reg
+ wine winecfg
+ rm -f winetricks
+ installOrigin
+ export WINEPREFIX=/home/pascal/SquareGames/EA32
+ WINEPREFIX=/home/pascal/SquareGames/EA32
+ pushd /home/pascal/SquareGames/EA32/drive_c
~/SquareGames/EA32/drive_c ~/Documents/InstallerScript/Origin/Arch Linux
+ wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
--2018-10-21 15:48:27--  https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving origin-a.akamaihd.net (origin-a.akamaihd.net)... 77.109.137.184, 77.109.137.186
Connecting to origin-a.akamaihd.net (origin-a.akamaihd.net)|77.109.137.184|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32326160 (31M) [application/octet-stream]
Saving to: ‘OriginThinSetup.exe’

OriginThinSetup.exe 100%[===================>]  30.83M  21.4MB/s    in 1.4s    

2018-10-21 15:48:28 (21.4 MB/s) - ‘OriginThinSetup.exe’ saved [32326160/32326160]

+ wine start 'C:\OriginThinSetup.exe'
0039:fixme:exec:SHELL_execute flags ignored: 0x00000100
+ rm -f OriginThinSetup.exe
+ popd
~/Documents/InstallerScript/Origin/Arch Linux
So, I hope this the part you'e asking for.

User avatar
Bob Wya
Level 12
Level 12
Posts: 2764
Joined: Sat Oct 16, 2010 7:40 pm
Location: Cambridge
Contact:

Re: WINEPREFIX, WINEARCH and running software

Post by Bob Wya » Mon Oct 22, 2018 6:47 pm

TLbThunder wrote:

Code: Select all

...
+ wine start 'C:\OriginThinSetup.exe'
0039:fixme:exec:SHELL_execute flags ignored: 0x00000100
+ rm -f OriginThinSetup.exe
+ popd
~/Documents/InstallerScript/Origin/Arch Linux
So, I hope this the part you'e asking for.
Yup. That's what I need!
Your problem appears to be essentially a race condition.
You are launching the OriginThinSetup.exe here.
This will spawn off a base wineserver process and various wine processes.
However, then you are immediately deleting OriginThinSetup.exe, whilst wine is still executing this process!

To fix this, you could try:

Code: Select all

...
# Start a wineserver process and fork to the background...
wineserver -f &
# Get the PID for this process...
wineserver_pid=$!
wine start 'C:\OriginThinSetup.exe'
# Send a dummy kill command to our wineserver process - to test if it is still alive...
while kill -0 ${wineserver_pid} 2>/dev/null; do
    sleep 1
done
rm -f OriginThinSetup.exe
...
Bob

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

Re: WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Tue Oct 23, 2018 8:18 am

Hi Bob

The suggested code seems to be working, but only if you run the script at the first time.
If you uninstalled everything using the wine uninstaller, deleted the WINEPREFIX and rerun the script again, the NSIS error appears again.

Here's the output using bash -x

Code: Select all

[archtest@archtest Arch Linux]$ bash -x ./OriginSetup.sh -i
+ pkgname=OriginSetup
+ pkgver=3.0
+ pkgdesc='Installs EA`s Origin on Arch Linux GNU/Linux'
+ license=unknown
+ url=https://github.com/LinuxSquare/Origin
+ depends='lib32-libldap
lib32-gnutls
wget
git'
+ [[ -i = \-\i ]]
+ printf 'Installing required dependencies\n'
Installing required dependencies
+ dependencies
+ sudo pacman -S lib32-libldap lib32-gnutls wget git --noconfirm
warning: lib32-libldap-2.4.46-1 is up to date -- reinstalling
warning: lib32-gnutls-3.5.19-2 is up to date -- reinstalling
warning: wget-1.19.5-1 is up to date -- reinstalling
warning: git-2.19.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (4) git-2.19.1-1  lib32-gnutls-3.5.19-2  lib32-libldap-2.4.46-1  wget-1.19.5-1

Total Installed Size:  40.28 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(4/4) checking keys in keyring                                                  [#############################################] 100%
(4/4) checking package integrity                                                [#############################################] 100%
(4/4) loading package files                                                     [#############################################] 100%
(4/4) checking for file conflicts                                               [#############################################] 100%
(4/4) checking available disk space                                             [#############################################] 100%
:: Processing package changes...
(1/4) reinstalling lib32-libldap                                                [#############################################] 100%
(2/4) reinstalling lib32-gnutls                                                 [#############################################] 100%
(3/4) reinstalling wget                                                         [#############################################] 100%
(4/4) reinstalling git                                                          [#############################################] 100%
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Creating system user accounts...
(3/4) Arming ConditionNeedsUpdate...
(4/4) Updating the info directory file...
+ printf 'Building Wine...\n'
Building Wine...
+ buildwine
+ sudo pacman -Rns wine-staging --noconfirm
checking dependencies...
:: jasper optionally requires glu: jiv support
warning: dependency cycle detected:
warning: lib32-harfbuzz will be removed after its lib32-freetype2 dependency
warning: dependency cycle detected:
warning: lib32-mesa will be removed after its lib32-libglvnd dependency

Packages (47) glu-9.0.0-5  lib32-acl-2.2.53-1  lib32-bzip2-1.0.6-3  lib32-expat-2.2.6-1  lib32-fontconfig-2:2.13.1+12+g5f5ec56-1
              lib32-freetype2-2.9.1-1  lib32-gettext-0.19.8.1-1  lib32-glib2-2.58.1-1  lib32-glu-9.0.0-4  lib32-harfbuzz-2.0.2-1
              lib32-icu-62.1-1  lib32-lcms2-2.9-1  lib32-libdrm-2.4.96-1  lib32-libelf-0.174-1  lib32-libglvnd-1.1.0-1
              lib32-libice-1.0.9-3  lib32-libjpeg-turbo-2.0.0-1  lib32-libnl-3.4.0-1  lib32-libpcap-1.9.0-1
              lib32-libpciaccess-0.14-1  lib32-libpng-1.6.35-1  lib32-libsm-1.2.3-1  lib32-libtiff-4.0.9-1  lib32-libusb-1.0.22-1
              lib32-libx11-1.6.7-1  lib32-libxau-1.0.8-2  lib32-libxcb-1.13.1-1  lib32-libxcursor-1.1.15-1
              lib32-libxdamage-1.1.4-3  lib32-libxdmcp-1.1.2-2  lib32-libxext-1.3.3-2  lib32-libxfixes-5.0.3-1  lib32-libxi-1.7.9-1
              lib32-libxml2-2.9.8-4  lib32-libxrandr-1.5.1-1  lib32-libxrender-0.9.10-1  lib32-libxshmfence-1.3-1
              lib32-libxxf86vm-1.1.4-2  lib32-llvm-libs-7.0.0-1  lib32-lm_sensors-3.4.0-1  lib32-mesa-18.2.3-1  lib32-ncurses-6.1-3
              lib32-pcre-8.42-1  lib32-readline-7.0.005-1  lib32-util-linux-2.32.1-1  lib32-wayland-1.16.0-1  wine-staging-3.18-1

Total Removed Size:  642.92 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
( 1/47) removing wine-staging                                                   [#############################################] 100%
binfmt binary formats will be updated at reboot
( 2/47) removing lib32-libxrandr                                                [#############################################] 100%
( 3/47) removing lib32-libxi                                                    [#############################################] 100%
( 4/47) removing lib32-libxcursor                                               [#############################################] 100%
( 5/47) removing lib32-libxrender                                               [#############################################] 100%
( 6/47) removing lib32-libsm                                                    [#############################################] 100%
( 7/47) removing lib32-libice                                                   [#############################################] 100%
( 8/47) removing lib32-libpcap                                                  [#############################################] 100%
( 9/47) removing lib32-libusb                                                   [#############################################] 100%
(10/47) removing lib32-libnl                                                    [#############################################] 100%
(11/47) removing lib32-lcms2                                                    [#############################################] 100%
(12/47) removing lib32-libtiff                                                  [#############################################] 100%
(13/47) removing lib32-libjpeg-turbo                                            [#############################################] 100%
(14/47) removing lib32-glu                                                      [#############################################] 100%
(15/47) removing lib32-libglvnd                                                 [#############################################] 100%
(16/47) removing lib32-mesa                                                     [#############################################] 100%
(17/47) removing lib32-wayland                                                  [#############################################] 100%
(18/47) removing lib32-lm_sensors                                               [#############################################] 100%
(19/47) removing lib32-llvm-libs                                                [#############################################] 100%
(20/47) removing lib32-libxml2                                                  [#############################################] 100%
(21/47) removing lib32-readline                                                 [#############################################] 100%
(22/47) removing lib32-ncurses                                                  [#############################################] 100%
(23/47) removing lib32-icu                                                      [#############################################] 100%
(24/47) removing lib32-libxxf86vm                                               [#############################################] 100%
(25/47) removing lib32-libxshmfence                                             [#############################################] 100%
(26/47) removing lib32-libelf                                                   [#############################################] 100%
(27/47) removing lib32-libdrm                                                   [#############################################] 100%
(28/47) removing lib32-libpciaccess                                             [#############################################] 100%
(29/47) removing lib32-libxdamage                                               [#############################################] 100%
(30/47) removing lib32-libxfixes                                                [#############################################] 100%
(31/47) removing lib32-libxext                                                  [#############################################] 100%
(32/47) removing lib32-libx11                                                   [#############################################] 100%
(33/47) removing lib32-libxcb                                                   [#############################################] 100%
(34/47) removing lib32-libxdmcp                                                 [#############################################] 100%
(35/47) removing lib32-libxau                                                   [#############################################] 100%
(36/47) removing lib32-gettext                                                  [#############################################] 100%
(37/47) removing lib32-acl                                                      [#############################################] 100%
(38/47) removing lib32-fontconfig                                               [#############################################] 100%
(39/47) removing lib32-expat                                                    [#############################################] 100%
(40/47) removing lib32-freetype2                                                [#############################################] 100%
(41/47) removing lib32-libpng                                                   [#############################################] 100%
(42/47) removing lib32-harfbuzz                                                 [#############################################] 100%
(43/47) removing lib32-glib2                                                    [#############################################] 100%
(44/47) removing lib32-pcre                                                     [#############################################] 100%
(45/47) removing lib32-util-linux                                               [#############################################] 100%
(46/47) removing lib32-bzip2                                                    [#############################################] 100%
(47/47) removing glu                                                            [#############################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Updating the desktop file MIME type cache...
+ sudo pacman -Syu --noconfirm
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do
+ sudo pacman -S wine-staging --noconfirm
resolving dependencies...
:: There are 2 providers available for lib32-libgl:
:: Repository multilib
   1) lib32-libglvnd  2) lib32-nvidia-340xx-utils

Enter a number (default=1): 
looking for conflicting packages...
warning: dependency cycle detected:
warning: lib32-harfbuzz will be installed before its lib32-freetype2 dependency
warning: dependency cycle detected:
warning: lib32-mesa will be installed before its lib32-libglvnd dependency

Packages (47) glu-9.0.0-5  lib32-acl-2.2.53-1  lib32-bzip2-1.0.6-3  lib32-expat-2.2.6-1  lib32-fontconfig-2:2.13.1+12+g5f5ec56-1
              lib32-freetype2-2.9.1-1  lib32-gettext-0.19.8.1-1  lib32-glib2-2.58.1-1  lib32-glu-9.0.0-4  lib32-harfbuzz-2.0.2-1
              lib32-icu-62.1-1  lib32-lcms2-2.9-1  lib32-libdrm-2.4.96-1  lib32-libelf-0.174-1  lib32-libglvnd-1.1.0-1
              lib32-libice-1.0.9-3  lib32-libjpeg-turbo-2.0.0-1  lib32-libnl-3.4.0-1  lib32-libpcap-1.9.0-1
              lib32-libpciaccess-0.14-1  lib32-libpng-1.6.35-1  lib32-libsm-1.2.3-1  lib32-libtiff-4.0.9-1  lib32-libusb-1.0.22-1
              lib32-libx11-1.6.7-1  lib32-libxau-1.0.8-2  lib32-libxcb-1.13.1-1  lib32-libxcursor-1.1.15-1
              lib32-libxdamage-1.1.4-3  lib32-libxdmcp-1.1.2-2  lib32-libxext-1.3.3-2  lib32-libxfixes-5.0.3-1  lib32-libxi-1.7.9-1
              lib32-libxml2-2.9.8-4  lib32-libxrandr-1.5.1-1  lib32-libxrender-0.9.10-1  lib32-libxshmfence-1.3-1
              lib32-libxxf86vm-1.1.4-2  lib32-llvm-libs-7.0.0-1  lib32-lm_sensors-3.4.0-1  lib32-mesa-18.2.3-1  lib32-ncurses-6.1-3
              lib32-pcre-8.42-1  lib32-readline-7.0.005-1  lib32-util-linux-2.32.1-1  lib32-wayland-1.16.0-1  wine-staging-3.18-1

Total Installed Size:  642.92 MiB

:: Proceed with installation? [Y/n] 
(47/47) checking keys in keyring                                                [#############################################] 100%
(47/47) checking package integrity                                              [#############################################] 100%
(47/47) loading package files                                                   [#############################################] 100%
(47/47) checking for file conflicts                                             [#############################################] 100%
(47/47) checking available disk space                                           [#############################################] 100%
:: Processing package changes...
( 1/47) installing lib32-expat                                                  [#############################################] 100%
( 2/47) installing lib32-bzip2                                                  [#############################################] 100%
( 3/47) installing lib32-libpng                                                 [#############################################] 100%
( 4/47) installing lib32-pcre                                                   [#############################################] 100%
( 5/47) installing lib32-util-linux                                             [#############################################] 100%
( 6/47) installing lib32-glib2                                                  [#############################################] 100%
( 7/47) installing lib32-harfbuzz                                               [#############################################] 100%
( 8/47) installing lib32-freetype2                                              [#############################################] 100%
( 9/47) installing lib32-fontconfig                                             [#############################################] 100%
Rebuilding 32-bit fontconfig cache... done.
(10/47) installing lib32-libjpeg-turbo                                          [#############################################] 100%
(11/47) installing lib32-libtiff                                                [#############################################] 100%
(12/47) installing lib32-lcms2                                                  [#############################################] 100%
(13/47) installing lib32-ncurses                                                [#############################################] 100%
(14/47) installing lib32-readline                                               [#############################################] 100%
(15/47) installing lib32-icu                                                    [#############################################] 100%
(16/47) installing lib32-libxml2                                                [#############################################] 100%
(17/47) installing lib32-libxdmcp                                               [#############################################] 100%
(18/47) installing lib32-libxau                                                 [#############################################] 100%
(19/47) installing lib32-libxcb                                                 [#############################################] 100%
(20/47) installing lib32-libx11                                                 [#############################################] 100%
(21/47) installing lib32-libxfixes                                              [#############################################] 100%
(22/47) installing lib32-libxrender                                             [#############################################] 100%
(23/47) installing lib32-libxcursor                                             [#############################################] 100%
(24/47) installing lib32-libxext                                                [#############################################] 100%
(25/47) installing lib32-libxrandr                                              [#############################################] 100%
(26/47) installing lib32-libxdamage                                             [#############################################] 100%
(27/47) installing lib32-libxi                                                  [#############################################] 100%
(28/47) installing lib32-acl                                                    [#############################################] 100%
(29/47) installing lib32-gettext                                                [#############################################] 100%
(30/47) installing glu                                                          [#############################################] 100%
(31/47) installing lib32-libpciaccess                                           [#############################################] 100%
(32/47) installing lib32-libdrm                                                 [#############################################] 100%
(33/47) installing lib32-libxxf86vm                                             [#############################################] 100%
(34/47) installing lib32-libxshmfence                                           [#############################################] 100%
(35/47) installing lib32-lm_sensors                                             [#############################################] 100%
(36/47) installing lib32-libelf                                                 [#############################################] 100%
(37/47) installing lib32-llvm-libs                                              [#############################################] 100%
(38/47) installing lib32-wayland                                                [#############################################] 100%
(39/47) installing lib32-mesa                                                   [#############################################] 100%
Optional dependencies for lib32-mesa
    opengl-man-pages: for the OpenGL API man pages
    lib32-mesa-vdpau: for accelerated video playback
(40/47) installing lib32-libglvnd                                               [#############################################] 100%
(41/47) installing lib32-glu                                                    [#############################################] 100%
(42/47) installing lib32-libice                                                 [#############################################] 100%
(43/47) installing lib32-libsm                                                  [#############################################] 100%
(44/47) installing lib32-libnl                                                  [#############################################] 100%
(45/47) installing lib32-libusb                                                 [#############################################] 100%
(46/47) installing lib32-libpcap                                                [#############################################] 100%
(47/47) installing wine-staging                                                 [#############################################] 100%
Run 'systemctl restart systemd-binfmt' in order to make the wine binfmt available on your system.
Optional dependencies for wine-staging
    giflib [installed]
    lib32-giflib
    libpng [installed]
    lib32-libpng [installed]
    libldap [installed]
    lib32-libldap [installed]
    gnutls [installed]
    lib32-gnutls [installed]
    mpg123
    lib32-mpg123
    openal
    lib32-openal
    v4l-utils [installed]
    lib32-v4l-utils
    libpulse [installed]
    lib32-libpulse
    alsa-plugins [installed]
    lib32-alsa-plugins
    alsa-lib [installed]
    lib32-alsa-lib
    libjpeg-turbo [installed]
    lib32-libjpeg-turbo [installed]
    libxcomposite [installed]
    lib32-libxcomposite
    libxinerama [installed]
    lib32-libxinerama
    ncurses [installed]
    lib32-ncurses [installed]
    opencl-icd-loader
    lib32-opencl-icd-loader
    libxslt [installed]
    lib32-libxslt
    libva [installed]
    lib32-libva
    gtk3 [installed]
    lib32-gtk3
    gst-plugins-base-libs [installed]
    lib32-gst-plugins-base-libs
    vulkan-icd-loader
    lib32-vulkan-icd-loader
    sdl2 [installed]
    lib32-sdl2
    cups
    samba
    dosbox
:: Running post-transaction hooks...
(1/3) Registering binary formats...
(2/3) Arming ConditionNeedsUpdate...
(3/3) Updating the desktop file MIME type cache...
+ printf 'Preparing prefix\n'
Preparing prefix
+ preparePrefix
+ rm -rf /home/archtest/SquareGames/EA32/
+ wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
--2018-10-23 13:13:01--  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 760386 (743K) [text/plain]
Saving to: ‘winetricks’

winetricks                       100%[==========================================================>] 742.56K  1.78MB/s    in 0.4s    

2018-10-23 13:13:01 (1.78 MB/s) - ‘winetricks’ saved [760386/760386]

+ chmod +x winetricks
+ mkdir -p /home/archtest/SquareGames
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ wine
Usage: wine PROGRAM [ARGUMENTS...]   Run the specified program
       wine --help                   Display this help and exit
       wine --version                Output version information and exit
       wine --patches                Output patch information and exit
       wine --check-libs             Checks if shared libs are installed
+ export WINEPREFIX=/home/archtest/SquareGames/EA32
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ rm -rf /home/archtest/SquareGames/EA32
+ WINEARCH=win32
+ wineboot -u
wine: created the configuration directory '/home/archtest/SquareGames/EA32'
000b:fixme:winediag:start_process Wine Staging 3.18 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0012:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0012:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0012:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0012:err:ole:get_local_server_stream Failed: 80004002
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {00000131-0000-0000-c000-000000000046}
0014:err:ole:marshal_object couldn't get IPSFactory buffer for interface {6d5140c1-7436-11ce-8034-00aa006009fa}
0014:err:ole:StdMarshalImpl_MarshalInterface Failed to create ifstub, hres=0x80004002
0014:err:ole:CoMarshalInterface Failed to marshal the interface {6d5140c1-7436-11ce-8034-00aa006009fa}, 80004002
0014:err:ole:get_local_server_stream Failed: 80004002
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"l3codeca.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"mp3dmod.dll": libmpg123.so.0: cannot open shared object file: No such file or directory
0017:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:err:mscoree:LoadLibraryShim error reading registry key for installroot
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0017:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
001b:fixme:msi:internal_ui_handler internal UI not implemented for message 0x0b000000 (UI level = 1)
0010:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0010:fixme:dwmapi:DwmIsCompositionEnabled 0x6d5d3018
001d:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a0cb608, context 0x98b648, init_notify 0, handle 0x119fc88): stub
0010:err:module:load_builtin_dll failed to load .so lib for builtin L"winegstreamer.dll": libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory
wine: configuration in '/home/archtest/SquareGames/EA32' has been updated.
0035:err:module:load_builtin_dll failed to load .so lib for builtin L"l3codeca.acm": libmpg123.so.0: cannot open shared object file: No such file or directory
0035:err:module:load_builtin_dll failed to load .so lib for builtin L"mp3dmod.dll": libmpg123.so.0: cannot open shared object file: No such file or directory
0035:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0035:err:winediag:load_gssapi_krb5 Failed to load libgssapi_krb5, Kerberos SSP support will not be available.
0035:fixme:dwmapi:DwmIsCompositionEnabled 0x6d5d3018
0037:fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x6a0cb608, context 0x98b648, init_notify 0, handle 0x119fc88): stub
0035:err:module:load_builtin_dll failed to load .so lib for builtin L"winegstreamer.dll": libgstvideo-1.0.so.0: cannot open shared object file: No such file or directory
wine: configuration in '/home/archtest/SquareGames/EA32' has been updated.
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ ./winetricks vcrun2010
Using winetricks 20180815-next - sha256sum: 840a5069501a39a66291be885928ffcfe2e96063f61286d91d43056ca896e8de with wine-3.18 (Staging) and WINEARCH=win32
Executing w_do_call vcrun2010
Executing load_vcrun2010 
Using native,builtin override for following DLLs: msvcp100 msvcr100 vcomp100 atl100
Executing wine regedit C:\windows\Temp\_vcrun2010\override-dll.reg
Executing cd /home/archtest/.cache/winetricks/vcrun2010
Executing wine vcredist_x86.exe
0057:fixme:clusapi:GetNodeClusterState ((null),0x32ebc4) stub!
0057:fixme:advapi:DecryptFileA ("c:\\d7e49fe6bdf13cdda4171e34d8d9c43a\\", 00000000): stub
005a:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
005a:err:winediag:load_gssapi_krb5 Failed to load libgssapi_krb5, Kerberos SSP support will not be available.
005a:fixme:ntdll:EtwRegisterTraceGuidsW (0x6cd15f38, 0x6cd20180, {e2821408-c59d-418f-ad3f-aa4e792aeb79}, 1, 0x33e9f0, (null), (null), 0x6cd20188): stub
005a:fixme:ntdll:EtwRegisterTraceGuidsW   register trace class {e2821408-c59d-418f-ad3f-aa4e792aeb79}
005a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
005a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
005a:fixme:thread:SetThreadStackGuarantee (0x33fba8): stub
005a:fixme:advapi:GetWindowsAccountDomainSid (0x33f3f4 0x15cf6c 0x33f3f0): semi-stub
005a:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
005a:fixme:msxml:domdoc_putref_schemas (0x15d928)->(0x33f3f0 {VT_DISPATCH: 0x1af9b4}): semi-stub
005a:fixme:msxml:domdoc_get_readyState stub! (0x15d928)->(0x33f3d8)
005b:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.25"
005b:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
005b:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
005a:fixme:advapi:GetWindowsAccountDomainSid (0x33f244 0x1ef6ec 0x33f240): semi-stub
005a:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
005a:fixme:ntdll:EtwUnregisterTraceGuids deadbeef: stub
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ ./winetricks vcrun2013
Using winetricks 20180815-next - sha256sum: 840a5069501a39a66291be885928ffcfe2e96063f61286d91d43056ca896e8de with wine-3.18 (Staging) and WINEARCH=win32
Executing w_do_call vcrun2013
Executing load_vcrun2013 
Using native,builtin override for following DLLs: atl120 msvcp120 msvcr120 vcomp120
Executing wine regedit C:\windows\Temp\_vcrun2013\override-dll.reg
Executing cd /home/archtest/.cache/winetricks/vcrun2013
Executing wine vcredist_x86.exe
0070:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0070:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0073:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0073:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0073:fixme:advapi:DecryptFileW (L"C:\\users\\archtest\\Temp\\{f65db027-aff3-4070-886a-0d87064aabb1}\\", 00000000): stub
0070:fixme:ole:CoInitializeSecurity (0x32f57c,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
0078:fixme:shell:SHAutoComplete stub
0073:fixme:advapi:DecryptFileW (L"C:\\users\\archtest\\Temp\\{f65db027-aff3-4070-886a-0d87064aabb1}\\", 00000000): stub
0070:fixme:wuapi:automatic_updates_Pause 
0070:fixme:sfc:SRSetRestorePointW 0x32f450 0x32f660
0077:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0077:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
0077:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.28"
0077:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.30"
0077:fixme:wintrust:SOFTPUB_VerifyImageHash Cannot verify hash for pszObjId="1.3.6.1.4.1.311.2.1.28"
0070:fixme:wuapi:automatic_updates_Resume 
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ ./winetricks vcrun2017
Using winetricks 20180815-next - sha256sum: 840a5069501a39a66291be885928ffcfe2e96063f61286d91d43056ca896e8de with wine-3.18 (Staging) and WINEARCH=win32
Executing w_do_call vcrun2017
Executing load_vcrun2017 
------------------------------------------------------
Working around wine bug 37781 
------------------------------------------------------
------------------------------------------------------
This may fail in non-XP mode, see https://bugs.winehq.org/show_bug.cgi?id=37781
------------------------------------------------------
Using native,builtin override for following DLLs: api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcr140 ucrtbase vcomp140 vcruntime140
Executing wine regedit C:\windows\Temp\_vcrun2017\override-dll.reg
Setting Windows version to winxp
Executing wine regedit C:\windows\Temp\_vcrun2017\set-winver.reg
------------------------------------------------------
Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/archtest/SquareGames/EA32 terminate
------------------------------------------------------
Executing cd /home/archtest/.cache/winetricks/vcrun2017
Executing wine VC_redist.x86.exe
000b:fixme:winediag:start_process Wine Staging 3.18 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
0009:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002a:fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub
002a:fixme:advapi:DecryptFileW (L"C:\\users\\archtest\\Temp\\{404c9c27-8377-4fd1-b607-7ca635db4e49}\\", 00000000): stub
0009:fixme:ole:CoInitializeSecurity (0x32f574,-1,(nil),(nil),6,2,(nil),12288,(nil)) - stub!
002e:fixme:shell:SHAutoComplete stub
002e:err:richedit:ReadColorTbl malformed entry
002e:err:richedit:ReadColorTbl malformed entry
002e:err:richedit:ReadColorTbl malformed entry
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002e:err:richedit:ReadStyleSheet skipping optional destination
002a:fixme:advapi:DecryptFileW (L"C:\\users\\archtest\\Temp\\{404c9c27-8377-4fd1-b607-7ca635db4e49}\\", 00000000): stub
0009:fixme:wuapi:automatic_updates_Pause 
0009:fixme:sfc:SRSetRestorePointW 0x32f448 0x32f658
0009:fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
0009:fixme:wuapi:automatic_updates_Resume 
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ ./winetricks d3dx9
Using winetricks 20180815-next - sha256sum: 840a5069501a39a66291be885928ffcfe2e96063f61286d91d43056ca896e8de with wine-3.18 (Staging) and WINEARCH=win32
Executing w_do_call d3dx9
Executing load_d3dx9 
------------------------------------------------------
Cannot find cabextract.  Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ wine winecfg
+ rm -f winetricks
+ printf 'Installing Origin\n'
Installing Origin
+ installOrigin
+ export WINEPREFIX=/home/archtest/SquareGames/EA32
+ WINEPREFIX=/home/archtest/SquareGames/EA32
+ pushd /home/archtest/SquareGames/EA32/drive_c
~/SquareGames/EA32/drive_c ~/Downloads/Origin/Arch Linux
+ wget https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
--2018-10-23 13:13:44--  https://origin-a.akamaihd.net/Origin-Client-Download/origin/legacy/OriginThinSetup.exe
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Resolving origin-a.akamaihd.net (origin-a.akamaihd.net)... 77.109.137.186, 77.109.137.184
Connecting to origin-a.akamaihd.net (origin-a.akamaihd.net)|77.109.137.186|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32326160 (31M) [application/octet-stream]
Saving to: ‘OriginThinSetup.exe’

OriginThinSetup.exe              100%[==========================================================>]  30.83M  12.8MB/s    in 2.4s    

2018-10-23 13:13:47 (12.8 MB/s) - ‘OriginThinSetup.exe’ saved [32326160/32326160]

+ wineserver_pid=25517
+ wine start 'C:\OriginThinSetup.exe'
+ wineserver -f
0042:fixme:exec:SHELL_execute flags ignored: 0x00000100
+ kill -0 25517
+ rm -f OriginThinSetup.exe
+ popd
~/Downloads/Origin/Arch Linux
I hope you can help me a little further, because It's pretty annoying if someone has to reinstall Origin and the error appears.

Yours sincerely
TLb

TLbThunder
Level 2
Level 2
Posts: 11
Joined: Fri Apr 06, 2018 10:15 am

[SOLVED] WINEPREFIX, WINEARCH and running software

Post by TLbThunder » Mon Feb 11, 2019 1:03 pm

Hi there
Forget to set this thread to [SOLVED]

Problem was, I had to create a manual break inside my script.
Now it's working perfectly.

Updated script is on my Github page.

Yours Sincerely
TLb Thunder

Post Reply