Problems installing a windows service

A

Andreas Håkansson

Hi,

So I'm trying to convert an existing Console test project (just used the
console part for output) into a Windows Service application. How ever, even
though I've changed the project to Windows Application under Output Type,
added a class and derived it from ServiceBase, added an installer using the
"add installer" link on the property page. Set all the necessary propertoes
on both the service and installer, built the project and tried installing it
with installutil.exe I keep getting

"No public installers with the RunInstallerAttribute.Yes attribute could be
found"

I have checked, the attribute is on the Project Installer and it's set to
true. I even created a new Windows Service project from scratch and made
sure it would install, then I copied the EXACT files over to my console
application, with the same results. I have checked all properties (class and
project) that I can think of with the same results. Sure I could move the
files from the old console project over to the service projects that worked,
but I would like to figure out WHY this is happening (you know; learning
experience, hehe).

Any suggestions what I'm obviously missing out here? I've tried doing it 10
times and I can't get it to work.
 
V

Vadym Stetsyak

Hello, Andreas!

AH> "No public installers with the RunInstallerAttribute.Yes attribute
AH> could be found"

You can it check manually if this attribute is present there, via Reflector or do it with small test program...

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
A

Andreas Hakansson

Hi,

Like I said, I know the attribute is there since I've checked the code.
 

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