Environment variables in custom locations

I would like to have the ability to add something like this:

FIREFOX|%appdata%\FirefoxPortable\

rather than

FIREFOX|c:\Documents and Settings\user\Application Data\FirefoxPortable\

I use the local user's application data folder because it is faster reading/writing to a hard drive instead of my usb stick.

Is it possible to implement?

I would like to have the ability to add something like this:

FIREFOX|%appdata%\FirefoxPortable\

Is it possible to implement?

Yes and No

It is NOT possible to do this with the built in "Include" section of my old version of CCleaner,

BUT it MAY become possible in future.

It IS ALREADY AVAILABLE when using winapp2.ini, even for my old version,

e.g. I have added my own special portion to winapp2.ini of :-

[*UserProfile]

LangSecRef=3024

DetectFile=%USERPROFILE%

Default=False

FileKey1=%APPDATA%\Macromedia\Flash Player\|*.*|RECURSE

FileKey2=%USERPROFILE%\Local Settings\Temp\|*.*|RECURSE

FileKey3=%USERPROFILE%\Temp\|*.*|RECURSE

FileKey4=%APPDATA%\Adobe\Flash Player\|*.*|RECURSE

Alan

It IS ALREADY AVAILABLE when using winapp2.ini

Thanks Alan, but does winapp2.ini support the FIREFOX directive which instructs CCleaner to compact databases, etc?

Thanks Alan, but does winapp2.ini support the FIREFOX directive which instructs CCleaner to compact databases, etc?

! ! ! !

That is a very different question, totally unrelated to Environmental Variables.

I do not know.

I am unaware of any Ccleaner ability to compact databases.

I do not know what you mean by a Firefox Directive.

My only experience of winapp2.ini, and I assume its sole purpose,

is to purge specified files, folders, and registry keys etc.

Alan

If you want to vacuum the Firefox sqlite database you can do that from inside of Firefox itself, no additional software required!:

http://lifehacker.com/5344418/make-firefox...g-your-database

Just save that info and code listed on that site into a text document and you'll be able to use it with even Firefox Portable.

Thanks for the replies guys.

A snippet from CCleaner's changelog:

Version History

v2.26.1050

--------------------------------------------

- Added vacuum SQLite databases for Firefox and Google Chrome.

v2.28.1091

--------------------------------------------

- Added support for custom locations for applications.

e.g. CustomLocation1=FIREFOX|C:\MyFirefox\Profile

Cleans the following Windows components:

* Firefox

- Temporary File Cache

- URL History

- Cookies

- Download manager

It states that when specifying a custom location with the FIREFOX directive and path that CCleaner will do it's full cleaning at that location - not just the vacuuming.

I think that you are over-complicating things. My suggestion is very simple - to allow environment variables where the profile path is, thus allowing CCleaner to work better for me.