This is how I did it and let me know please if there is smarter way.
From the core I learned that the install is using maintenance theme or 'seven' if none defined. So I created a new 'my_install' sub-theme. Seven theme is its base theme. I replaced the logo.png with my site's logo, created template.php and added hook_form_alter() to it to unset the Standard and Minimum profiles:
function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }
function my_install_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'install_select_profile_form') { $form['profile']['My profile']['#attributes'] = array('checked' => 'checked'); unset($form['profile']['Standard']); unset($form['profile']['Minimal']); } }
Now to make install to use my_installmy_install theme I changed
settings.php
anddefault.settings.php
by adding to both$conf['maintenance_theme'] = 'my_install';
$conf['maintenance_theme'] = 'my_install';
that is it.