473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Setting Regisrty Permission

I need to be able to programmincally set (USER) permissions on a registry
key. I've read the Knowledge Base articles and they all point to a couple
of articles that seem to have been pulled form the knowledge base. (What's
up with that?) I've so tried numerous samples from various forums, none of
them work.

To be specific, my code will be installed by the admin (assuming the admin
has the machine locked down) and at this time I want to set permission for a
registry key so that when users log on they (my code) has access to that
key.

Help....


Aug 27 '06 #1
7 1189
Austin,

http://msdn.microsoft.com/library/de...classtopic.asp

I got it, you want to set the registry keys not for the Admin as the current
local user and not all users but for another user which can logon on this
computer. But therefore his/here User registry information is not at the
moment in the registry.

Not that I know it, however maybe others had the same problems reading your
message as I had and understand it now better.

I write this because reading your message this knowledge came very late, I
had already made another answer, I have left that link from that message.

Cor

"Austin Myers" <au*****@grm.netschreef in bericht
news:ey*************@TK2MSFTNGP06.phx.gbl...
>I need to be able to programmincally set (USER) permissions on a registry
key. I've read the Knowledge Base articles and they all point to a couple
of articles that seem to have been pulled form the knowledge base. (What's
up with that?) I've so tried numerous samples from various forums, none of
them work.

To be specific, my code will be installed by the admin (assuming the admin
has the machine locked down) and at this time I want to set permission for
a registry key so that when users log on they (my code) has access to that
key.

Help....


Aug 27 '06 #2

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Austin,

http://msdn.microsoft.com/library/de...classtopic.asp
I got it, you want to set the registry keys not for the Admin as the
current local user and not all users but for another user which can logon
on this computer.
Almost, I want to simply have the admin (during the install of my code) to
make a key read and write accessible with my add in regardless of the users
permissions or rights. I do NOT want the admin to be required to make
manual changes to the registry. Hence my need to do it in code.

An example: Several people use a machine as limited users. The Admin
installs my add in, which writes keys to the registry. Once completed ANY
user that logs on the machine should be able to use the add in and access
the needed registry keys. As an FYI: I am storing my products registration
key in the registry along with some add in settings, etc.

Aug 27 '06 #3

1. Do you want to set registry acces by code ? or 2 do you want that your
code can access the registry keys while the user ( with non admin
priviliges ) can access the registry through your app ?

both are 2 total differnt things

if you want to write information for a user in the registry , you do this in
the current user section you do not need to set specific rights for the user
in this section as it is there own private data

regards

Michel Posseth


"Austin Myers" <au*****@grm.netschreef in bericht
news:ey*************@TK2MSFTNGP06.phx.gbl...
>I need to be able to programmincally set (USER) permissions on a registry
key. I've read the Knowledge Base articles and they all point to a couple
of articles that seem to have been pulled form the knowledge base. (What's
up with that?) I've so tried numerous samples from various forums, none of
them work.

To be specific, my code will be installed by the admin (assuming the admin
has the machine locked down) and at this time I want to set permission for
a registry key so that when users log on they (my code) has access to that
key.

Help....


Aug 27 '06 #4

"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
>
1. Do you want to set registry acces by code ? or 2 do you want that
your code can access the registry keys while the user ( with non admin
priviliges ) can access the registry through your app ?

Yes to both. When the Admin installs my code, I want it to make the needed
permission changes at that time so the Admin does not have to do it
manually. (With say regedit) After that change has been made, I want my
code to be able to access those keys regardless of the users rights.

Aug 27 '06 #5
Austin ,,

if i understand you corectly , you want to set a license key during
installation / registration by the admin
and want to read this key when the user starts the program vor validation ?
( am i correct )

in this case write the key under HKEY_LOCAL_MACHINE\SOFTWARE\

the local ACL wil take care of this as the administrator has full
priviliges and the users have read priviliges under this key

hth

Michel

"Austin Myers" <au*****@grm.netschreef in bericht
news:uz**************@TK2MSFTNGP03.phx.gbl...
>
"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
>>
1. Do you want to set registry acces by code ? or 2 do you want that
your code can access the registry keys while the user ( with non admin
priviliges ) can access the registry through your app ?


Yes to both. When the Admin installs my code, I want it to make the
needed permission changes at that time so the Admin does not have to do it
manually. (With say regedit) After that change has been made, I want my
code to be able to access those keys regardless of the users rights.



Aug 27 '06 #6

"Michel Posseth [MCP]" <MS**@posseth.comwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl...
Austin ,,

if i understand you corectly , you want to set a license key during
installation / registration by the admin
and want to read this key when the user starts the program vor validation
? ( am i correct )
Correct, mostly. (I also need to store some settings from my code.)

in this case write the key under HKEY_LOCAL_MACHINE\SOFTWARE\

Did, and when I log in as a limited user and my code tries to read it I get
an error saying I don't have permission to use that part of the registry.
the local ACL wil take care of this as the administrator has full
priviliges and the users have read priviliges under this key
Not that I can see.

I fully admit that I am floundering here with .NET, it was soooo much
simpler in VB.
Aug 27 '06 #7
Can I assume what I want can not be done with .net?
"Austin Myers" <au*****@grm.netwrote in message
news:ey*************@TK2MSFTNGP06.phx.gbl...
>I need to be able to programmincally set (USER) permissions on a registry
key. I've read the Knowledge Base articles and they all point to a couple
of articles that seem to have been pulled form the knowledge base. (What's
up with that?) I've so tried numerous samples from various forums, none of
them work.

To be specific, my code will be installed by the admin (assuming the admin
has the machine locked down) and at this time I want to set permission for
a registry key so that when users log on they (my code) has access to that
key.

Help....


Aug 28 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
16
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is...
2
by: Samuel Shum | last post by:
Hello, I'm just wondering if there are any .Net objects that I can use in the framework that set folders/files permission, assign quotas to users. Any suggestions/comments are welcome. Thanks in...
1
by: phil campaigne | last post by:
On Mon, 1 Mar 2004, phil campaigne wrote: >> Nigel J. Andrews wrote: >> > > >>> >On Mon, 1 Mar 2004, Phil Campaigne wrote: >>> > >>> >
10
by: John Salerno | last post by:
I always read about how you need to set certain file permissions (for cgi files, for example), but it's never been clear to me *how* you do this. I know you can run the line chmod 755...
1
by: iLL eFFect | last post by:
i am tryin to read the value of a key in the regisrty. i have to launch the acrobat reader from my application and the path of installation is in the registry...
0
by: =?Utf-8?B?U2FsaW0=?= | last post by:
Hi .Net gurus, I have a .Net C# application. I need to set permission for a domain user on given file share. Admin specifies the file share name as \\machine-name\shared Folder and user name...
5
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.