Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In Visual Studio 2010 create a new Windows Service project. </p> <p>Then create a Service Installer in that project. When deployed this will create the scripts. </p> <p><a href="http://msdn.microsoft.com/en-us/library/ddhy0byf.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ddhy0byf.aspx</a></p> <p>The project installer executable can be ran as explained here:</p> <p><a href="http://msdn.microsoft.com/en-us/library/sd8zc8ha.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/sd8zc8ha.aspx</a></p> <p>If you are not using Visual Studio, you can use powershell to install the windows service remotely.</p> <p>example link : <a href="http://halr9000.com/article/444" rel="nofollow">http://halr9000.com/article/444</a></p> <pre><code># Creates a service using the Create Method of Win32_Service Class # MSDN docs: http://msdn2.microsoft.com/en-us/library/aa389390.aspx # Helpful example obtained from The PowerShell Guy # http://thepowershellguy.com/blogs/posh/archive/2007/03/26/powershell-wmi-explorer-part-3.aspx $computer = "." # this computer $class = "Win32_Service" $method = "Create" $mc = [wmiclass]"\\$computer\ROOT\CIMV2:$class" $inparams = $mc.PSBase.GetMethodParameters($method) $inparams.DesktopInteract = $false $inparams.DisplayName = "My Service" $inparams.ErrorControl = 0 $inparams.LoadOrderGroup = $null $inparams.LoadOrderGroupDependencies = $null $inparams.Name = "myservice" $inparams.PathName = "c:\program files\path\myservice.exe" $inparams.ServiceDependencies = $null $inparams.ServiceType = 16 $inparams.StartMode = "Automatic" $inparams.StartName = $null # will start as localsystem builtin if null $inparams.StartPassword = $null </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload