Installing a Windows Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there
when i try to install a windows service on my computer i get an access denied message even though i have full administrator rights
What could be the problem?
 
I added a setup project inside the win service project and after building it up a setup.exe was created. when i run it i get the access denied error. I also tried running the installutil.exe at the command prompt, same error
 
I created a basic service and then right clicked on the design window--> Add installer
It then created a projectInstaller.vb form with the installer components. When the service was built the installutil.exe utility worked fine

Have you done this? I dont think the setup process by itself does this necessary step

Ray
 
The installer object/componenet in your Windows Service project has some
properties on it relating to login settings, have you tried to verify those.

Also, I'm pretty sure you'll have to be an Administrator on the machine to
install the service... that could explain an Access Denied.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thread-Topic: Installing a Windows Service
thread-index: AcQVV2o/bMA63nVZRl6zr/6YmGAHUw==
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
From: =?Utf-8?B?c2VsaW5h?= <[email protected]>
References: <[email protected]>
Subject: Re: Installing a Windows Service
Date: Sun, 28 Mar 2004 22:31:06 -0800
Lines: 1
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.vb
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:191825
NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I added a setup project inside the win service project and after building
it up a setup.exe was created. when i run it i get the access denied error.
I also tried running the installutil.exe at the command prompt, same error
 
* (e-mail address removed) (David Guyer [MS]) scripsit:
The installer object/componenet in your Windows Service project has some
properties on it relating to login settings, have you tried to verify those.

Also, I'm pretty sure you'll have to be an Administrator on the machine to
install the service... that could explain an Access Denied.

In addition to your post, there is an article available on how to create
an installer for a Windows Service:

317421 - HOW TO: Create a Setup Project for a Windows Service in Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;317421>
 
Back
Top