Re: Windows Service project doesn't install using VS 2005



go to the folder where the exe file is created( in the debug or release
folder of the project) using Visual Studio .Net 2005 Command Prompt.

Type following in the prompt:
installutil <service_file.exe>

where <service_file.exe> is the executable of the service.
Hopefully this should install the service. If everything goes fine,
start the service under Services


JM wrote:
Hi,

I have created a Solution in VS 2005 with 2 simple projects.

First project is simple Windows Service which writes an entry into
event log when it starts and when it stops. Nothing else. I have added
a projectinstaller also for that. I have used following settings for it
(developed in VS 2005 only):

1. For Service1.cs file, I have kept the default values. i.e. Name of
Service is Service1 only.
2. For ProjectInstaller.cs file, I have account = LocalSystem and
StartType = Automatic.

Second project is Setup and Deployment project with the "Primary
output" selected for the above project. It does copies the exe file of
the service under program files, BUT doesn't install the service.

I have tried all things but my setup project doesn't install the
service on my PC and I can't see the service under "Services panel" on
my PC. I am running XP professional.

I was having VS 2003 also running on my PC and I have created a service
under that which is running fine.

Does anybody has any clue why this is happening !!

Thanks in advance
JM

.



Relevant Pages

  • RE: Vista Network Map
    ... Then open the command prompt without elevated privileges. ... If you install the LLTD before you install SP3, ... In the folder where you extract to you will find a folder SP2QFE. ...
    (microsoft.public.windows.vista.networking_sharing)
  • RE: Vista Network Map
    ... (right click on the command prompt icon and select "Run as administrator") ... If you install the LLTD before you install SP3, ... In the folder where you extract to you will find a folder SP2QFE. ... Microsoft solution to this problem is to install SP3 on the xp machines. ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: deploy window application
    ... folder. ... "Samuel Shulman" wrote: ... So if .Net 2.0 install on destination PC, just copy app's .exe file ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Launch Exe file if folder does not exist
    ... server to only start if a folder on the local computer is not present. ... exe file is a pain to get converted into a msi, and it has a nifty 'quiet ... install' arguement which works quite well. ...
    (microsoft.public.windows.server.scripting)
  • Re: deploy window application
    ... "Samuel Shulman" wrote: ... folder. ... So if .Net 2.0 install on destination PC, just copy app's .exe file ...
    (microsoft.public.dotnet.languages.vb)