INSTALL_PATH=~/eap-installer-test-$RANDOM-$RANDOM-cli-start-server
echo "$INSTALL_PATH" > INSTALL_PATH
commands=(
    'key Return'       # langpacks chooser panel
    'key 1'            # license panel
    'key Return'       # licence panel -- accept
    'str '${INSTALL_PATH}''   # target panel
    'key Return'       # target panel -- accept
    'key 1'            # target panel
    'key Return'       # target panel -- accept
    #  Uncomment the next 2 lines if installing in a non-empty folder
    #  'key 1'            # target panel
    #  'key Return'       # target panel -- accept
    'key Return'       # User input -- admin name
    'str ad'           # User input -- admin password
    'key Return'       # User input -- admin password accept
    'str ad'           # User input -- admin password repeat
    'key Return'       # User input -- admin password repeat accept
    'key 1'            # User input
    'key Return'       # User input accept
    'key Return'       # JDK path
    'key 1'            # JDK path
    'key Return'       # JDK path accept
    'key Return'       # Quickstarts Installation
    'key 1'            # Quickstarts Installation
    'key Return'       # Quickstarts accept
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key Return'       # TreePacks
    'key 1'            # TreePacks
    'key Return'       # TreePacks accept
    'key Return'       # Socket Binding setup
    'key 1'            # Socket Binding setup
    'key Return'       # Socket Binding setup accept
    'key 0'            # Server Startup -- start server standalone
    'key Return'       # Server Startup
    'key 1'            # Server Startup -- launch the browser
    'key Return'       # Server Startup
    'key 1'            # Server Startup continue
    'key Return'       # Server Startup
    'counter 5'       # Wait for it to install
    'str y'            # generate automatic installation script
    'key Return'       # Automatic Installation Script
    'key Return'       # Automatic Installation Script
)
