Access to install.php on existing installation I've created an installation profile.
Once the site is created and I return to install.php I can restart the installation profile. How can the install.php file be blocked so that the Drupal already installed message is shown?
When the standard profile is used 3 variables are set in the variable table:

install_profile     s:8:"standard";
install_task     s:4:"done";
install_time     i:1323783143;

When I look at the variables table after I run my custom installation profile only one variable is set as:

install_task    s:23:"install_profile_modules";


What's the correct way to set these variables?
The issue is caused by a module that's enabled with the installation profile using the drupal_goto function on hook_user_login.

This function ends the request, therefore the profile doesn't go to the page showing 'Visit your new site'.
It goes to the URL provided in drupal_goto instead and variables are not set because the function install_finished() was never called.