Note that there are some explanatory texts on larger screens.

plurals
  1. POInstall Windows Service created in Visual Studio
    primarykey
    data
    text
    <p>When I create a new Windows Service in Visual Studio 2010, I get the message stating to use InstallUtil and net start to run the service.</p> <p>I have tried the following steps:</p> <ol> <li>Create new project File -> New -> Project -> Windows Service</li> <li>Project Name: TestService</li> <li>Build project as is (Service1 constructor, OnStart, OnStop)</li> <li>Open command prompt, run <strong>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe" TestService.exe</strong></li> <li>Run <strong>net start TestService</strong>.</li> </ol> <p><strong>Output of step 4</strong></p> <blockquote> <p>Running a transacted installation.</p> <p>Beginning the Install phase of the installation.</p> <p>See the contents of the log file for the C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\TestService\obj\x86\Debug\TestService.exe assembly's progress.</p> <p>The file is located at C:\Users\myusername\Documents\Visual Studio 2010\Projects\Tes tService\TestService\obj\x86\Debug\TestService.InstallLog.</p> <p>Installing assembly 'C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestS ervice\TestService\obj\x86\Debug\TestService.exe'.</p> <p>Affected parameters are:</p> <p>logtoconsole =</p> <p>logfile = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\T estService\obj\x86\Debug\TestService.InstallLog</p> <p>assemblypath = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestServ ice\TestService\obj\x86\Debug\TestService.exe</p> <p>No public installers with the RunInstallerAttribute.Yes attribute could be found in the C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\TestSe rvice\obj\x86\Debug\TestService.exe assembly.</p> <p>The Install phase completed successfully, and the Commit phase is beginning.</p> <p>See the contents of the log file for the C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\TestService\obj\x86\Debug\TestService.exe assembly's progress.</p> <p>The file is located at C:\Users\myusername\Documents\Visual Studio 2010\Projects\Tes tService\TestService\obj\x86\Debug\TestService.InstallLog.</p> <p>Committing assembly 'C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestS ervice\TestService\obj\x86\Debug\TestService.exe'.</p> <p>Affected parameters are:</p> <p>logtoconsole =</p> <p>logfile = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\T estService\obj\x86\Debug\TestService.InstallLog</p> <p>assemblypath = C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestServ ice\TestService\obj\x86\Debug\TestService.exe</p> <p>No public installers with the RunInstallerAttribute.Yes attribute could be found in the C:\Users\myusername\Documents\Visual Studio 2010\Projects\TestService\TestSe rvice\obj\x86\Debug\TestService.exe assembly.</p> <p>Remove InstallState file because there are no installers.</p> <p>The Commit phase completed successfully.</p> <p>The transacted install has completed.</p> </blockquote> <p><strong>Output of step 5</strong></p> <p>The service name is invalid.</p> <p>More help is available by typing NET HELPMSG 2185.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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