Registry Permissions

I have an app that will store Initialization settings in HKLM\Software\Company Name\App name in the Windows 2000 registry. The app will be install by an Adminstrator using an msi. However, some of the Initialization settings are configurable by the users whom are set up as Power Users. When I try to write these settings back into the registry, I get an ERROR_ACCESS_DENIED return code.

Due to the nature of the application, I need to store the registry settings in HKLM so writing them off to the HKLU is not an option. Also, due to the number of workstations and the locations, going to each machine to set permissions to the subkey is inpractial. What I need is a way to Programatically set user permissions for this subkey.

Thanks in advance
BucksAsked:
Who is Participating?
 
SpideyModConnect With a Mentor Commented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0
 
EDDYKTCommented:
Write your own component and run under com+ with specific user (administrator)
0
 
BucksAuthor Commented:
I am using a dll that I wrote to do the update. How do I run it under a specific user? I am not familier with this.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Ashen_69Commented:
When you add a DLL to ComServices it will ask you for a default user to run the DLL under.  You should make this user an admin account that exists on all of the machines the application will run on.  After you have added it on one you can export an MSI package for use on the rest of you machines.
0
 
EDDYKTCommented:
Run Component Services from Administrative Tools

Double click -> component Services->my computer -> com+ applications

Right click on com+ applications and select new->application

Click Next and click create an empty application

Enter your package name (you make one up). Clieck next
Select this user and enter the user name and password (this user must be able to write to HKLM key). and then click finish

double click your package name and highlight component and then right click and select new -> component

Add your component into
0
 
BucksAuthor Commented:
I created the com+ object, exported it to an msi and installed it on the client machine, and no luck. Still would not allow a Power user to update. Any suggestions?
0
 
EDDYKTCommented:
Have you set to run under a specific user?
0
 
BucksAuthor Commented:
I appologize for not responding until now. I was called out on Business unexpectanly and have not been able to get back to this site until now (long story). However, thanks for the input EDDYKT. The problem I had was that when I installed the COM+ object on the client machine, the object came over, but the Admin user name and password came across blank. I have to fill these fields in on the machine. Am I doing something wrong?

Thanks
0
 
EDDYKTCommented:
Do you get it working now after you fill in admin user name and password?
0
 
DanRollinsCommented:
Bucks, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
All Courses

From novice to tech pro — start learning today.