• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 524
  • Last Modified:

Update the registry??

I have the following .REG file that I would like to make into an executable.
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings]
"MinorVersion"=";SP2;"
"CodeBaseSearchPath"="CODEBASE;<http://activex.microsoft.com/objects/ocget.dll>;<http://codecs.microsoft.com/isapi/ocget.dll>"
"UrlEncoding"="0x00000000"
"ActiveXCache"="C:\\WINDOWS\\Downloaded Program Files"
"ProxyEnable"=dword:00000001
"ProxyServer"="hoproxy:8080"
"ProxyOverride"="*.nml.com;*.nmfco.com;<local>"
"MigrateProxy"=dword:00000001

Open in new window

0
Richard Kreidl
Asked:
Richard Kreidl
  • 3
  • 3
1 Solution
 
LotokCommented:
you could make a batch file.

create a text file and rename it filename.bat
in the text file have the following

REGEDIT c:\myregfile.reg /s

running the bat file will install the registry values, you can change the path to the reg file to a UNC path or mapped drive if needed.
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
That'll work, but it asks me questions like do you want to add information to the registry file and so on...

I would like it to be invisible to the user. That's why I wondered can an executable be setup to run silently without the prompting??

Thanks
0
 
LotokCommented:
the /s prevents it prompting.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Richard KreidlSoftware DeveloperAuthor Commented:
it's still prompting me
0
 
LotokCommented:
my mistake, getting too late in the evening for me

syntax should be

REGEDIT /s c:\myregfile.reg
0
 
Richard KreidlSoftware DeveloperAuthor Commented:
I'm getting the following 3 prompts:

Are you sure you want to add the information in c:\ncfield1.REG to the registry?

Information in c:\ncfield1.REG has been successfully entered into the registry.

Are you sure you want to add he information in/s to the registry?
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now