cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
RicAub
Level 3

Windows 7 Access is denied writing to LM Registry

My install is MSI / Windows 7.
I am writing to the registry (local Machine) but I am getting an error -2147024891 "Access is Denied". I am logged in as user "sqa".

User, sqa, is part of the "administrator" group type. So if I open the registry via regedit, I can manually add a key in LM while logged on as "sqa". I am wondering why the install is getting an "Access is Denied" when trying to create the key.

szKey = "SOFTWARE\\ABC\\Properties";

SOFTWARE already exists with permissions
"admin" full priv, "Users" have read only.

I changed "Users" to full priv and the install created the reg keys. Doesn't make sense it should have worked without me changing "users" permissions to full control because user "sqa" is part of admin group type. XP work fine without any changes.

does the install run as a different user under Windows 7?
Labels (1)
0 Kudos
(2) Replies
RicAub
Level 3

I think I found my problem.

User "sqa" is part of the admin group soif I highlight the setup.exe and right mouse click, there is an option to "Run as Administrator". When I use that option, my registry additions to LM works.

Although I see them in LM\Software\Wow6432Node\... instead of
LM\Software\...
0 Kudos
rguggisberg
Level 13

That is correct for a 32 bit application on a 64 bit OS
0 Kudos