Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

reading registry using c#?

Posted on 2012-03-20
2
Medium Priority
?
490 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 1400 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 45

Assisted Solution

by:AndyAinscow
AndyAinscow earned 600 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Progress

810 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