Registry ACL Modification



I hope this is in the right area...if not I apologize.

I wrote an app that needs to add a few small strings in the registry. The
problem is, when run under the standard "user" rights, I do not have access
to add/remove/modify anything in the registry. It needs to add a few values
into HKEY_CURRENT_USER... but says I do not have access. I found a Microsoft
article on modifying the ACL of the registry using the "SetPerm.bas" file you
can download. I have downloaded it and tried it, but I am afraid that I'm an
idiot when it comes to this. This app is only going to be used on NT based
systems. Here is the article I mentioned:
http://support.microsoft.com/default.aspx?scid=kb;en-us;316440.

My question is this......what method should I use to safetly add values to
the registry for the current logged on user via code, when it says I don't
have access?

I know it can be done, but I'd prefer not to do the "hack" way by blowing
out the permissions and redoing it.

Thank You for your help :)

.



Relevant Pages

  • Re: Mobile Service & Auto Start
    ... The RegRestoreFile API is only supported by the object store-based registry. ... have never needed to write an app like this and I just figured ... So I have an exe that I start 5 min after I push a button. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Ini File vs Registry
    ... How do you manage the settings? ... dollars in hacking the OS to introduce the concept of registry ... Hard to migrate app ... but increasingly desktop developers are fighting it out ...
    (microsoft.public.vc.mfc)
  • Re: VFP Updates?
    ... Account", which is what many users do, e.g. in company networks. ... WinXP limited accounts as well as Vista UAC is quite easy ... considerations for installing and running a VFP app in Vista. ... directory/folder IS), and you don't need to write to registry, I think ...
    (microsoft.public.fox.programmer.exchange)
  • Re: OT - Desktop Linux
    ... I want to delete the file, but let the app using it to continue ... But it keeps it in the main registry instead of creating a per user ... It's next to impossible to shift apps from disk to disk ... drives can be mounted at will at any mount point or even as a ...
    (alt.sports.basketball.nba.la-lakers)
  • Re: How to allow my some of users to access to windows registry
    ... Sorry I meant HKCU. ... customization of the user running the app will be read from the registry. ... Secondly as part of the installer you would set permissions on ...
    (microsoft.public.win2000.advanced_server)

Loading