Registry error 'Error while opening key'

  • Thread starter Thread starter Dirk Mahoney
  • Start date Start date
D

Dirk Mahoney

I have a program that places a key under HKEY_LOCAL_MACHINE\SOFTWARE during
install (an MSI built with Visual Studio Installer).

After about a week, the installer attempts to repair the installation (but
fails usually because the user is running under the 'Users' group and hence
has no install privs). Upon further examination, the registry key created
(call it HKEY_LOCAL_MACHINE\SOFTWARE\Blah) seems to be corrupted, such that
when viewed using RegEdit or RegEdt32, Windows complains... 'Error while
opening key'.

It is obvious that the installer is kicking in again to repair this registry
problem, but I cannot find a reason that my particular branch of the
registry should be corrupt. The program is written in VB6SP5 and this
problem occurs on Windows 2000 Pro and Windows XP, but not on every
installation of the software.

Has anyone seen this before and/or know what causes it?

Thanks in advance,

Dirk
 
I have a program that places a key under HKEY_LOCAL_MACHINE\SOFTWARE during
install (an MSI built with Visual Studio Installer).

After about a week, the installer attempts to repair the installation (but
fails usually because the user is running under the 'Users' group and hence
has no install privs). Upon further examination, the registry key created
(call it HKEY_LOCAL_MACHINE\SOFTWARE\Blah) seems to be corrupted, such that
when viewed using RegEdit or RegEdt32, Windows complains... 'Error while
opening key'.

It is obvious that the installer is kicking in again to repair this registry
problem, but I cannot find a reason that my particular branch of the
registry should be corrupt. The program is written in VB6SP5 and this
problem occurs on Windows 2000 Pro and Windows XP, but not on every
installation of the software.

Has anyone seen this before and/or know what causes it?

Thanks in advance,

Dirk

Dirk

I would guess that your application is corrupting its own registry
key. But without details of what your application does to the registry
in its normal operation its difficult to say what the cause might be.

You should start by debugging your apps registry interaction.


steve
 
I have a program that places a key under HKEY_LOCAL_MACHINE\SOFTWARE during
install (an MSI built with Visual Studio Installer).

After about a week, the installer attempts to repair the installation (but
fails usually because the user is running under the 'Users' group and hence
has no install privs). Upon further examination, the registry key created
(call it HKEY_LOCAL_MACHINE\SOFTWARE\Blah) seems to be corrupted, such that
when viewed using RegEdit or RegEdt32, Windows complains... 'Error while
opening key'.

It is obvious that the installer is kicking in again to repair this registry
problem, but I cannot find a reason that my particular branch of the
registry should be corrupt. The program is written in VB6SP5 and this
problem occurs on Windows 2000 Pro and Windows XP, but not on every
installation of the software.

Has anyone seen this before and/or know what causes it?

Thanks in advance,

Dirk

Dirk

I would guess that your application is corrupting its own registry
key. But without details of what your application does to the registry
in its normal operation its difficult to say what the cause might be.

You should start by debugging your apps registry interaction.


steve
 
I have a similar problem but with a login script when it is run. I solved
that part of the problem by giving the file permission to run under the
users policy. So maybe you should check the security settings of the file as
this could be causing the problem.

Rakhesh
 
I have a similar problem but with a login script when it is run. I solved
that part of the problem by giving the file permission to run under the
users policy. So maybe you should check the security settings of the file as
this could be causing the problem.

Rakhesh
 
Regedit Error Opening Key CzTj6AwnMf9

I tried several ways to open and delete this registry entry. I think it Virus or a downloader. I keep getting pop-up on the desktop and have run Xofspy, pestpatrol and my virus sccan plus an Internet Virus scan.

I need help on how to delete this entry.

Thanks Rich (e-mail address removed)
 
Back
Top