Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: How do i capture a folder of registry keys and make then a exe batch?

19 Aug 2012   #1

windows 7 64 bit
How do i capture a folder of registry keys and make then a exe batch?

I'm modifying an old game.. including patches, and modifications. I want to make my own installer using WinRar but WinRar doesn't do registry keys. I thought I'd make a self executing batch file with all my needed registry keys and point WinRar to that during install. I heard this was possible but have no idea how to do it.

Of course the folder that all the keys in it has sub folders with more registry keys.. I'd like to be able to capture them all and maintain that directory structure. Is this possible with a self executing batch file.. if so, How do I do it?

I don't need anyone to tell me what to do in WinRar once i have the file.. I know that already. I just need to know how to make that batch file itself. I can do it by exporting it to a .reg file, but that's no good.. i need an exe that WinRar can execute plus I need it to install these keys silently - otherwise I get the popup asking if I'm sure I want to install these keys. Since this version of the game will be shared with friends, I don't need that, I need it to look professional.

Thank you.

My System SpecsSystem Spec

19 Aug 2012   #2

W7 Pro SP1 64bit

Quote   Quote: Originally Posted by Dark Rider View Post
....WinRar doesn't do registry keys....
Then use a tool that does - like AutoIt. You can look on their forum and find scripts that will convert a ".reg" file into AutoIt's regwrite lines for that part of your code. AutoIt can handle the rest of the install too.
My System SpecsSystem Spec
19 Aug 2012   #3

windows 7 64 bit

Thanks but if this is the tool you're talking about, it looks way beyond the scope of my project. AutoIt - AutoItScript It saiy, " if you ever written a script or high level programming language, then AutoIt should be easy for you - .. I'm like WHAT?

After some more reading, I may be able to do it with a reg file by pointing to RegEdit and my exported file and using the /s variable. Thats the gist of it.. not sure this is right or even if it will work.. I'd ask in a winrar forum beu it seems winrar doesn't have a forum.

Problem is, the exported reg file is for regedit 5.0 which will work on Win 7 and above. For Win XP I don't think it will work.. XP uses 4.0.
My System SpecsSystem Spec

21 Aug 2012   #4

W7 Pro SP1 64bit

Both XP and Windows 7 export reg info to a file that starts with:
Windows Registry Editor Version 5.00
My System SpecsSystem Spec

 How do i capture a folder of registry keys and make then a exe batch?

Thread Tools

Similar help and support threads for2: How do i capture a folder of registry keys and make then a exe batch?
Thread Forum
AuditPol.exe - Where are the registry keys? System Security
Deleted Registry Keys Performance & Maintenance
Can't write into registry (keys already in use) Software
Deleting registry keys with a batch file? General Discussion
what video capture card would i need to make machinima on windows 7 os Hardware & Devices
Batch, Registry & UAC General Discussion
Batch editing of Registry Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 03:02 AM.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33