Installer plants-vs-zombies-game-of-the-origin

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
- origin: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine Prefix...
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: nocrashdialog d3dcompiler_43 d3dx9
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin... Login window will pop-up and close.
    exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
      QtWebEngineProcess.exe
    executable: origin
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Spoofing AMD RX 550...
    key: VideoPciVendorID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 1002
- task:
    arch: win64
    description: Spoofing AMD RX 550...
    key: VideoPciDeviceID
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D
    prefix: $GAMEDIR
    type: REG_DWORD
    value: 699f
- task:
    name: winekill
    prefix: $GAMEDIR
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
wine:
  version: tkg-4.0-x86_64
{
  "wine": {
    "version": "tkg-4.0-x86_64"
  },
  "game": {
    "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
    "arch": "win64",
    "prefix": "$GAMEDIR"
  },
  "files": [
    {
      "updater": "https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh"
    },
    {
      "origin": "https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe"
    }
  ],
  "installer": [
    {
      "task": {
        "name": "create_prefix",
        "description": "Creating Wine Prefix...",
        "arch": "win64",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "nocrashdialog d3dcompiler_43 d3dx9",
        "name": "winetricks",
        "arch": "win64",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "executable": "origin",
        "prefix": "$GAMEDIR",
        "args": "/silent",
        "name": "wineexec",
        "description": "Installing Origin... Login window will pop-up and close.",
        "arch": "win64",
        "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "value": 1002,
        "prefix": "$GAMEDIR",
        "name": "set_regedit",
        "arch": "win64",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "type": "REG_DWORD",
        "description": "Spoofing AMD RX 550...",
        "key": "VideoPciVendorID"
      }
    },
    {
      "task": {
        "value": "699f",
        "prefix": "$GAMEDIR",
        "name": "set_regedit",
        "arch": "win64",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D",
        "type": "REG_DWORD",
        "description": "Spoofing AMD RX 550...",
        "key": "VideoPciDeviceID"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
        "src": "updater"
      }
    }
  ]
}
Back to game