Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
1  
Why would you want this, if not for malicious purposes ? –  b0fh Jul 20 '10 at 18:16

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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