How to uninstall Microsoft Office SharePoint Server 2007 if you accidently deleted IIS first

So you’ve gone to uninstall SharePoint and you find that someone has removed IIS first. You go to Add/Remove programs and select uninstall for SharePoint but it fails with an error message “Error 1920.Service 'W3SVC' (W3SVC) failed to start. Verify that you have sufficient privileges to start system services”. No kidding, there is no IIS and it can’t start W3SVC. Ok.

Error Uninstalling SharePoint

Now what do we do?

Reinstall IIS and then uninstall SharePoint from Add/Remove Programs.