You might have faced such situation while installing magento on XAMPP 1.7.x .Here is a simple solution for you.
Edit xampp/php/php.ini
Change the line
;extension=php_curl.dll
to
extension=php_curl.dll
Just remove the ; before the line and restart your server before you install the magento.