You are here

Backup data

4 posts / 0 new
Last post
Session
Offline
Last seen: 1 year 5 months ago
Joined: 2008-06-08 06:42
Backup data

I was wondering if I could just rename the folder of the application that I am trying to make portable in order for it to not overwrite settings. I know that this is a quick hack but is it acceptable to do this? Any help appreciated.

Thanks,
Session

P.S. Ask if you don't understand what I mean. I don't think its very clear but I was unsure how to word it.

digitxp
digitxp's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2007-11-03 18:33
It's a little unclear...

but I'm immensly excellerating at perplexing peers with overly complicated and useless words, so I can understand :P.
Normally, if an app stores things in APPDATA and we can't redirect it, we usually check if an existing folder is there, if there is, we move it. If not, we skip over to the moving. Here is a basic structure (in English):

Check if %Folder% exists. If it does, jump to label Backup. If not, jump to label MoveSettings.

Label Backup:
Rename folder %Folder% to %Folder%Backupby%APPNAME%Portable
Go to label MoveSettings.

Label MoveSettings:
Create folder %Folder%
Copy all data in %DATADIR% to %Folder%
Delete contents in %DATADIR%

Insert original signature here with Greasemonkey Script.

Session
Offline
Last seen: 1 year 5 months ago
Joined: 2008-06-08 06:42
Why is it you that seems to

Why is it you that seems to solve all my problems? Biggrin
So I can rename the data folder and get away with it? I am currently copying it to Data\Backup and it takes an age.

Session

digitxp
digitxp's picture
Offline
Last seen: 11 years 2 months ago
Joined: 2007-11-03 18:33
Well,

If you are saying to rename the data folder of an existing installation, then yes, almost all launchers do that. The existing installation is renamed, and the data folder is copied over to where the existing installation folder used to be. If it takes an age, did you try redirecting?
BTW, maybe I answer all your problems because my mom says I think too much and you are a proffesionall dreamer :P.

Insert original signature here with Greasemonkey Script.

Log in or register to post comments