Hi Nipuna,
Thanks for the reply!
What you said is correct. The service name that I was giving was wrong.
To make things a little more clear i.e if apache service name is not found in the services.msc, then specify the name that you use when you start the apache server.
apache -k install -n "servicename" //without quotes