Installer battlefield-bad-company-2-dvd

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.

game:
  arch: win32
  exe: $GAMEDIR/drive_c/Program Files/Electronic Arts/Battlefield Bad Company 2/BFBC2Updater.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    requires: Setup.exe
- task:
    arch: win32
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: win7
    arch: win32
    description: Changing to Windows 7
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: d3dx9
    arch: win32
    description: Installing d3dx9
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: vcrun2005
    arch: win32
    description: Installing VisualC++ Runtime vcrun2005
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: vcrun2008
    arch: win32
    description: Installing VisualC++ Runtime vcrun2008
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: vcrun2010
    arch: win32
    description: Installing VisualC++ Runtime vcrun2010
    name: winetricks
    prefix: $GAMEDIR
- task:
    executable: $DISC/Autorun.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win32
    key: wined3d
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllRedirects
    prefix: $GAMEDIR
    value: wined3d-csmt.dll
- write_config:
    file: $GAMEDIR/drive_c/users/$USER/My Documents/BFBC2/settings.ini
    key: bBackgroundMouse
    section: Controls
    value: '1'
- write_config:
    file: $GAMEDIR/drive_c/users/$USER/My Documents/BFBC2/settings.ini
    key: DxVersion
    section: Graphics
    value: 9
{
  "game": {
    "arch": "win32",
    "exe": "$GAMEDIR/drive_c/Program Files/Electronic Arts/Battlefield Bad Company 2/BFBC2Updater.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "insert-disc": {
        "requires": "Setup.exe"
      }
    },
    {
      "task": {
        "arch": "win32",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "win7",
        "arch": "win32",
        "description": "Changing to Windows 7",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "d3dx9",
        "arch": "win32",
        "description": "Installing d3dx9",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "vcrun2005",
        "arch": "win32",
        "description": "Installing VisualC++ Runtime vcrun2005",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "vcrun2008",
        "arch": "win32",
        "description": "Installing VisualC++ Runtime vcrun2008",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "vcrun2010",
        "arch": "win32",
        "description": "Installing VisualC++ Runtime vcrun2010",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "executable": "$DISC/Autorun.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "wined3d",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllRedirects",
        "prefix": "$GAMEDIR",
        "value": "wined3d-csmt.dll"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/BFBC2/settings.ini",
        "key": "bBackgroundMouse",
        "section": "Controls",
        "value": "1"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/BFBC2/settings.ini",
        "key": "DxVersion",
        "section": "Graphics",
        "value": 9
      }
    }
  ]
}
Back to game