Author Topic: Registry Backup Beta  (Read 358966 times)

0 Members and 1 Guest are viewing this topic.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #250 on: July 09, 2012, 10:53:55 am »
I held off putting out v1.2.2.

I want to find a way to handle the profiles not being restored on some systems because Windows doesn't put the move operation into the new system reg files.

Only way I can think of is to make the restore a 2 step process.

If a person wants to restore both the profiles and system reg files have it do the system reg first, reboot then do the profiles and reboot again.

I hate this idea but would be the only way to make sure it works for sure.

Just bugs me that the restore works fine on all my test machines. What is different about yours I wonder?

What version of Windows where you using again?

Shane

Offline neroilo

  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 186
  • Karma: 9
    • View Profile
Re: Registry Backup Beta
« Reply #251 on: July 09, 2012, 11:55:20 am »
I held off putting out v1.2.2.

I want to find a way to handle the profiles not being restored on some systems because Windows doesn't put the move operation into the new system reg files.

Only way I can think of is to make the restore a 2 step process.

If a person wants to restore both the profiles and system reg files have it do the system reg first, reboot then do the profiles and reboot again.

I hate this idea but would be the only way to make sure it works for sure.

Just bugs me that the restore works fine on all my test machines. What is different about yours I wonder?

What version of Windows where you using again?

Shane

The system in question is Windows 7 x64 Ultimate.
I don't know if it is related to this issue, but I recently restored a backup image into my new SSD (that I'm using now as main system) using Norton Ghost 15.

Unfortunately I can't say if Norton Ghost 15 can be involved, because I didn't try to restore registry files with Registry Backup before to install Norton Ghost.

Except Norton Ghost in background, I'm using MSE as antivirus and Windows Firewall.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #252 on: July 09, 2012, 11:59:24 am »
I am also on Win 7 64bit and the restore works fine.

Still, I want this to work properly for everyone.

I wonder if there is a way for me to add the move file operations manually to the restore system reg file.

I need to do some research :-)

Shane

Offline chris635

  • Sr. Member
  • ****
  • Join Date: Nov 2011
  • Posts: 442
  • Location: USA
  • Karma: 11
    • View Profile
Re: Registry Backup Beta
« Reply #253 on: July 13, 2012, 08:03:05 pm »
Shane

   Just Curious. Are you planning on a new version this weekend?


Chris
Physical Science Technician
Avid Motorcyclist

Have a nice day - Chris

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #254 on: July 13, 2012, 08:05:40 pm »
I am actually working on the new version now.

Making it 1.3.0 instead.

I am redoing how it does the restore. After more tests I found that the user profiles where not being replaced if you restored the system reg files as well.

I am very close to posting it here for testing.

Basically what happens is when the profiles are restore the pending move operations are stored in the reg. Problem is it got stored in the old reg.

So the fix (If it works, testing now) is to take the pending moves and put it into the restored system reg file. :wink:

Shane

Offline chris635

  • Sr. Member
  • ****
  • Join Date: Nov 2011
  • Posts: 442
  • Location: USA
  • Karma: 11
    • View Profile
Re: Registry Backup Beta
« Reply #255 on: July 13, 2012, 08:10:40 pm »
When you get it done I'll try it out on my laptop first. I have to work tomorrow and Sunday (12 hrs both days). If you want I'll test when I can.


Chris
Physical Science Technician
Avid Motorcyclist

Have a nice day - Chris

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #256 on: July 13, 2012, 08:12:14 pm »
Lets give this a run before Sundays release  :wink:

neroilo make sure you give it a test run as well please :-)

v1.3.0
Per user request you can now name each registry backup.
Major change to the restore process in the program. Before the user profile registry files didn't always get restored because the move file operation was written to the old system registry file. This only happened if you restored the user profiles and the system registry at the same time and only when restoring from the program. This has now been fixed :-)

Shane

Offline Tomas_Sweden

  • Sr. Member
  • ****
  • Join Date: Oct 2011
  • Posts: 260
  • Location: Falköping
  • Karma: 7
    • View Profile
Re: Registry Backup Beta
« Reply #257 on: July 14, 2012, 04:01:27 am »
I did a restore with 1.3.0.

I changed a registry entry in "HKEY_CURRENT_USER" is that enough? so I see if restore have worked?
Anyway I did a backup before I change a value in the registry, then I did a restore, and the original value was there, so that worked!  :smiley:

The *.old registry file can I delete them, if I dont delete them, will they always be there till next restore?

Tomas
« Last Edit: July 14, 2012, 08:31:44 am by Tomas_Sweden »
Dell Laptop XPS L501X Intel i5-560M(2.66GHz), Win 7 Home Prem(SP1) 64 Bit, 4 GB RAM. Samsung SSD 850 PRO 256 GB.

Offline neroilo

  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 186
  • Karma: 9
    • View Profile
Re: Registry Backup Beta
« Reply #258 on: July 14, 2012, 07:40:24 am »
Issue fixed with 1.3.0. After a new full backup, I created a new registry key in "HKEY_CURRENT_USER". Restoring it (with all checkboxes selected), registry key is disappeared as expected.

But, as Tomas, I'd like to have some explanations about how these .old files work.

For example, UsrClass.dat.old last edit is july 8th, while UsrClass.dat last edit is 14th july.

In other old files, the day of the last edit is always the same.

EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?  :tongue:
« Last Edit: July 14, 2012, 08:52:05 am by neroilo »

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #259 on: July 14, 2012, 10:20:08 am »
The .old files are safe to delete.

When the program restores the current in use reg files, they are renamed to .old. This is much safer than trying to simply delete them.

When the program does another restore it automatically deletes the .old file if it is already there since a new .old will be coming. But once restored you can delete them if you wish. But just in case they are there if you need them.

So turns out I am a little bit of a dip some times lol. The restore wasn't working properly before.

When I tested the restore of the profile registry I had tested without restoring the system registry.

When replacing the profile registry files I use this "PendingFileRenameOperations"

http://technet.microsoft.com/en-us/library/cc960241.aspx

This of course is in the registry (The SYSTEM hive file)

So when you reboot the system hive file was replaced with those keys gone the profiles didn't get replaced.

Thanks to neroilo for letting me know. Now the question was how the heck do I fix it?

First thing that came to mind was writing another exe to check it and require 2 reboots. System reg files at one reboot and the profiles at the next. I HATED this idea.

So I did some digging and found what I needed. I can load other hive files to the registry to write to them.

So I changed the restore. It now does the user profiles first and then it will then read the "PendingFileRenameOperations" regkey from the current loaded system hive reg file.

Then it will copy the system reg hive file out of the backup to a temp folder (Which it does already) and then it loads that system hive and puts in the PendingFileRenameOperations into the soon to be restore system hive.

Then when the program restores the system hive the PendingFileRenameOperations will be there and the user profiles get restored :cheesy:

So I was able to keep from having to make the restore any harder or any different on the user and got it working even better than before. :wink:

Quote
EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?
Should be able to have it blank if you want.

Shane

Offline neroilo

  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 186
  • Karma: 9
    • View Profile
Re: Registry Backup Beta
« Reply #260 on: July 14, 2012, 11:09:18 am »

Quote
EDIT: I appreciate I can set a backup name, but if I don't want it, how can I do?
Should be able to have it blank if you want.

Shane

Ok, but the program doesn't remember it when I close and start again the program.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #261 on: July 14, 2012, 11:15:51 am »
Correct. Right now I have it set not to remember.

The reason why is lets say someone makes a name to identified it. Then they let it go as the auto backups keep going. If it saved the name every backup after that would have the same, thus confusing the person on which was the backup they wanted.

So I just have the one default name in there. I could just have the name blank by default instead :-)

Shane

Offline neroilo

  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 186
  • Karma: 9
    • View Profile
Re: Registry Backup Beta
« Reply #262 on: July 14, 2012, 11:18:45 am »
Then it will copy the system reg hive file out of the backup to a temp folder (Which it does already) and then it loads that system hive and puts in the PendingFileRenameOperations into the soon to be restore system hive.

Yeah, but what temp folder? C:\Windows\Temp? In my case I moved TMP and TEMP System variables from C:\windows\temp to d:\temp, have you considered this particular case?

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #263 on: July 14, 2012, 11:24:19 am »
Windows is very picky on this.

In order to use the Reg restore API in Windows the reg hive files HAVE to be on the same drive as windows or the API will fail.

So I have the program find the Windows folder and it puts the files into the Temp folder there :wink:

This way no matter what the reg files are copied to the same drive as Windows.

Also on the naming of the backup, do you think it would be a good idea to have the program auto name the backups when run automatically? Like "Auto Backup"

This way when you check the list you will know which was from the scheduled backup and which ones you did.

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #264 on: July 14, 2012, 12:47:18 pm »
I know what I will do.

I will add 2 settings to the advanced settings section.

Here you can tell the program the Default Backup name and the Default Backup name when run automatically.

This way people can still set their own like you want while not saving it on the main area and letting custom names work like I wanted.  :wink:

Will get started on it now.

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #265 on: July 14, 2012, 01:47:37 pm »
Updated, v1.3.0

This will be build to go out tomorrow unless anyone finds anything wrong :wink:

New settings are under the advanced settings.

Let me know what you think :wink:

Shane

Offline neroilo

  • Full Member
  • ***
  • Join Date: Jun 2012
  • Posts: 186
  • Karma: 9
    • View Profile
Re: Registry Backup Beta
« Reply #266 on: July 14, 2012, 02:26:43 pm »
Updated, v1.3.0

This will be build to go out tomorrow unless anyone finds anything wrong :wink:

New settings are under the advanced settings.

Let me know what you think :wink:

Shane

I think you've had a good idea there.
Quick report.. I can't exit from the program using Taskbar right click menu in Win 7. The only way is using the exit button in top right corner.

Under restore registry would it be possible to list back ups from newest to oldest in the drop down box?

In my other programs I use to auto format the date so I always new what format it was in. I then had users complain they want the format as the same as their system. (My simple internet meter is an example of this) So in there I add the option to allow the user to set the format.

This would be cool if it were possible to introduce it.
« Last Edit: July 14, 2012, 03:39:35 pm by neroilo »

Offline chris635

  • Sr. Member
  • ****
  • Join Date: Nov 2011
  • Posts: 442
  • Location: USA
  • Karma: 11
    • View Profile
Re: Registry Backup Beta
« Reply #267 on: July 14, 2012, 03:36:56 pm »
This version works well for me too. Release it lol  :tongue:

Chris
Physical Science Technician
Avid Motorcyclist

Have a nice day - Chris

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #268 on: July 14, 2012, 03:39:31 pm »
I try to release on Sundays, so It will be out tomorrow :-)

Shane

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #269 on: July 17, 2012, 10:53:31 am »
I am starting to think the registry backup program is ready to be replace erunt in my other programs for the registry backups :-) (Windows Repair, Advanced System Tweaker, Simple System Tweaker)

What do you guys think?

Shane

Offline chris635

  • Sr. Member
  • ****
  • Join Date: Nov 2011
  • Posts: 442
  • Location: USA
  • Karma: 11
    • View Profile
Re: Registry Backup Beta
« Reply #270 on: July 17, 2012, 11:28:43 am »
I agree. Will you keep this as a stand alone as well?


Chris
Physical Science Technician
Avid Motorcyclist

Have a nice day - Chris

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #271 on: July 17, 2012, 11:29:34 am »
Yeah it will be stand alone, just included with the program and ran from it. Same way Erunt currently is :wink:

Shane

Offline chris635

  • Sr. Member
  • ****
  • Join Date: Nov 2011
  • Posts: 442
  • Location: USA
  • Karma: 11
    • View Profile
Re: Registry Backup Beta
« Reply #272 on: July 17, 2012, 11:32:33 am »
Okay sounds good



Chris
Physical Science Technician
Avid Motorcyclist

Have a nice day - Chris

Offline Ztruker

  • Jr. Member
  • **
  • Join Date: May 2012
  • Posts: 77
  • Location: Space Coast of Florida
  • Karma: 1
    • View Profile
Re: Registry Backup Beta
« Reply #273 on: July 17, 2012, 04:45:21 pm »
Shane, just noticed that Edit Schedule only opens the Task Scheduler, it doesn't place you at the Tweaking.com - Registry Backup entry. Is there any way to do this that you know of?

I know it's not a big deal, just click on Task Scheduling Library then Tweaking.com - Registry Backup

Everything else looks good. I've already moved from ERUNT to t.cRB.
Rich
The only thing that is certain is that nothing is certain - Heraclitus.

Offline Shane

  • Administrator
  • Hero Member
  • *****
  • Join Date: Sep 2011
  • Posts: 9281
  • Location: USA
  • Karma: 137
  • "Knowledge should be shared not hidden."
    • View Profile
Re: Registry Backup Beta
« Reply #274 on: July 17, 2012, 05:13:23 pm »
I have to see if there is any options for it. Right now I just call the shell command like this

Call Shell("C:\Windows\System32\control.exe schedtasks", 1)

So I need to see if schedtasks has any options to give it.

Shane