Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Service - Creating an installer Visual studio 2012 How?

I'm developing a Windows service in VS2012 and the setup/deployment part has been removed. So I'm not able to create a setup project. I would like to hear what you guys could recommend for a good easy to use the installer. I need to take some inputs, only strings, under the installation of the service. I've been looking at WiX but that seems a bit complex, and I only got 1 or 2 days to make this installer.

So what installer should I use other than Wix?

like image 542
MMM Avatar asked Sep 26 '12 06:09

MMM


People also ask

How do I create a Windows installer service?

In Solution Explorer, access Design view for the service for which you want to add an installation component. Click the background of the designer to select the service itself, rather than any of its contents. With the designer in focus, right-click, and then click Add Installer.

How do I add Windows services to Visual Studio?

In Visual Studio, choose Attach to Process from the Debug menu. The Processes dialog box appears. Click Show system processes. In the Available Processes section, click the process for your service, and then click Attach.


2 Answers

I've had really bad experiences with InstallShield LE (the one that comes with Visual Studio 2012), especially for Windows Services. The features that you need to install a service (custom actions, etc), don't come with the light version.

What I'm planning to do for the current Windows service I'm working on is to build it with Topshelf, which (amongst other things) means installing your service is as simple as running MyServiceApp.exe install. I'm sure even InstallShield will let you run your app once it's installed, and then your app/Topshelf can install the service component.

If InstallShield doesn't work for you, I've had good results before with NSIS. Simple, powerful, free, decent documentation. It looks a bit clunky.

like image 115
TarkaDaal Avatar answered Oct 19 '22 17:10

TarkaDaal


Here is a list of setup tools which can get you started: http://en.wikipedia.org/wiki/List_of_installation_software

If you don't have a lot of time for creating the installer, I recommend using a commercial tool like Advanced Installer or InstallShield. You need a license, but they are focused on usability (do more in less time).

like image 1
rmrrm Avatar answered Oct 19 '22 17:10

rmrrm