Jump to content
Xtreme .Net Talk

Add registry export to registry with Process.Start() without a message box popping up


Recommended Posts

Posted

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?

C#
  • *Experts*
Posted

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]

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...