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
Dark Rider

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
UsernameIssues

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
Dark Rider

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
UsernameIssues

W7 Pro SP1 64bit
 
 

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

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




Thread Tools





Similar help and support threads
Thread Forum
removing batch file from registry
recently I ran Mamu's add icons to system batch file for mame icons. I wasn't satified with the results so I was going to do a system restore. Then I learned system restore was turned off "which I turn off when I defrag then turn back on when completed". Now I can't figuere out how to remove it....
Software
Unusual registry keys
All, Today was not a good day - I ran Windows update and after restarting, my computer hung at the ""Preparing to configure Windows. Do not turn off your computer." message. Took numerous reboots, including safe mode and using a previous restore point to get things running again. After all of...
General Discussion
Deleting registry keys with a batch file?
I downloaded a beta version of a program and it for some reason it has a "usage count" in the registry which denies access to the program after 10 uses. When i delete the key it works again but it's pretty annoying to keep deleting it through the registry all the time. I want to make a batch...
General Discussion
what video capture card would i need to make machinima on windows 7 os
like the title states i keep hearing about how i need a video capture card to make machinimas from game play i record from my xbox 360, however i havent a clue how i go about looking for this or if it is even necessary for windows 7 os laptops (i dont have desktop) so any and all info would help,...
Hardware & Devices
Batch, Registry & UAC
Hi all, I've written a batch file which adds registry keys (with dynamic driveletter recognition) upon startup, launches a program and deletes the keys when closing the program. My only concern now is that when launching the batch, I get a UAC dialog for the registry changes. Is there some...
General Discussion
Batch editing of Registry
I want to edit my registry to remove EVERY reference to a program which I have uninstalled, but which still has dozens (or more) of references still embedded in the registry. Is there a registry editor in which I can enter one single word, and the editor will search out every mention of that...
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 18:55.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App