Sure, but would you use those for your "application Installation key"? <gdr>
"Valery Pryamikov" <valery@harper.no> wrote in message
news:1150876541.668145.146260@y41g2000cwy.googlegroups.com...
> Hi Nicole,
>
>> You should have no problems reading from your app's key under HKLM as a
>> non-admin. If this isn't working, could you please post the full key
>> path
>> as well as the full exception details (including call stack listing), as
>> returned from its ToString method?
>
> here are two keys that you can't read as non-admin ;-)
>
> HKLM\SAM\SAM and
> HKLM\SECURITY
>
> And I guess the exception will be "Access denied" :D
>
> -Valery.
>
http://www.harper.no/valery >
> Nicole Calinoiu wrote:
>> "serge calderara" <sergecalderara@discussions.microsoft.com> wrote in
>> message news:9B052532-CEE9-48FB-A06A-AA82A86404E5@microsoft.com...
>> <snip>
>> > What is the best and proper way to be able to read
>>
>> You should have no problems reading from your app's key under HKLM as a
>> non-admin. If this isn't working, could you please post the full key
>> path
>> as well as the full exception details (including call stack listing), as
>> returned from its ToString method?
>>
>>
>> > and right data to my
>> > application Installation key in the registry even with a restricted
>> > user ?
>>
>> Only write to your application's key under HKLM when running under an
>> admin
>> account (e.g.: at installation). When running as a non-admin, write a
>> separate key under HKCU instead.
>>
>>
>> > Do I have to defined declarative acces to the function which reads or
>> > write
>> > inside my code ?
>> >
>> > or
>> >
>> > Do I have to usse the CAS configuration ? I have try to use the second
>> > solution, the defined a new Code group, then attach a new Permision set
>> > for
>> > that group with "Application Directory" rule and then define the
>> > Read/write
>> > permision for registry. But that does not seems to work.
>>
>> CAS will not help you bypass user permissions on the registry keys. If
>> your
>> application is locally installed, you are presumably running with
>> unrestricted CAS permissions anyway, so you should not need to mess with
>> CAS
>> at all in this scenario.
>