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


  1. Posts : 48
    windows 7 64 bit
       #1

    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.
    Last edited by Dark Rider; 19 Aug 2012 at 01:33.
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    Dark Rider said:
    ....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


  3. Posts : 48
    windows 7 64 bit
    Thread Starter
       #3

    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


  4. Posts : 10,485
    W7 Pro SP1 64bit
       #4

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


 

  Related Discussions
Our Sites
Site Links
About 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 10:28.
Find Us