EFileTahi-A Posted November 22, 2004 Posted November 22, 2004 Hello, I need to add a key to win registry so that I can retrieve the installed program path. 1 - How do I add a key with the programs path? 2 - When will I add it anyway? During the programs instalation? How? 3 - And how do I read the registration key that includes the path? This is my first attempt to use the win registry, I total new to this... Tks for any possible help. Quote
EFileTahi-A Posted December 4, 2004 Author Posted December 4, 2004 Just wondering why haven't I got any answer... If there is something wrong with my thread, let me know about it... tks Quote
*Gurus* Derek Stone Posted December 4, 2004 *Gurus* Posted December 4, 2004 You can create, modify and delete registry keys and values using the [msdn]Microsoft.Win32.Registry[/msdn] class. The path to your application is retrieved as follows: Dim applicationPath As String = System.Reflection.Assembly.GetExecutingAssembly().Location Most programs add keys and values to the registry when they are installed, and also when they are run for the first time. It is up to you to decide which keys and values are persisted and when. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.