Can I have multiple services hosted in a single windows executable

I created a 3 service project (below) which uses a project installer for each service. I then added an installer project which installs the services into service manager. Here was my workflow: Create 3 services in a solution in Visual Studio 2008. Naming each service as Service1, Service2 and, Service3. (Being sure to change the … Read more

windows service startup timeout

I agree with Romulo on finishing to start your service as soon as possible. However, if you need the time and you are using .NET Framework 2.0 or later, you might consider ServiceBase.RequestAdditionalTime() method. http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicebase.requestadditionaltime.aspx protected override void OnStart() { this.RequestAdditionalTime(10000); // do your stuff }

What are the specific differences between .msi and setup.exe file?

An MSI is a Windows Installer database. Windows Installer (a service installed with Windows) uses this to install software on your system (i.e. copy files, set registry values, etc…). A setup.exe may either be a bootstrapper or a non-msi installer. A non-msi installer will extract the installation resources from itself and manage their installation directly. … Read more

How to install and start a Windows Service using WiX

The following code works for me… no need to prompt for username/password 🙂 <File Id=’JobServiceEXE’ Name=”JobService.exe” DiskId=’1′ Source=”JobService.exe” KeyPath=”yes”/> <ServiceInstall Id=”ServiceInstaller” Type=”ownProcess” Name=”JobService” DisplayName=”123 Co. JobService” Description=”Monitoring and management Jobs” Start=”auto” Account=”[SERVICEACCOUNT]” Password=”[SERVICEPASSWORD]” ErrorControl=”normal” /> <ServiceControl Id=”StartService” Start=”install” Stop=”both” Remove=”uninstall” Name=”JobService” Wait=”yes” /> </Component>

Install a Windows service using a Windows command prompt?

Navigate to the installutil.exe in your .net folder (for .net 4 it’s C:\Windows\Microsoft.NET\Framework\v4.0.30319 for example) and use it to install your service, like this: “C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe” “c:\myservice.exe” Regarding a comment, for 64bit apps, use below: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installutil.exe