473,327 Members | 2,112 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,327 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 5588
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?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.