[Solved] Install script for Rayman Origins

Hello,

I need help, this a script I wrote for Lutris to install Rayman Origins from Lutris:

files:
- setup: N/A:Select the GOG setup exe
game:
  arch: win64
  exe: drive_c/GOG Games/Rayman Origins/Rayman Origins.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    args: /SP- /SUPPRESSMSGBOXES
    description: Installing Rayman Origins
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
- execute:
    file: drive_c/GOG Games/Rayman Origins/language_setup.exe

First thing: I would like Lutris install winetricks stuff before to begin install
Second: At the end of the install, when I quit the setup, I would like to launch the language program for the user to choose his preferred language.

For the moment winetricks executed after Rayman install and at the end Lutris can not find the language_setup.exe file.

How to change my script to obtain this result?
Thanks.

Lutris tasks/commands are ordered to run winetricks before running the setup just call it before that. execute is used for Linux commands you want to do wineexec for the language setup since it’s a Windows executable.

files:
- setup: N/A:Select the GOG setup exe
game:
  arch: win64
  exe: drive_c/GOG Games/Rayman Origins/Rayman Origins.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /SP- /SUPPRESSMSGBOXES
    description: Installing Rayman Origins
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Select your preferred language
    executable: $GAMEDIR/drive_c/GOG Games/Rayman Origins/language_setup.exe
    name: wineexec
    prefix: $GAMEDIR

It works! Thank you.