Page 1 of 1

Corrupt Registry

Posted: Tue Mar 08, 2022 3:39 pm
by SPerman
I've been having some strange behaviors in solidworks off and on, and I've decided that the problem is a corrupt registry. Deleting the registry makes the problems go away, but I also lose all of my customization. (The problems I've seen are no custom appearances and no material favorites, among other things.

What is the most painless way of rebuilding a corrupt registry? Is it possible to save anything, or do I have to start from scratch? How do I even figure out what all of my customizations are?

I have two computers setup almost identically. Can any settings be shared between the two? (I think exporting settings from one computer and importing them to the other is what corrupted the registry.) I have the registry exported from my home computer (which appears to be working without any issues.) importing those settings to my work computer creates the issues.

Re: Corrupt Registry

Posted: Tue Mar 08, 2022 3:46 pm
by AlexLachance
SPerman wrote: Tue Mar 08, 2022 3:39 pm I've been having some strange behaviors in solidworks off and on, and I've decided that the problem is a corrupt registry. Deleting the registry makes the problems go away, but I also lose all of my customization. (The problems I've seen are no custom appearances and no material favorites, among other things.

What is the most painless way of rebuilding a corrupt registry? Is it possible to save anything, or do I have to start from scratch? How do I even figure out what all of my customizations are?

I have two computers setup almost identically. Can any settings be shared between the two? (I think exporting settings from one computer and importing them to the other is what corrupted the registry.) I have the registry exported from my home computer (which appears to be working without any issues.) importing those settings to my work computer creates the issues.
I have a custom profile made that we can load when our registry gets corrupted so that we can get back all the settings customization we have without "reloading the corruption". I was told importing settings can import the corruption, but I've never had anything that I had reset get instantly corrupt after.

Re: Corrupt Registry

Posted: Tue Mar 08, 2022 6:11 pm
by Frederick_Law
I want to work on a "SW Registry" repair tool which can remove "corrupted" registry items.

Re: Corrupt Registry

Posted: Tue Mar 08, 2022 6:15 pm
by SPerman
Let me know when you have it done. I will buy a copy.

Re: Corrupt Registry

Posted: Tue Mar 08, 2022 6:21 pm
by Frederick_Law
When you have a "corruption", save the SW registry and send it to me. So I can compare what could be wrong.

Re: Corrupt Registry

Posted: Tue Mar 08, 2022 11:10 pm
by zwei
So... i am not sure will this help...

If you create a backup of your setting using SOLIDWORKS COPY SETTING Wizard, you can actually "examine" the *.sldreg file in notepad to see what customization you made (and maybe even fix your corrupt registry)
image.png
One trick i learned is to rename the *.sldreg to *.reg so that it is easier to examine in notepad++

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 8:25 am
by Glenn Schroeder
SPerman wrote: Tue Mar 08, 2022 3:39 pm I've been having some strange behaviors in solidworks off and on, and I've decided that the problem is a corrupt registry. Deleting the registry makes the problems go away, but I also lose all of my customization. (The problems I've seen are no custom appearances and no material favorites, among other things.

What is the most painless way of rebuilding a corrupt registry? Is it possible to save anything, or do I have to start from scratch? How do I even figure out what all of my customizations are?

I have two computers setup almost identically. Can any settings be shared between the two? (I think exporting settings from one computer and importing them to the other is what corrupted the registry.) I have the registry exported from my home computer (which appears to be working without any issues.) importing those settings to my work computer creates the issues.
Where are those custom appearances and material favorites saved? If they're saved somewhere other than in the SW installation folder, and if you use the Copy Settings Wizard to save your customizations, then I don't understand what you're losing by resetting the registry.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 8:58 am
by SPerman
I'm losing all of my menu and toolbar customization.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 9:05 am
by Glenn Schroeder
SPerman wrote: Wed Mar 09, 2022 8:58 am I'm losing all of my menu and toolbar customization.
The Copy Settings Wizard should take care of that.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 9:09 am
by SPerman
The copy settings wizard is what I am using, and what is creating the corruption.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 9:09 am
by zwei
Glenn Schroeder wrote: Wed Mar 09, 2022 9:05 am The Copy Settings Wizard should take care of that.
The copy setting wizard basically "copy" all your solidworks registry...
So if your registry is corrupted when you copy the setting, reloading it will corrupt the registry again

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 9:16 am
by SPerman
Computer A - Working fine. Export settings.

Computer B- Import settings from computer A. Things are now not working as expected.

I think I will go one setting at a time adding it back to the registry until I figure out what is causing the problem.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 10:27 am
by AlexLachance
SPerman wrote: Wed Mar 09, 2022 9:16 am Computer A - Working fine. Export settings.

Computer B- Import settings from computer A. Things are now not working as expected.

I think I will go one setting at a time adding it back to the registry until I figure out what is causing the problem.

Different hardwares? Perhaps something about the graphic card? Have you checked the famous enhanced graphic performance option?

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 10:31 am
by Glenn Schroeder
Zhen-Wei Tee wrote: Wed Mar 09, 2022 9:09 am The copy setting wizard basically "copy" all your solidworks registry...
So if your registry is corrupted when you copy the setting, reloading it will corrupt the registry again
Thank you for explaining that.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 10:40 am
by HerrTick
Likely there is a spoiler in the registry outside of your settings but in a position that still affects your settings.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 10:43 am
by AlexLachance
I would try updating graphic drivers and see if you get different results, SolidWorks is really picky with these.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 12:51 pm
by Frederick_Law
When you import settings, don't import everything. Pick one group and test. This way you know which one cause problem.

Re: Corrupt Registry

Posted: Wed Mar 09, 2022 12:54 pm
by Frederick_Law
Zhen-Wei Tee wrote: Tue Mar 08, 2022 11:10 pm So... i am not sure will this help...

If you create a backup of your setting using SOLIDWORKS COPY SETTING Wizard, you can actually "examine" the *.sldreg file in notepad to see what customization you made (and maybe even fix your corrupt registry)

image.png

One trick i learned is to rename the *.sldreg to *.reg so that it is easier to examine in notepad++
I use Notepad++ compare addin to check good and bad reg.
I see a few entries in wrong section.