{"id":1933,"date":"2024-04-10T14:22:26","date_gmt":"2024-04-10T04:22:26","guid":{"rendered":"https:\/\/ntsblog.homedev.com.au\/?p=1933"},"modified":"2024-04-10T14:27:40","modified_gmt":"2024-04-10T04:27:40","slug":"uninstall-a-windows-service","status":"publish","type":"post","link":"https:\/\/ntsblog.homedev.com.au\/index.php\/2024\/04\/10\/uninstall-a-windows-service\/","title":{"rendered":"Uninstall a windows service"},"content":{"rendered":"<div id=\"ntsbl-3394483610\" class=\"ntsbl-before-content ntsbl-entity-placement\"><script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-6288941070289539\" crossorigin=\"anonymous\"><\/script><ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px;\" \ndata-ad-client=\"ca-pub-6288941070289539\" \ndata-ad-slot=\"9356781486\"><\/ins> \n<script> \n(adsbygoogle = window.adsbygoogle || []).push({}); \n<\/script>\n<\/div>\n<h2 class=\"wp-block-heading\">The issue<\/h2>\n\n\n\n<p>I have installed a windows service that is crashing on startup.<\/p>\n\n\n\n<p>When I uninstall the software the service is left installed and &#8220;Disabled&#8221; in the services list.<\/p>\n\n\n\n<p>I need to uninstall it manually<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The solution<\/h2>\n\n\n\n<p>Pre-requisite is to have Visual Studio installed with the developer tools cmd prompt, in my case called _x64_x86 Cross Tools Command Prompt for VS2022.<\/p>\n\n\n\n<p>Launch this in Administrator mode, by pressing the windows key, type cmd, and click on the side arrow and choose &#8220;Run As Administrator&#8221;<\/p>\n\n\n\n<p>Issue the command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sc delete \"The Name of My Service\"<\/code><\/pre>\n\n\n\n<p>This suggests the access was denied but the service was marked for deletion.<\/p>\n\n\n\n<p>If you have the services window open choosing &#8220;Refresh&#8221; doesn&#8217;t cause it to disappear from the list.<\/p>\n\n\n\n<p>Close the services window, re-open and the service is not listed.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to uninstall a windows service<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[47],"tags":[],"class_list":["post-1933","post","type-post","status-publish","format-standard","hentry","category-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/comments?post=1933"}],"version-history":[{"count":0,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/posts\/1933\/revisions"}],"wp:attachment":[{"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/media?parent=1933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/categories?post=1933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ntsblog.homedev.com.au\/index.php\/wp-json\/wp\/v2\/tags?post=1933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}