windows service install registry error

R

René Beumer

I am trying to install a windows service written in .net 2003 on my Windows
2000 computer.

I have followed the walkthru given in msdn but the service fails to install
with 'requested registry access is not allowed' (using both InstallUtil or
by creating an installer).

I have tracked the registry access failure using RegMon and found that it
fails on

OpenKey HKLM\SYSTEM\CurrentControlSet\Services\EventLog ACCDENIED Access:
0x2001F BELLFRUIT\Rbeumer

The 'Rbeumer' account is a valid account and have no problem accessing the
registry using regedit...

The account I am trying to use in the serviceProcessInstaller is
LocalSystem...

Has anyone had a similar problem ???? Any ideas ????
 
P

Phil Wilson

It looks like Rbeumer is the user doing the install, and whether it's valid
or not doesn't matter, it's whether it can update those registry entries,
and when you say "access ... using regedit" do you mean reading or
creating?
 
R

René Beumer

Very good point - just tried it and I can read the read successfully but
cannot create anywhere in HKLM\System\CurrentControlSet key...

I have been doing some more investigation and problem appears to be more
compounded. I have tried to install the service on a machine where I have
got read/write reg access and (using InstallUtil.exe) receive the following
error message after the 'Creating EventLog source Service1 in log
Application...' 'An exception has occurred during the install phase.
SystemComponentMode.Win32Exception:the account name is invalid or does not
exist, or the password is invalid for the account specified'

again the serviceProcessInstaller account I am using is LocalService.

Thanks for your help



Phil Wilson said:
It looks like Rbeumer is the user doing the install, and whether it's valid
or not doesn't matter, it's whether it can update those registry entries,
and when you say "access ... using regedit" do you mean reading or
creating?
--
Phil Wilson [MVP Windows Installer]

René Beumer said:
I am trying to install a windows service written in .net 2003 on my Windows
2000 computer.

I have followed the walkthru given in msdn but the service fails to install
with 'requested registry access is not allowed' (using both InstallUtil or
by creating an installer).

I have tracked the registry access failure using RegMon and found that it
fails on

OpenKey HKLM\SYSTEM\CurrentControlSet\Services\EventLog ACCDENIED Access:
0x2001F BELLFRUIT\Rbeumer

The 'Rbeumer' account is a valid account and have no problem accessing the
registry using regedit...

The account I am trying to use in the serviceProcessInstaller is
LocalSystem...

Has anyone had a similar problem ???? Any ideas ????
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top