Solved

reading registry using c#?

Posted on 2012-03-20
2
474 Views
Last Modified: 2012-03-25
Hi,

I have a question about reading the registry from my .net desktop application.

I am trying to read the registry entries using c# from my application.
I understand this operation requires the admin permission.

My question is when I install some software like Word or Photoshop.
Every time they load, they access the registry to read info like when was last time it was opened or etc.

How does those application read the registry without the admin permission?

Can you explain?
0
Comment
Question by:dkim18
2 Comments
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 350 total points
ID: 37742208
No You Don't need any admin rights to read the registry...
However, if you need to manipulate registry entries, you do need admin rights

Given below is the link that helps you with the code to work with registry in c#:-

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27638295.html#a37737669
0
 
LVL 44

Assisted Solution

by:AndyAinscow
AndyAinscow earned 150 total points
ID: 37742259
Typically reading values is without problem.
Writing, however, can but not necessarily does require admin permissions.  Writing to the current user hive should be fine.  Writing to the local machine hive however almost certainly will require admin permission.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now