Installer call-of-duty-2-cd

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:
- patch13: http://www.callofdutyview.net/files/patches/cod2-v1.3.zip
game:
  arch: win32
  exe: drive_c/Program Files/Activision/Call of Duty 2/CoD2SP_s.exe
  prefix: $GAMEDIR
installer:
- task:
    name: create_prefix
    prefix: $GAMEDIR
- insert-disc:
    description: Insert disc 1
    requires: setup.exe
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC
    src: $DISC
- insert-disc:
    description: Insert disc 2
    requires: Setup/Data/main/iw_02.iwd
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/
    src: $DISC/Setup/Data/main/
- insert-disc:
    description: Insert disc 3
    requires: Setup/Data/main/iw_07.iwd
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/
    src: $DISC/Setup/Data/main/
- insert-disc:
    description: Insert disc 4
    requires: Setup/Data/main/iw_12.iwd
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/
    src: $DISC/Setup/Data/main/
- insert-disc:
    description: Insert disc 5
    requires: autorun.inf
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/
    src: $DISC/Setup/Data/main/
- insert-disc:
    description: Insert disc 6
    requires: Launch.ini
- merge:
    dst: $GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/
    src: $DISC/Setup/Data/main/
- extract:
    description: Extracting the patch
    dst: $GAMEDIR/drive_c/patch13
    file: patch13
- task:
    description: Running the installer. Choose Typical. The installer will crash,
      you'll have to end the process "cod2.exe" using a task manager, or else the
      process will not procead.
    exclude_processes: cod2.exe
    executable: $GAMEDIR/drive_c/COD2_DISC/setup.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Running the 1.3 Patch.
    executable: $GAMEDIR/drive_c/patch13/cod2-v1.3.exe
    name: wineexec
    prefix: $GAMEDIR
{
  "files": [
    {
      "patch13": "http://www.callofdutyview.net/files/patches/cod2-v1.3.zip"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/Program Files/Activision/Call of Duty 2/CoD2SP_s.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 1",
        "requires": "setup.exe"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC",
        "src": "$DISC"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 2",
        "requires": "Setup/Data/main/iw_02.iwd"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/",
        "src": "$DISC/Setup/Data/main/"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 3",
        "requires": "Setup/Data/main/iw_07.iwd"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/",
        "src": "$DISC/Setup/Data/main/"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 4",
        "requires": "Setup/Data/main/iw_12.iwd"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/",
        "src": "$DISC/Setup/Data/main/"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 5",
        "requires": "autorun.inf"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/",
        "src": "$DISC/Setup/Data/main/"
      }
    },
    {
      "insert-disc": {
        "description": "Insert disc 6",
        "requires": "Launch.ini"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/COD2_DISC/Setup/Data/main/",
        "src": "$DISC/Setup/Data/main/"
      }
    },
    {
      "extract": {
        "description": "Extracting the patch",
        "dst": "$GAMEDIR/drive_c/patch13",
        "file": "patch13"
      }
    },
    {
      "task": {
        "description": "Running the installer. Choose Typical. The installer will crash, you'll have to end the process \"cod2.exe\" using a task manager, or else the process will not procead.",
        "exclude_processes": "cod2.exe",
        "executable": "$GAMEDIR/drive_c/COD2_DISC/setup.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Running the 1.3 Patch.",
        "executable": "$GAMEDIR/drive_c/patch13/cod2-v1.3.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    }
  ]
}
Back to game