Making Reg file with Current Path

This is a discussion about Making Reg file with Current Path in the Customization Tweaking category; Hi Guys, If I export a registry file that has a path as InstallDir C:\ABC\DEF Now I want to change the reg file such that when I import that reg file, the path in InstallDir should be of the folder where the reg file exists How can I accomplish that? ARC

Customization Tweaking 1789 This topic was started by ,


data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
Hi Guys,
 
If I export a registry file that has a path as
 
InstallDir "C:\ABC\DEF"
 
Now I want to change the reg file such that when I import that reg file, the path in InstallDir should be of the folder where the reg file exists
 
How can I accomplish that?
 
ARC

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jul 2
Created
Jul 3
Last Response
0
Likes
2 minutes
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar19.webp

3857 Posts
Location -
Joined 2000-03-29
I might be missing what your question is, but you can edit the file using notepad to reflect whatever value change you require.

data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
OP
Thanks for replying..
 
Ok It is like this
 
I have a game that I want to save on CD. I have exported its registry entry in file, Set.reg
 
Now the reg file contains an InstallDir field with the value C:\Games\NBA
 
I will save this file in the NBA Directory. Now I zip the NBA folder and burn the zip on CD.
 
Now when I unzip the game from CD to some other folder not the above one, lets say C:\NBA the registry would not correspond. Therefore, I want that when I import that reg file from that new folder, it should change that
 
InstallDir value to the folder it resides in, namely C:\NBA
 
Thats basically it!
 
ARC

data/avatar/default/avatar19.webp

3857 Posts
Location -
Joined 2000-03-29
I would just manually edit it if I change installation directories.

data/avatar/default/avatar14.webp

507 Posts
Location -
Joined 2000-01-30
OP
Well,
 
I believe that there is way to do that.
 
ARC

data/avatar/default/avatar40.webp

540 Posts
Location -
Joined 2001-02-28
I Guess yo can use variables and such if you use another batc process to do it, but I do not see the necessity. Being honest. I am not sure haw the .reg files are handled either so above hypothesis might be totally rubbish.
 
Stick to what clutch said. or go out and Buy the NBA CD! You can Clone CD it if you really wish to. Just dont tell us about it.