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

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
description: You have to install Plant vs. Zombies game in origin game library manually,
  the script only setup the enviroment for you to download and install the game. It
  only have minimum configuration, so no promise to run any game other than PvZ from
  origin store.
game_slug: plants-vs-zombies-game-of-the-year
gogslug: ''
humblestoreid: ''
installer_slug: plants-vs-zombies-game-of-the-origin
name: 'Plants vs. Zombies: Game of the Year Edition'
notes: "nocrashdialog d3dcompiler_43 d3dx9 in winetricks\r\nbasicly a rip-off from\
  \ the-sims-4-origin-d9vk script without d9vk stuff"
runner: wine
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
slug: plants-vs-zombies-game-of-the-origin
steamid: 3590
version: Origin
year: 2009
{
  "game_slug": "plants-vs-zombies-game-of-the-year",
  "version": "Origin",
  "description": "You have to install Plant vs. Zombies game in origin game library manually, the script only setup the enviroment for you to download and install the game. It only have minimum configuration, so no promise to run any game other than PvZ from origin store.",
  "notes": "nocrashdialog d3dcompiler_43 d3dx9 in winetricks\r\nbasicly a rip-off from the-sims-4-origin-d9vk script without d9vk stuff",
  "name": "Plants vs. Zombies: Game of the Year Edition",
  "year": 2009,
  "steamid": 3590,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "plants-vs-zombies-game-of-the-origin",
  "installer_slug": "plants-vs-zombies-game-of-the-origin",
  "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"
        }
      }
    ]
  }
}
Back to game