Registry c# code to read/write

  • Thread starter Thread starter jj
  • Start date Start date
J

jj

1. How do you get the full path of an installed application from another
application? ( Example: I want to get the the full path where "Notepad" is
installed from "Mysimple" application)

2. How do you enter relevant information of my application (keys,
values..etc) into registry?

Thanks in advace
Newbie to c# here
 
1. How do you get the full path of an installed application from another
application? ( Example: I want to get the the full path where "Notepad" is
installed from "Mysimple" application)

It's hard to give a general answer to this one, it varies from one
application to another. For Notepad specifically, I think you can
safely assume that's its located in the Windows System directory
(System.Environment.SystemDirectory).

2. How do you enter relevant information of my application (keys,
values..etc) into registry?

Use the Microsoft.Win32.RegistryKey class.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top