Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use windows vista but this question is for other windows versions as well.

When I double click to install a reg file I get this warning:

Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust the source of this information in myFile.reg, do not add it to the registry.

Is there any way to get rid of it and from the approval message after?

share|improve this question
2  
Why would you want this, if not for malicious purposes ? – b0fh Jul 20 '10 at 18:16
up vote 3 down vote accepted

Regedit.exe supports a /s command-line switch to not display these messages. For example, to silently run the .reg file (with the /s switch) from a login script batch file, use the following syntax: regedit.exe /s path of .reg file

http://support.microsoft.com/kb/310516/

That might help you

share|improve this answer

Change the value of the key:

HKEY_CLASSES_ROOT\regfile\shell\open\command

to:

regedit.exe /s "%1"

Be VERY careful after doing so - that warning is there for good reason.

share|improve this answer
    
good answer <- (comment is to short) – jer.salamon Jul 20 '10 at 17:58

protected by Michael Hampton Mar 10 at 3:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.