473,385 Members | 1,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Windows Installer Solution not installing service

List
I've made a .NET windows service in C++, then I added an installer to the solution. I added the 'Project Output' from my .NET service as a package for the installer to install however it does not install my program as a service on the client machine. Is there something special I need to do? Shouldn't the 'Project Output' show the installer that I have made a service and then install the thing properly?
Nov 22 '05 #1
8 5592
You neet to use the .NET ServiceInstaller class:
http://msdn.microsoft.com/library/de...ClassTopic.asp

Also, see the following for adding an installer to a Service:
http://msdn.microsoft.com/library/de...pplication.asp

Hope that helps,
--
Marc Butenko
mb******@bresnan.net

"D Busby" <ms**@edoceo.com> wrote in message
news:3D**********************************@microsof t.com...
List,
I've made a .NET windows service in C++, then I added an installer to

the solution. I added the 'Project Output' from my .NET service as a
package for the installer to install however it does not install my program
as a service on the client machine. Is there something special I need to
do? Shouldn't the 'Project Output' show the installer that I have made a
service and then install the thing properly?
Nov 22 '05 #2
You neet to use the .NET ServiceInstaller class:
http://msdn.microsoft.com/library/de...ClassTopic.asp

Also, see the following for adding an installer to a Service:
http://msdn.microsoft.com/library/de...pplication.asp

Hope that helps,
--
Marc Butenko
mb******@bresnan.net

"D Busby" <ms**@edoceo.com> wrote in message
news:3D**********************************@microsof t.com...
List,
I've made a .NET windows service in C++, then I added an installer to

the solution. I added the 'Project Output' from my .NET service as a
package for the installer to install however it does not install my program
as a service on the client machine. Is there something special I need to
do? Shouldn't the 'Project Output' show the installer that I have made a
service and then install the thing properly?
Nov 22 '05 #3
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 solutio
Add a New Project -> Visual C++ -> Windows Service (.NET
name it testsv
In the designer view for testsvcWinService.h right click and pick Add Installe
This will create Project Installer.h with (according to docs) should have all necessary properties se

Add a New Project -> Setup and Deployment Projects -> Setup Projec
name this testin
Add -> Project Output -> Primary Output from testsv
Check in configuration manager to ensure that a Build Solution will create testsvc and then testins
Run testins.ms
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) testin
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
Nov 22 '05 #4
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 solutio
Add a New Project -> Visual C++ -> Windows Service (.NET
name it testsv
In the designer view for testsvcWinService.h right click and pick Add Installe
This will create Project Installer.h with (according to docs) should have all necessary properties se

Add a New Project -> Setup and Deployment Projects -> Setup Projec
name this testin
Add -> Project Output -> Primary Output from testsv
Check in configuration manager to ensure that a Build Solution will create testsvc and then testins
Run testins.ms
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) testin
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
Nov 22 '05 #5
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.

Nov 22 '05 #6
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.

Nov 22 '05 #7
Forgot to mention
Yes the names are the same (in the steps I sent you can see this
I was not using the installer correctly, I did not have the Custom Action working properl
I do have permissions
After getting the Custom Action working correctly the install still fails stating the the file created (testsvc.exe) is not of the correct type, "Unverifiable image 'testsvc.exe' can not be run.."
If my Custom Action has a InstallerImage = false I get a command prompt window that hangs then gives a similar messag
If my Custom Action has InstallerImage = true I get a hang during the install, then this message. Now why would my Service Image be unverifiable?
Nov 22 '05 #8
Forgot to mention
Yes the names are the same (in the steps I sent you can see this
I was not using the installer correctly, I did not have the Custom Action working properl
I do have permissions
After getting the Custom Action working correctly the install still fails stating the the file created (testsvc.exe) is not of the correct type, "Unverifiable image 'testsvc.exe' can not be run.."
If my Custom Action has a InstallerImage = false I get a command prompt window that hangs then gives a similar messag
If my Custom Action has InstallerImage = true I get a hang during the install, then this message. Now why would my Service Image be unverifiable?
Nov 22 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: D Busby | last post by:
List I've made a .NET windows service in C++, then I added an installer to the solution. I added the 'Project Output' from my .NET service as a package for the installer to install however it does...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
3
by: Jeremy S. | last post by:
On my dev machine (XP/Pro with VS.NET 2003) I have been developing a Windows Service and installing it on the local machine by opening the Visual Studio Command Prompt and then executing . Now I...
0
by: Vipul Patel | last post by:
Hi, There is a project requirement to create an installer for a windows service created in VC++ 7.0 unmanaged code. Can any one guide to a link or working sample as to where I can get the...
4
by: bob lambert | last post by:
Help I am trying to deploy to another pc a vb.net std 2002 windows form application. I am confused. I created a project - windows form I built form, compiled and debugged. I created a...
2
by: letibal | last post by:
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
7
by: sunil | last post by:
Hi all, I read an article from http://www.c-sharpcorner.com/Code/2003/Sept/InstallingWinServiceProgrammatically.asp about how to install a windows service programmatically. Based on the code...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.