1. Stop all services
2. Use the Windows install clean up tool to uninstall the SQL 2005 component.
3.use srvinstw.exe to delete all SQL services
4. Clear the Registry
A. Delete all Microsoft SQL Server folders under HKEY_CURRENT_USER --- software ---- Microsoft
B. Delete all Microsoft SQL native client, Microsoft SQL Server, and Microsoft SQL Server 2005 redist under HKEY_LOCAL_MACHINE --- software --- Microsoft.
5. Delete residual files
Delete the Microsoft SQL Server folder under drive c -- program file.
6. Restart your computer and reinstall it.
========================================================== ========================================================
Or
Http://blog.csdn.net/limeiyu/archive/2008/09/02/2868424.aspx
When SQL Server 2008 is installed on Windows 7, you cannot call invoke or begininvoke on the control before creating a window handle.
In fact, there is a simple way to disable the firewall.
The attached figure indicates that the deletion process must be deleted.