Link to home
Start Free TrialLog in
Avatar of Richard Kreidl
Richard KreidlFlag for United States of America

asked on

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

Avatar of Lotok
Lotok
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of Richard Kreidl

ASKER

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
the /s prevents it prompting.
it's still prompting me
ASKER CERTIFIED SOLUTION
Avatar of Lotok
Lotok
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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?