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]
"ActiveXCache"="C:\\WINDOWS\\Downloaded Program Files"

Open in new window

Richard KreidlSoftware DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
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??

the /s prevents it prompting.
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

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

syntax should be

REGEDIT /s c:\myregfile.reg

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.