473,670 Members | 2,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5631
You neet to use the .NET ServiceInstalle r 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******@bresna n.net

"D Busby" <ms**@edoceo.co m> wrote in message
news:3D******** *************** ***********@mic rosoft.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 ServiceInstalle r 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******@bresna n.net

"D Busby" <ms**@edoceo.co m> wrote in message
news:3D******** *************** ***********@mic rosoft.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 testsvcWinServi ce.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 serviceInstalle r or projectInstalle r, it still won't work
Your files will get installed into the proper location (Program Files\Default Company Name\testins\te stsvc.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 testsvcWinServi ce.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 serviceInstalle r or projectInstalle r, it still won't work
Your files will get installed into the proper location (Program Files\Default Company Name\testins\te stsvc.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 ServiceInstalle r 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******@bresna n.net
"D Busby" <ms**@edoceo.co m> wrote in message
news:FC******** *************** ***********@mic rosoft.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 testsvcWinServi ce.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 serviceInstalle r or projectInstalle r, it still won't work. Your files will get installed into the proper location (Program Files\Default Company Name\testins\te stsvc.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 ServiceInstalle r 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******@bresna n.net
"D Busby" <ms**@edoceo.co m> wrote in message
news:FC******** *************** ***********@mic rosoft.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 testsvcWinServi ce.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 serviceInstalle r or projectInstalle r, it still won't work. Your files will get installed into the proper location (Program Files\Default Company Name\testins\te stsvc.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, "Unverifiab le 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, "Unverifiab le 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
503
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 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?
2
21889
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 successful. I'm now ready to start my service (I think) but the NET START command does not appear to indicate that the service is available to be run. The output for NET START is below as well. The Services list in the W2K administrator...
3
56973
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 want to test this service on a Windows Server 2003 box that doesn't have the Visual Studio Command prompt. How do I go about installing the service on the Windows Server 2003 box? Thanks!
0
1307
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 references to creating a installer for the windows service. This windows service is required to be installed and started, before other files in my installed can be installed. Tool used: VS .NET 2003 (Deployment projects) I was using the VS.NET 2003 IDE...
4
7072
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 deployment project (myproj installer) I added my windows app to the installer under myproj installer properties, I set bootstrapper
2
4673
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 of the service is not set (this can be checked by right-clicking on the service in the Services window (Admin tools>Services), choosing Properties, LogOn tab). In order to enable my service to launch a GUI at startup, I added the following lines...
4
1997
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 Installer) 2. My Windows Service is upgraded to .NET 2.0 with deployment project using MSI (Windows Installer) Upgrade code is the same from the .NET 1.1 version to the .NET 2.0 version
7
4366
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 sample, it provides the feature to install service under LocalSystem account. What I need is to install service under NT AUTHORITY\NetworkService, so that my service can access the shared network resources.
0
2693
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 to whether my solution is robust or whether there is a better way to do it. What I've been trying to do is to create a core project with different extension projects, one for each customer. I wanted to create a different Setup project for each...
5
3296
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? Why do I need to set a property within my code to the service name? Are all these required or am I just doing this for consistency purposes?
0
8471
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8592
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8661
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7421
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6216
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4393
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2802
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1795
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.