Installer ballance-32-bit

files:
- bonuslevel: https://web.archive.org/web/20070928022817if_/http://www.ballance.org/movies4/SuDu__BallanceLv13.zip
game:
  arch: win32
  exe: drive_c/Ballance/Bin/Player.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    description: Insert Ballance
    requires: Ballance.ico
- input_menu:
    description: Apply No-CD patch to the game?
    id: NOCD
    options:
    - 'true': 'Yes'
    - 'false': 'No'
    preselect: 'true'
- input_menu:
    description: Choose the game's language
    id: LANG
    options:
    - 0009: English
    - 040c: French
    - '0007': German
    - '0010': Italian
    - 000a: Spanish
    preselect: 0009
- input_menu:
    description: Choose the game's resolution
    id: RESOLUTION
    options:
    - 028001e0: 640 x 480
    - 03200258: 800 x 600
    - 1048768: 1024 x 768
    - 050003c0: 1280 x 960
    - 064004b0: 1600 x 1200
    preselect: 064004b0
- write_file:
    content: '[InstallShield Silent]

      Version=v6.00.000

      File=Response File

      [File Transfer]

      OverwrittenReadOnly=NoToAll

      [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-DlgOrder]

      Dlg0={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0

      Count=4

      Dlg1={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0

      Dlg2={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0

      Dlg3={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0

      [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0]

      Result=1

      [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0]

      szDir=C:\Ballance

      Result=1

      [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0]

      szFolder=Ballance

      Result=1

      [Application]

      Name=Ballance

      Version=1.13.000

      Company=Cyparade

      Lang=$INPUT_LANG

      [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0]

      Result=1

      bOpt1=0

      bOpt2=0

      '
    file: $GAMEDIR/drive_c/ballance_silent.iss
- task:
    args: /L$INPUT_LANG /s /f1"C:\\ballance_silent.iss"
    description: Installing game data. Close the launcher when it opens.
    executable: $DISC/Setup/Setup.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    key: FullScreen
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Ballance\Settings
    type: REG_DWORD
    value: '00000000'
- task:
    key: VideoMode
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Ballance\Settings
    type: REG_DWORD
    value: $INPUT_RESOLUTION
- move:
    dst: $CACHE/ballance_silent.iss
    src: $GAMEDIR/drive_c/ballance_silent.iss
- execute:
    command: '$INPUT_NOCD &&  cp $GAMEDIR/drive_c/Ballance/Bin/Player.exe $GAMEDIR/drive_c/Ballance/Bin/Player-bak.exe
      &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe bs=1
      seek=5638 count=2 conv=notrunc &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe
      bs=1 seek=5657 count=2 conv=notrunc &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe
      bs=1 seek=5717 count=2 conv=notrunc

      '
- extract:
    dst: $GAMEDIR/drive_c/Ballance
    file: bonuslevel
description: null
game_slug: ballance
gogslug: ballance
humblestoreid: ''
installer_slug: ballance-32-bit
name: Ballance
notes: The game's launcher will open after the game data is installed. The launcher
  must be manually closed when it opens.
runner: wine
script:
  files:
  - bonuslevel: https://web.archive.org/web/20070928022817if_/http://www.ballance.org/movies4/SuDu__BallanceLv13.zip
  game:
    arch: win32
    exe: drive_c/Ballance/Bin/Player.exe
    prefix: $GAMEDIR
  installer:
  - insert-disc:
      description: Insert Ballance
      requires: Ballance.ico
  - input_menu:
      description: Apply No-CD patch to the game?
      id: NOCD
      options:
      - 'true': 'Yes'
      - 'false': 'No'
      preselect: 'true'
  - input_menu:
      description: Choose the game's language
      id: LANG
      options:
      - 0009: English
      - 040c: French
      - '0007': German
      - '0010': Italian
      - 000a: Spanish
      preselect: 0009
  - input_menu:
      description: Choose the game's resolution
      id: RESOLUTION
      options:
      - 028001e0: 640 x 480
      - 03200258: 800 x 600
      - 1048768: 1024 x 768
      - 050003c0: 1280 x 960
      - 064004b0: 1600 x 1200
      preselect: 064004b0
  - write_file:
      content: '[InstallShield Silent]

        Version=v6.00.000

        File=Response File

        [File Transfer]

        OverwrittenReadOnly=NoToAll

        [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-DlgOrder]

        Dlg0={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0

        Count=4

        Dlg1={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0

        Dlg2={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0

        Dlg3={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0

        [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0]

        Result=1

        [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0]

        szDir=C:\Ballance

        Result=1

        [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0]

        szFolder=Ballance

        Result=1

        [Application]

        Name=Ballance

        Version=1.13.000

        Company=Cyparade

        Lang=$INPUT_LANG

        [{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0]

        Result=1

        bOpt1=0

        bOpt2=0

        '
      file: $GAMEDIR/drive_c/ballance_silent.iss
  - task:
      args: /L$INPUT_LANG /s /f1"C:\\ballance_silent.iss"
      description: Installing game data. Close the launcher when it opens.
      executable: $DISC/Setup/Setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      key: FullScreen
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Ballance\Settings
      type: REG_DWORD
      value: '00000000'
  - task:
      key: VideoMode
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Ballance\Settings
      type: REG_DWORD
      value: $INPUT_RESOLUTION
  - move:
      dst: $CACHE/ballance_silent.iss
      src: $GAMEDIR/drive_c/ballance_silent.iss
  - execute:
      command: '$INPUT_NOCD &&  cp $GAMEDIR/drive_c/Ballance/Bin/Player.exe $GAMEDIR/drive_c/Ballance/Bin/Player-bak.exe
        &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe bs=1
        seek=5638 count=2 conv=notrunc &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe
        bs=1 seek=5657 count=2 conv=notrunc &&  printf ''\x90\x90'' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe
        bs=1 seek=5717 count=2 conv=notrunc

        '
  - extract:
      dst: $GAMEDIR/drive_c/Ballance
      file: bonuslevel
slug: ballance-32-bit
steamid: null
version: 32 bit
year: 2004
{
  "game_slug": "ballance",
  "version": "32 bit",
  "description": null,
  "notes": "The game's launcher will open after the game data is installed. The launcher must be manually closed when it opens.",
  "name": "Ballance",
  "year": 2004,
  "steamid": null,
  "gogslug": "ballance",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "ballance-32-bit",
  "installer_slug": "ballance-32-bit",
  "script": {
    "files": [
      {
        "bonuslevel": "https://web.archive.org/web/20070928022817if_/http://www.ballance.org/movies4/SuDu__BallanceLv13.zip"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "drive_c/Ballance/Bin/Player.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "insert-disc": {
          "description": "Insert Ballance",
          "requires": "Ballance.ico"
        }
      },
      {
        "input_menu": {
          "description": "Apply No-CD patch to the game?",
          "id": "NOCD",
          "options": [
            {
              "true": "Yes"
            },
            {
              "false": "No"
            }
          ],
          "preselect": "true"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language",
          "id": "LANG",
          "options": [
            {
              "0009": "English"
            },
            {
              "040c": "French"
            },
            {
              "0007": "German"
            },
            {
              "0010": "Italian"
            },
            {
              "000a": "Spanish"
            }
          ],
          "preselect": "0009"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's resolution",
          "id": "RESOLUTION",
          "options": [
            {
              "028001e0": "640 x 480"
            },
            {
              "03200258": "800 x 600"
            },
            {
              "1048768": "1024 x 768"
            },
            {
              "050003c0": "1280 x 960"
            },
            {
              "064004b0": "1600 x 1200"
            }
          ],
          "preselect": "064004b0"
        }
      },
      {
        "write_file": {
          "content": "[InstallShield Silent]\nVersion=v6.00.000\nFile=Response File\n[File Transfer]\nOverwrittenReadOnly=NoToAll\n[{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-DlgOrder]\nDlg0={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0\nCount=4\nDlg1={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0\nDlg2={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0\nDlg3={42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0\n[{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdWelcome-0]\nResult=1\n[{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdAskDestPath-0]\nszDir=C:\\Ballance\nResult=1\n[{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdSelectFolder-0]\nszFolder=Ballance\nResult=1\n[Application]\nName=Ballance\nVersion=1.13.000\nCompany=Cyparade\nLang=$INPUT_LANG\n[{42E0783D-3BA4-454B-B58A-BF26E49EB7DE}-SdFinish-0]\nResult=1\nbOpt1=0\nbOpt2=0\n",
          "file": "$GAMEDIR/drive_c/ballance_silent.iss"
        }
      },
      {
        "task": {
          "args": "/L$INPUT_LANG /s /f1\"C:\\\\ballance_silent.iss\"",
          "description": "Installing game data. Close the launcher when it opens.",
          "executable": "$DISC/Setup/Setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "key": "FullScreen",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Ballance\\Settings",
          "type": "REG_DWORD",
          "value": "00000000"
        }
      },
      {
        "task": {
          "key": "VideoMode",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Ballance\\Settings",
          "type": "REG_DWORD",
          "value": "$INPUT_RESOLUTION"
        }
      },
      {
        "move": {
          "dst": "$CACHE/ballance_silent.iss",
          "src": "$GAMEDIR/drive_c/ballance_silent.iss"
        }
      },
      {
        "execute": {
          "command": "$INPUT_NOCD &&  cp $GAMEDIR/drive_c/Ballance/Bin/Player.exe $GAMEDIR/drive_c/Ballance/Bin/Player-bak.exe &&  printf '\\x90\\x90' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe bs=1 seek=5638 count=2 conv=notrunc &&  printf '\\x90\\x90' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe bs=1 seek=5657 count=2 conv=notrunc &&  printf '\\x90\\x90' | dd of=$GAMEDIR/drive_c/Ballance/Bin/Player.exe bs=1 seek=5717 count=2 conv=notrunc\n"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Ballance",
          "file": "bonuslevel"
        }
      }
    ]
  }
}
Back to game