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

Dark Rider

New member
Member
Local time
2:00 PM
Messages
48
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.
 
Last edited:

My Computer My Computer

At a glance

windows 7 64 bit
OS
windows 7 64 bit
....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 Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
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 Computer My Computer

At a glance

windows 7 64 bit
OS
windows 7 64 bit
Both XP and W7 export reg info to a file that starts with:
Windows Registry Editor Version 5.00
 

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Back
Top