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" <pd*******@nospam.cox.net> wrote in message
news:OD**************@TK2MSFTNGP10.phx.gbl...
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" <rb*****@bellfruitgames.co.uk> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... 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 ????