In our previous post we talked about how you could create a Windows Service and generate an executable for it. However, as the install/uninstall process was a bit too lengthy and required substantial technical knowledge, here’s a simpler solution that consists of a setup process within one easy click for the same executable (in GUI style).
Please note: if you are using Visual Studio 2012 or any one of its later editions, you need to include the Install-Shield Express edition over your current Visual Studio as an add-on. You can
click here to register and download this version of Install-Shield Express.
Also, please make sure that your current Visual Studio is updated with update 2 or a later edition.
Starting off, fire up Visual Studio and open the PHPWinService project that we had created previously.
In the Solution Explorer pane, right-click on Solution 'PHPWinService'(this shall be listed over here) and proceed to > Add > New Project.
Now you should be able to see the 'Add New Project' window's pop-up: here, search for 'Setup and Deployment' from the query option or locate it manually under - Other Project Types > Setup and Deployment > InstallShield Limited Edition Project.
Once you find it, name it as PHPWinServiceSetup and click OK.