the installers don't do much besides create the config.php file (besides some sanity checks too)
So create /configure that and put it into the directory before / after unzipping and it won't attempt to ask you anything
Here's a demo config.php file.
<?php return array (
'debug' => true,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'databasename',
'username' => 'databaseusername',
'password' => 'databasepassword',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => false,
),
'url' => 'siteurl',
'paths' =>
array (
'api' => 'api',
'admin' => 'admin',
),
);