aewarnick Posted March 29, 2003 Posted March 29, 2003 The was a way to do that in batch files, how can I do it in C#? If you double click on a reg export you get the message box that says, "Are you sure you want to add ... to the registry?". And then the confirmation that it is done. How can I stop those from popping up and just accept it? Quote C#
*Experts* Bucky Posted March 29, 2003 *Experts* Posted March 29, 2003 Have a look at the static Microsoft.Win32.Registry class for registry access and manipulation: [mshelp]ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfmicrosoftwin32registryclasstopic.htm[/mshelp] Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
aewarnick Posted March 29, 2003 Author Posted March 29, 2003 I know how to write to the registry with pure C# code with no outside files but what I mean is how to import a .reg file without that confirmation coming up. Quote C#
*Experts* Bucky Posted March 29, 2003 *Experts* Posted March 29, 2003 Well if you can do it with batch files, then have your program create the batch file, run it with Process.Start(), and then delete the batch file. Quote "Being grown up isn't half as fun as growing up These are the best days of our lives" -The Ataris, In This Diary
aewarnick Posted March 29, 2003 Author Posted March 29, 2003 Ok, if that is what I have to do. . . Thanks Bucky!! Quote C#
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.