VS 2008 Project Wizzard - Windows Service

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
 
M

Mark Salsbery [MVP]

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
 
A

AdrianMorris

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
 
M

Mark Salsbery [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top