Greg

Greg

  • NA
  • 37
  • 0

Windows Service - Installing

Jan 12 2007 5:29 AM

Hey all,

Just starting out with C#, so suspect I'll be making this my home for the forthcoming months!

I'm currently having a problem with creating a service. I'm using C#.Net 2005 btw.

I've followed this example:
http://www.c-sharpcorner.com/UploadFile/ajifocus/AppScheduler05262006074807AM/AppScheduler.aspx?ArticleID=b52f76da-943f-4807-9675-869f135ef2cd

However when I run the UtilInstall.exe to register the service, the service does not appear in the service list. Anybody know any reasons why?


As a further note, I'm getting 3 build warnings - but I think this is due to changes between .Net 2005 and .Net 2003 - I presuming these won't stop my service from registering.

Secondly, the InstallUtil.exe creates a log file, which I'm dumping here:

LauncherService.InstallLog:

Installing assembly 'c:\gbtemp\launcherservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\gbtemp\launcherservice.exe
   logfile = c:\gbtemp\launcherservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\gbtemp\launcherservice.exe assembly.
Committing assembly 'c:\gbtemp\launcherservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\gbtemp\launcherservice.exe
   logfile = c:\gbtemp\launcherservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found in the c:\gbtemp\launcherservice.exe assembly.
Remove InstallState file because there are no installers.


Thirdly, this is the output from the command line:

C:\Program Files\Microsoft Visual Studio 8\VC>installutil c:\gbtemp\launcherservice.exe
Microsoft (R) .NET Framework Installation utility Version 2.0.50727.42
Copyright (c) Microsoft Corporation.  All rights reserved.


Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the c:\gbtemp\launcherservice.exe assembly's progress.
The file is located at c:\gbtemp\launcherservice.InstallLog.
Installing assembly 'c:\gbtemp\launcherservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\gbtemp\launcherservice.exe
   logfile = c:\gbtemp\launcherservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
 in the c:\gbtemp\launcherservice.exe assembly.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the c:\gbtemp\launcherservice.exe assembly's progress.
The file is located at c:\gbtemp\launcherservice.InstallLog.
Committing assembly 'c:\gbtemp\launcherservice.exe'.
Affected parameters are:
   logtoconsole =
   assemblypath = c:\gbtemp\launcherservice.exe
   logfile = c:\gbtemp\launcherservice.InstallLog
No public installers with the RunInstallerAttribute.Yes attribute could be found
 in the c:\gbtemp\launcherservice.exe assembly.
Remove InstallState file because there are no installers.

The Commit phase completed successfully.

The transacted install has completed.

C:\Program Files\Microsoft Visual Studio 8\VC>

-- End of post! Phew...