{"id":844,"date":"2013-04-01T16:37:16","date_gmt":"2013-04-01T15:37:16","guid":{"rendered":"http:\/\/blog.repsaj.nl\/?p=844"},"modified":"2013-04-01T16:37:22","modified_gmt":"2013-04-01T15:37:22","slug":"installing-a-windows-service-with-visual-studio-2012","status":"publish","type":"post","link":"http:\/\/blog.repsaj.nl\/index.php\/2013\/04\/installing-a-windows-service-with-visual-studio-2012\/","title":{"rendered":"Installing a windows service with Visual Studio 2012"},"content":{"rendered":"<p>Since Visual Studio 2012, the default installer project was switched for a limited edition of InstallShield. I won&#8217;t get into the discussion whether this was a step forward or backward, but it&#8217;s there.<\/p>\n<p>When you&#8217;re building an installer for Windows Service, you might get stuck in the situation where the installer is deploying your files onto the filesystem, but the actual service isn&#8217;t appearing in the services console. That&#8217;s because the installer class didn&#8217;t get called to register the service. For those of you who don&#8217;t know; you need to add an installer class to your service which registers it with Windows (you can easily do so by right clicking the service and choosing &#8220;Add installer&#8221;.<\/p>\n<p>Anyways. If this is the case, go to &#8220;Files&#8221; in step 2 of the installer and open it up. Right click your project and open up the properties window. Go to the second tab &#8220;COM &amp; .NET Settings&#8221;.<\/p>\n<p><a href=\"http:\/\/blog.repsaj.nl\/index.php\/2013\/04\/installing-a-windows-service-with-visual-studio-2012\/com-settings\/\" rel=\"attachment wp-att-845\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-845\" alt=\"COM settings\" src=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2013\/04\/COM-settings-215x300.png\" width=\"215\" height=\"300\" srcset=\"http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2013\/04\/COM-settings-215x300.png 215w, http:\/\/blog.repsaj.nl\/wp-content\/uploads\/2013\/04\/COM-settings.png 402w\" sizes=\"(max-width: 215px) 100vw, 215px\" \/><\/a><\/p>\n<p>There, you&#8217;ll find a checkbox &#8220;Installer Class&#8221; which you need to enable. Now compile your installer again and there you go: it&#8217;ll register your service in Windows again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since Visual Studio 2012, the default installer project was switched for a limited edition of InstallShield. I won&#8217;t get into the discussion whether this was a step forward or backward, but it&#8217;s there. When you&#8217;re building an installer for Windows Service, you might get stuck in the situation where the installer is deploying your files<\/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_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[34],"tags":[85,84],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3KFR1-dC","_links":{"self":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/844"}],"collection":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/comments?post=844"}],"version-history":[{"count":0,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/posts\/844\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/media?parent=844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/categories?post=844"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.repsaj.nl\/index.php\/wp-json\/wp\/v2\/tags?post=844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}