

- #Run multiple instances of calctape install#
- #Run multiple instances of calctape code#
- #Run multiple instances of calctape windows#
This.FileProcessingServiceProcessInstaller = new () This.FileProcessingServiceInstaller = new ()

#Run multiple instances of calctape code#
/ the contents of this method with the code editor. / Required method for Designer support - do not modify #region Component Designer generated code Protected override void Dispose(bool disposing) / true if managed resources should be disposed otherwise, false. Private FileProcessingServiceProcessInstaller Note sure if I missed something, here is the ServiceInstaller Class (adjust as required): using System.Configuration
#Run multiple instances of calctape install#
With the following contents (unique service names): Ĥ) Create a batch file to install the service with the following contents: REM Installĥ) While your there, create an uninstall batch file REM Uninstall net framework folder)ģ) Create a config file called in the service executable folder You can run multiple versions of the same service by doing the following:ġ) Copy the Service executable and config to its own folder.Ģ) Copy Install.Exe to the service executable folder (from. So if anyone knows what I'm doing wrong or has a better approach it would be much appreciated. The piece that so far has me stumped is that it states that the installation of the service completes successfully and its only after it goes to create the EventLog source that the NullReferenceException seems to get thrown. Sorry for the long winded post, wanted to make sure there is enough relevant information. The installation failed, and the rollback has been performed. The Rollback phase completed successfully. Service App Service Two was successfully removed from the system. Service App Service Two is being removed from the system. Restoring event log to previous state for source App Service Two. The Rollback phase of the installation is beginning. System.NullReferenceException: Object reference not set to an instance of an object. Service App Service Two has been successfully installed.Ĭreating EventLog source App Service Two in log Application.Īn exception occurred during the Install phase. When I ran the installer it worked fine but the service did not show up in services.msc so I ran the previous command against the second installed code base.īoth times i received the following output from InstallUtil (relevant parts only):īeginning the Install phase of the installation.

When that didn't work I tried to create a second installer project, edited the config file and built the second installer. The first way was to simply install the first copy of the service, copy the installed directory and renamed it, and then ran the following command after modifying the app config to change the desired service name: InstallUtil.exe /i AppService.exe In this case Util is just a static class tha tloads the service name from the config file.įrom here forward I have tried two different ways to get both services installed and both have failed in an identical way.
#Run multiple instances of calctape windows#
I've set up the project that contains the windows service, we'll call it AppService from now on, and the ProjectInstaller.cs file that handles custom installation steps to set the service name based on a key in the App.config like so: = Util.ServiceName So far I haven't been able to get this to happen and was hoping my fellow stackoverflow members might be able to give some hints as to why.

The client has come up with a fun configuration request that requires two instances of this service running on the same server and configured to point at separate databases. So we've produced a windows service to feed data to our client application and everything is going great.
