VS 2008 Project Wizzard - Windows Service

  • Thread starter Thread starter AdrianMorris
  • Start date Start date
A

AdrianMorris

Hi,

I am trying to create a Windows Service for Vista/Server 2003/XP machines.

I used the Wizard in VS 2008 to create the basic service. I am using Visual
C++ and used the "Windows Service" template (Under CLR). It states that you
install the compiled service by typing:

MyService.exe -Install

My blank service compiles perfectly. At a command prompt I attempt to
install it using the above command. The response to this is:

No public installers with the RunInstallerAttribute.Yes attribute could be
found in the ........MyService.exe assembly.

I am at the first step of just compiling and running the MS generated
code....Where am I going wrong?

Kind Regards....Adrian
 
AdrianMorris said:
Hi,

I am trying to create a Windows Service for Vista/Server 2003/XP machines.

I used the Wizard in VS 2008 to create the basic service. I am using
Visual
C++ and used the "Windows Service" template (Under CLR). It states that
you
install the compiled service by typing:

MyService.exe -Install

My blank service compiles perfectly. At a command prompt I attempt to
install it using the above command. The response to this is:

No public installers with the RunInstallerAttribute.Yes attribute could be
found in the ........MyService.exe assembly.

I am at the first step of just compiling and running the MS generated
code....Where am I going wrong?



How to: Add Installers to Your Service Application
http://msdn.microsoft.com/en-us/library/ddhy0byf(VS.80).aspx

Mark
 
WOW!!!

Many thanks!

I have been searching for some documention like this for the last week!

Have implemented, and all is working Perfectly.

Many thanks for your prompt response - Have a great weekend

Regards.......Adrian
 
AdrianMorris said:
WOW!!!

Many thanks!

I have been searching for some documention like this for the last week!

Have implemented, and all is working Perfectly.

Many thanks for your prompt response - Have a great weekend


Cool! You're welcome and have a great weekend yourself, thanks!

Mark
 
Back
Top