Exclued a String Value from Cleaner

Is there any way to exclued one string value from being cleaned? I know we can include all by using *.* or other means, but I want to exclude a value.

By way of example, in Office XP, Access keeps its Default Data Directory at

HKCU\Software\Microsoft\Office\10.0\Access\Settings in a String Value called "Default Data Directory."

Currently, the winapps.ini for CCleaner shows:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings

which means everything in the Settings folder will be cleaned.

Are there any commands that I can use to build a new RegKey that will exclude the String Value for the Default Data Directory; something that would logically say "not" Default Data Directory or "all but" Default Data Directory?

Incidentially, to keep this from happening, I currently have a semi-colon in front of the entire RegKey9 in the winapps.ini file but that basically is preventing CCleaner from cleaning everything in the Settings folder.

My "exclued" request may have other applications for other programs.

Any thoughts?

Is there any way to exclued one string value from being cleaned? I know we can include all by using *.* or other means, but I want to exclude a value.

By way of example, in Office XP, Access keeps its Default Data Directory at

HKCU\Software\Microsoft\Office\10.0\Access\Settings in a String Value called "Default Data Directory."

Currently, the winapps.ini for CCleaner shows:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings

which means everything in the Settings folder will be cleaned.

Are there any commands that I can use to build a new RegKey that will exclude the String Value for the Default Data Directory; something that would logically say "not" Default Data Directory or "all but" Default Data Directory?

Incidentially, to keep this from happening, I currently have a semi-colon in front of the entire RegKey9 in the winapps.ini file but that basically is preventing CCleaner from cleaning everything in the Settings folder.

My "exclued" request may have other applications for other programs.

Any thoughts?

No ideas?

welcome to the forums roxie :D

i dont think that its possible.

it may be fixed in an upgrade.

I'll PM MrG and ask him about it :)

Hi roxie,

At the moment there is no way to mark one string as an exclusion, and to clean all the others.

If there are specific keys you want to delete then I'd suggest copying the entire Office XP into a winapp2.ini file and then replacing the entry:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings

With something more specific like:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings|Key1

RegKey10=HKCU\Software\Microsoft\Office\10.0\Access\Settings|Key2

This way it will always keep the key you want, remove others you don't want and it won't be overwritten when you upgrade to a new version of CC.

Hope this helps

MrG

Hi roxie,

At the moment there is no way to mark one string as an exclusion, and to clean all the others.

If there are specific keys you want to delete then I'd suggest copying the entire Office XP into a winapp2.ini file and then replacing the entry:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings

With something more specific like:

RegKey9=HKCU\Software\Microsoft\Office\10.0\Access\Settings|Key1

RegKey10=HKCU\Software\Microsoft\Office\10.0\Access\Settings|Key2

This way it will always keep the key you want, remove others you don't want and it won't be overwritten when you upgrade to a new version of CC.

Hope this helps

MrG

Mr G,

Thanks, that was what I suspected; and I know that Access keeps its settings differently than the other Office suite programs. The one string value is the "Default Data Directory." Once I set it, its a pain to have it deleted each time CCleaner runs.

Not being that familiar with the keys, can you give me an example of what I would put in "Settings|key1?"

But now I'm curious. Does winapps.ini run first, then winapps2.ini? What I'm concerned about is, won't the Access settings be removed once winapps.ini runs?

I guess I don't understand the sequence, but if I create new keys in winapps2, how do I prevent winapp.ini from cleaning the Settings folder?

Currently, I just put a semi-colon in front of Key9 in winapps.ini - but as you noted, I have to do that each time I upgrade to the next version.

Mr G,

Thanks, that was what I suspected; and I know that Access keeps its settings differently than the other Office suite programs. The one string value is the "Default Data Directory." Once I set it, its a pain to have it deleted each time CCleaner runs.

Not being that familiar with the keys, can you give me an example of what I would put in "Settings|key1?"

But now I'm curious. Does winapps.ini run first, then winapps2.ini? What I'm concerned about is, won't the Access settings be removed once winapps.ini runs?

I guess I don't understand the sequence, but if I create new keys in winapps2, how do I prevent winapp.ini from cleaning the Settings folder?

Currently, I just put a semi-colon in front of Key9 in winapps.ini - but as you noted, I have to do that each time I upgrade to the next version.

Mr. G:

I tried your suggestion - copied the [Office XP] information into the winapps2.ini but since it still appears in the winapps.ini, it looks like that file still takes precedence since no matter what I change in the winapps2 file, Access is still getting cleaned by the winapps.ini.

Did I missunderstand what you intended? If I delete the original Office XP from the winapps.ini, won't it get put back in with the next release?

I'm back to "which runs first" - winapps.ini or winapps2.ini and what happens if both files contain Office XP options?

Thanks - sorry to keep this going.

Mr. G:

I tried your suggestion - copied the [Office XP] information into the winapps2.ini but since it still appears in the winapps.ini, it looks like that file still takes precedence since no matter what I change in the winapps2 file, Access is still getting cleaned by the winapps.ini.

Did I missunderstand what you intended? If I delete the original Office XP from the winapps.ini, won't it get put back in with the next release?

I'm back to "which runs first" - winapps.ini or winapps2.ini and what happens if both files contain Office XP options?

Thanks - sorry to keep this going.

I think the easiest way to do it is to rename the entry you've copied to winapp2. In the square brackets at the top of the entry is the name that will appear in CCleaners applications section so if you change it to something like Office XP Modified (or anything you want), then when you open CCleaner you will have TWO Office tickboxes - the original and the winapp2 entry that you renamed. Then you can just tick the modified entry and untick the original one.

Hope that makes sense :)

I think the easiest way to do it is to rename the entry you've copied to winapp2. In the square brackets at the top of the entry is the name that will appear in CCleaners applications section so if you change it to something like Office XP Modified (or anything you want), then when you open CCleaner you will have TWO Office tickboxes - the original and the winapp2 entry that you renamed. Then you can just tick the modified entry and untick the original one.

Hope that makes sense :)

JD - It made perfect sense - and it works like a champ! I wasn't sure what MR. G was getting at when he said to copy the Office XP entries over to the winapps2 file - I figured both files would run and I'd be back to where I started.

Thanks so much for the help - now I can keep the Default Data Directory but clean the "history files" with individual keys - unfortunately, Access builds about 20 string values, so I need to build 19 keys to clean in order to keep the one that I want. Maybe someday we can figure out how to "exclude" or build a "not" logic command to clean everything "except"......

Glad I could help :)