I have a program which updates the Registry so that a line is added to the context menu of a jpg file. However, the update fails.
RegCreateKeyEx returns the error code 5 (ERROR_ACCESS_DENIED)
With Regedit there is no problem, so it is not a matter of privileges. -- José

Registry can not be updated
Hi Jos?,
Actually, it is a permissions issue. The program is likely not running with elevated privileges, so it cannot write the key.
-- Best of Luck,
Rick Rogers, aka "Nutcase" - Microsoft MVP http://mvp.support.microsoft.com/ Windows help - www.rickrogers.org
"Jos?" wrote in message
I have a program which updates the Registry so that a line is added to the context menu of a jpg file. However, the update fails.
RegCreateKeyEx returns the error code 5 (ERROR_ACCESS_DENIED)
With Regedit there is no problem, so it is not a matter of privileges. -- José
On Fri, 23 Jun 2006 06:28:27 -0400, "Rick Rogers" wrote in microsoft.public.windows.vista.general:
Actually, it is a permissions issue. The program is likely not running with elevated privileges, so it cannot write the key.
I ran it under the Administrator account. To be precise: the first account I created when the system was installed. Besides, with Regedit it wasn't a problem to modify the registry. -- José
Conor is correct. In Vista an administrator runs as a user but can give permission as an administrator to perform an action that changes the computer. That sets up a security model where no script or program can execute without the user's awareness. That was the problem with running as administrator in XP. Malware could change something in the computer because it could inherit the administrator's permissions without his knowledge.
"José" wrote in message
On Fri, 23 Jun 2006 06:28:27 -0400, "Rick Rogers" <rick@mvps.org wrote in microsoft.public.windows.vista.general:
Actually, it is a permissions issue. The program is likely not running with elevated privileges, so it cannot write the key.
I ran it under the Administrator account. To be precise: the first account I created when the system was installed. Besides, with Regedit it wasn't a problem to modify the registry. -- José
Conor?
-- Best of Luck,
Rick Rogers, aka "Nutcase" - Microsoft MVP http://mvp.support.microsoft.com/ Windows help - www.rickrogers.org
"Colin Barnhorst" wrote in message
Conor is correct. In Vista an administrator runs as a user but can give permission as an administrator to perform an action that changes the computer. That sets up a security model where no script or program can execute without the user's awareness. That was the problem with running as administrator in XP. Malware could change something in the computer because it could inherit the administrator's permissions without his knowledge.
"José" wrote in message On Fri, 23 Jun 2006 06:28:27 -0400, "Rick Rogers" <rick@mvps.org wrote in microsoft.public.windows.vista.general:
Actually, it is a permissions issue. The program is likely not running with elevated privileges, so it cannot write the key.
I ran it under the Administrator account. To be precise: the first account I created when the system was installed. Besides, with Regedit it wasn't a problem to modify the registry. -- José
Windows Vista
User login
Related topics
- Gates retired!
- Admin account constantly being asked OK for everything
- The Windows VISTA Install Crash (!!!) Please HELP (!!!)
- Vista beta 2 & D-:ink DWL-G122
- How to Install Vista from Scratch Using ISO-DVD
- EZ Anti Virus
- Remote Assistance Firewall
- Can I install Vista Beta on a local PC without internet conn
- nVIDIA 6600GT SLI Issues??
- Shell Extension?
- 5456->5472 upgrade problem
- windows could not prepare the computer to boot into the next
- Event Log Summary
- Rebooting Error
- Turn off display
- autorun.dll could not be loaded or is corrupted
- Microsoft Fingerprint Registration Wizard
- What apps will run under Vista>?
- Error When installing
- Vista System Requirements
- Problem in installation of VGA Driver for 845glva motherboar
- MARLETT FONT
- DllRegisterServer
- MSN Messenger with Vista Beta
- widescreen and hertz unavailable in world of warcraft
- Reading Video Card as 32mb when its 64mb
- Turning off Narrator
- Question about switching back to XP
- Vista Beta 2 Isntall
- Installation won't start up after burning Vista download
- Running DVD Vista Setup
- Cannot delete icon shortcuts from desktop
- Vista System Requirements Revealed by MS
- Nortel VPN
- Dual Boot install question