While doing some testing of Oracle on a Windows 7 computer I stopped the TNS Listener service also known as OracleOraDb11g_home1TNSListener. The problem is when I attempted to restart the service it would not start. While testing various other things I had made numerous changes so I started looking into what might cause the issue and was pretty confident that the $ORACLE_HOME variable I set within the Windows Environment Variables was probably the culprit. Below I describe more details about the error as well as how I resolved the TNS Listener not being able to start.
A customer laptops in my friends computer shop had some major issues today. One of the major issues on this Windows XP laptop was the fact that Service Pack 3 would not install so after fixing various other things I figured it would be best to clear the Windows Updates cache and then attempt to install the patches including SP3 again. Below is information on stopping the Windows Updates service, purging the Windows Updates cache, and then restarting the Windows Updates service.