473,811 Members | 3,055 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installer project does not install service

Hello all,

hopefully someone can help me. I have got a service which I want to
deploy. I added an installer project to my solution and did everything
as stated in some kb articles (eg adding the .exe and on and on.).
Everything is deployed to the folders but the service itself is not
installed.

Can someone give some hints on how to get the service installed?

Thanks

David
Nov 16 '05 #1
3 3751
Wasn't this by executing

RegSvcs.exe
located in:
%windir%\Micros oft.NET\Framewo rk\v1.1.4322

Probably there is a nicer way...

- Joris

"David Preuss" <d.******@de.kd di.com> wrote in message
news:e7******** *****@tk2msftng p13.phx.gbl...
Hello all,

hopefully someone can help me. I have got a service which I want to
deploy. I added an installer project to my solution and did everything
as stated in some kb articles (eg adding the .exe and on and on.).
Everything is deployed to the folders but the service itself is not
installed.

Can someone give some hints on how to get the service installed?

Thanks

David

Nov 16 '05 #2
Hello Joris,

I could install it manually by invoking installutil.exe from the
framework, but an setup project is intended to deploy the software in a
nicce manner for the customers without making such weird things like
calling regsrv or installutil.

In the KB article I saw regarding this it is said that after
installation the service should show up in services mmc but ...

http://msdn.microsoft.com/library/de...pplication.asp

Thanks for the reply, if you have other ideas regarding the issue,

David
Wasn't this by executing

RegSvcs.exe
located in:
%windir%\Micros oft.NET\Framewo rk\v1.1.4322

Probably there is a nicer way...

- Joris

"David Preuss" <d.******@de.kd di.com> wrote in message
news:e7******** *****@tk2msftng p13.phx.gbl...
Hello all,

hopefully someone can help me. I have got a service which I want to
deploy. I added an installer project to my solution and did everything
as stated in some kb articles (eg adding the .exe and on and on.).
Everything is deployed to the folders but the service itself is not
installed.

Can someone give some hints on how to get the service installed?

Thanks

David


Nov 16 '05 #3
You did follow the steps at: "To create the installers for your service" , I
assume?

1.. Return to Design view for Service1.
2.. Click the background of the designer to select the service itself,
rather than any of its contents.
3.. In the Properties window, click the Add Installer link in the gray
area beneath the list of properties.
By default, a component class containing two installers is added to your
project. The component is named ProjectInstalle r, and the installers it
contains are the installer for your service and the installer for the
service's associated process.

4.. Access Design view for ProjectInstalle r, and click ServiceInstalle r1.
5.. In the Properties window, set the ServiceName property to
MyNewService.
6.. Set the StartType property to Automatic.
7.. In the designer, select ServiceProcessI nstaller1 (for a Visual Basic
project), or serviceProcessI nstaller1 (for a Visual C# project). Set the
Account property to LocalService. This will cause the service to be
installed and to run on a local service account. For more information, see
ServiceProcessI nstaller.Accoun t Property.
Security Note The LocalService account acts as a non-privileged user
on the local computer, and presents anonymous credentials to any remote
server. Use the other accounts with caution, as they run with higher
privileges and increase your risk of attacks from malicious code.

- Joris


Nov 16 '05 #4

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?
4
7443
by: Bill Murray | last post by:
I am using VS.NET 2003 and trying to deploy a service program(c++) to a Windows 2000 Server system. I have also written a small DLL (USSsetup.dll) that is used to start/stop the service using a custom action. This dll is apparently dependent on the MSVCP71.DLL and MSVCR71.DLL's as per the Detected Dependencies folder visible in the deployment project All this good except I am UNABLE to Retarget the output of the msm merge...
7
3693
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added to it, using installutil.exe OR is it must to have an installer to the service project to be able to
2
2752
by: DBT | last post by:
When I add an Install project to my Windows Service project everything compiles and it works okay. The problem is the Installer only writes the files to disk, but doesn't actually install the service. Thus I must manually use InstallUtil.exe to install the service. I thought the installer handled this. I'm using VS2003.
8
7220
by: vtxr1300 | last post by:
I've followed 2 very similar tutorials on creating a windows service and an installer. But, after successfully compiling it, I try to do the InstallUtil command, but I get a badimageformatexception. I tried to do some searching on that exception, but all I could find was a small blurb on MSs site about C++ which I'm not using. Can anyone see a problem in this code? Thanks. using System; using System.Collections.Generic; using...
3
8956
by: david | last post by:
Greetings, I'm doing some modifications of an existing Visual Studio .NET 2003 C# project that is to be deployed as a windows service. The solution includes a project that builds an MSI file. Over the month I've been working on the project, I've built the MSI file many times. Sometimes it runs fine and I have a service that can be started and stopped. Other times, the MSI file starts up, goes through several screens and then reports...
2
12853
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the contents of the log file for the d:\practice in .net\mywindowsservice\mywindowsservice\mywindowsservice\bin\practiceservice.exe assembly's progress. The file is located at d:\practice in...
0
9731
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
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10393
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
10405
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
10136
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
9208
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
7671
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
5556
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3020
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.