I would check the following:
1.. Click the ServiceInstaller component and verify that the value of the
ServiceName property is set to the same value as the ServiceName property on
the service itself.
2.. Did you make sure to setup the custom action part of the setup
program.
3.. Ensure you have the proper permissions on the machine you are trying
to install it
--
Marc Butenko
mb******@bresnan.net
"D Busby" <ms**@edoceo.com> wrote in message
news:FC**********************************@microsof t.com...
Marc, List;
I've added one of those according to the docs (I had read those links
already). That is why I posted. Does the installer output a debug file? (I
can't find one)
Here are steps to reproduce my issue:
Open VS.NET and create a blank solution
Add a New Project -> Visual C++ -> Windows Service (.NET)
name it testsvc
In the designer view for testsvcWinService.h right click and pick Add
Installer This will create Project Installer.h with (according to docs) should
have all necessary properties set
Add a New Project -> Setup and Deployment Projects -> Setup Project
name this testins
Add -> Project Output -> Primary Output from testsvc
Check in configuration manager to ensure that a Build Solution will
create testsvc and then testins. Run testins.msi
Notice that your testsvc has not been added to the Services Manager
(services.msc) Notice that your testsvc is not listed in the registry as a service
(traces from installer tho) Un-install (Add / Remove Programs) testins
You can try different settings an what not for the serviceInstaller or
projectInstaller, it still won't work. Your files will get installed into the proper location (Program
Files\Default Company Name\testins\testsvc.exe) According to the docs on MSDN this should work and install the service,
if you look at the code it matches the samples and should work...it does
not.