Installer civilization-iv-gog

files:
- gogsetup: N/A:Please select the game Windows install file, available for  download
    from your GOG account page
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bat
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bmp
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/clean.sh
- cfgfile: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/CivilizationIV.ini
game:
  arch: win32
  args: c:\\c4ce.bat
  exe: drive_c/windows/system32/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE/innoextract
    file: inno
- execute:
    args: --extract --gog $gogsetup --output-dir "$GAMEDIR/drive_c/GOG Games"
    file: $CACHE/innoextract/innoextract
- copy:
    dst: $GAMEDIR/drive_c
    src: wpp
- copy:
    dst: $GAMEDIR/drive_c
    src: menu
- task:
    app: vcrun2003 msxml3 win7
    arch: win32
    name: winetricks
    prefix: $GAMEDIR
- input_menu:
    description: 'Please choose game''s language:'
    id: LANG
    options:
    - 0: English
    - 1: French
    - 2: German
    - 3: Italian
    - 4: Spanish
    preselect: 0
- merge:
    dst: $GAMEDIR/drive_c/tmp
    src: cfgfile
- chmodx: script
- execute:
    args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT $INPUT_LANG
    file: script
- task:
    arch: win32
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\c4ce.bmp
- task:
    arch: win32
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win32
    key: ActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win32
    key: InactiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win32
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 225 10 10
- task:
    arch: win32
    key: GradientInactiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 225 10 10
require-binaries: unrar
wine:
  Desktop: true
description: '"Sid Meier''s Civilization IV - The Complete Edition" using Wine.'
game_slug: sid-meiers-civilization-iv
gogslug: sid_meiers_civilization_iv_the_complete_edition
humblestoreid: ''
installer_slug: civilization-iv-gog
name: Civilization IV
notes: '- You have to install unrar binary before to launch this installer'
runner: wine
script:
  files:
  - gogsetup: N/A:Please select the game Windows install file, available for  download
      from your GOG account page
  - inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
  - menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bat
  - wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bmp
  - script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/clean.sh
  - cfgfile: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/CivilizationIV.ini
  game:
    arch: win32
    args: c:\\c4ce.bat
    exe: drive_c/windows/system32/wineconsole.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win32
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE/innoextract
      file: inno
  - execute:
      args: --extract --gog $gogsetup --output-dir "$GAMEDIR/drive_c/GOG Games"
      file: $CACHE/innoextract/innoextract
  - copy:
      dst: $GAMEDIR/drive_c
      src: wpp
  - copy:
      dst: $GAMEDIR/drive_c
      src: menu
  - task:
      app: vcrun2003 msxml3 win7
      arch: win32
      name: winetricks
      prefix: $GAMEDIR
  - input_menu:
      description: 'Please choose game''s language:'
      id: LANG
      options:
      - 0: English
      - 1: French
      - 2: German
      - 3: Italian
      - 4: Spanish
      preselect: 0
  - merge:
      dst: $GAMEDIR/drive_c/tmp
      src: cfgfile
  - chmodx: script
  - execute:
      args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT $INPUT_LANG
      file: script
  - task:
      arch: win32
      key: wallpaper
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Desktop\
      prefix: $GAMEDIR
      type: REG_SZ
      value: c:\\c4ce.bmp
  - task:
      arch: win32
      key: background
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  - task:
      arch: win32
      key: ActiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  - task:
      arch: win32
      key: InactiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  - task:
      arch: win32
      key: GradientActiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 225 10 10
  - task:
      arch: win32
      key: GradientInactiveTitle
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 225 10 10
  require-binaries: unrar
  wine:
    Desktop: true
slug: civilization-iv-gog
steamid: 3900
version: GOG
year: 2005
{
  "game_slug": "sid-meiers-civilization-iv",
  "version": "GOG",
  "description": "\"Sid Meier's Civilization IV - The Complete Edition\" using Wine.",
  "notes": "- You have to install unrar binary before to launch this installer",
  "name": "Civilization IV",
  "year": 2005,
  "steamid": 3900,
  "gogslug": "sid_meiers_civilization_iv_the_complete_edition",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "civilization-iv-gog",
  "installer_slug": "civilization-iv-gog",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the game Windows install file, available for  download from your GOG account page"
      },
      {
        "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz"
      },
      {
        "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bat"
      },
      {
        "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/c4ce.bmp"
      },
      {
        "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/clean.sh"
      },
      {
        "cfgfile": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Sid%20Meier's%20Civilization%20IV%20-%20The%20Complete%20Edition/CivilizationIV.ini"
      }
    ],
    "game": {
      "arch": "win32",
      "args": "c:\\\\c4ce.bat",
      "exe": "drive_c/windows/system32/wineconsole.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win32",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/innoextract",
          "file": "inno"
        }
      },
      {
        "execute": {
          "args": "--extract --gog $gogsetup --output-dir \"$GAMEDIR/drive_c/GOG Games\"",
          "file": "$CACHE/innoextract/innoextract"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c",
          "src": "wpp"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c",
          "src": "menu"
        }
      },
      {
        "task": {
          "app": "vcrun2003 msxml3 win7",
          "arch": "win32",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "input_menu": {
          "description": "Please choose game's language:",
          "id": "LANG",
          "options": [
            {
              "0": "English"
            },
            {
              "1": "French"
            },
            {
              "2": "German"
            },
            {
              "3": "Italian"
            },
            {
              "4": "Spanish"
            }
          ],
          "preselect": 0
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/tmp",
          "src": "cfgfile"
        }
      },
      {
        "chmodx": "script"
      },
      {
        "execute": {
          "args": "$RESOLUTION_WIDTH $RESOLUTION_HEIGHT $INPUT_LANG",
          "file": "script"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "wallpaper",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "c:\\\\c4ce.bmp"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "background",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "ActiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "InactiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "GradientActiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "225 10 10"
        }
      },
      {
        "task": {
          "arch": "win32",
          "key": "GradientInactiveTitle",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "225 10 10"
        }
      }
    ],
    "require-binaries": "unrar",
    "wine": {
      "Desktop": true
    }
  }
}
Back to game