Support for VMware ThinApp

okay let me try and explain this correclty.

In VMware ThinApp you create a clean base image, naturally I used CCleaner Portable to run over this clean image and tidy things up before I take what's called a "Pre-Scan" Capture Snapshot

I then install my application, and run a "Post Scan" Capture and there we have it, my ThinApp snapshot is ready to build.

Sometimes applications do a heap of useless junk before they are finished so I would like to be able to run CCleaner before captiring the Post Scan Snapshot

Issue is however as I have found out, if you run CCleaner before the Post Scan, CCleaner wipes out the "captured" state and ThinApp reverts to thinking you need to perform the Pre-Scan again.

Could CCleaner somehow exempt the ThinApp captured state directories?

Would help make some lighter weight ThinApps sometimes.

Cheers.

Can you post where these directories are kept? If they're kept in \temp\,all you need to do is add them to excude.

apologies for the delay,

thanks for the tip.

using process monitor I can see vmWare ThinApp creates a randomly generated file name in the users temp directory like this

%TEMP%\randomhere.snapshot

so ideally I need to exclude

%TEMP%\*.snapshot

How can I add an environment variable as exclusion rather then

c:\documents and settings\user\local settings\temp as this will obviously changed based on which user is running CCleaner

also it create a diectory

%TEMP%\VMwareDnD

so I would also like to exclude

%TEMP%\VMwareDnD\*.*

Cheers.

Is there a setting in VMWare to tell it not to put these things in the temp folder?

Otherwise you cannot use environmental variables in the EXCLUDE as far as I am aware

I think there should be no problem.

CCleaner Analyze shows two Temp files (sizes 2 KB and 4 KB) to zap

I selected the 4 KB one for exclusion

I closed CCleaner and edited the consequent CCleaner.ini

It concluded with the line

Exclude2=FILE|C:\Users\Alan\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\6DP5YV6Z\|views[1]

I changed this to clean the same thing in any other profile by using an environmental variable

Exclude2=FILE|%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\Content.IE5\6DP?YV6Z\|vi?ws[1]

I launched CCleaner and Analyse only saw the small 2 KB file, it did not want to hit the 4 KB file even though :-

The path was defined with a standard environmental variable ;

The path included a wild card ;

The target was specified with a wild card.

I closed CC

I edited the INI to

Exclude2=FILE|%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\Content.IE5\6DP?YV6Z\|vi?ws[2]

I launched CC and Analyze saw that [2] did not match the exclusion - it was not excluded from being zapped

MY CONCLUSION :-

CCleaner will NOT allow you to type anything like %TEMP% within its GUI,

BUT REGARDLESS, what it can Analyse it can add that specific path to CCleaner.ini for your specific profile,

and you can edit the INI to replace your specific path with %TEMP% and it will exclude the file you have selected.from any other profile.

If you have a "standard install" the registry is used instead of a friendly INI,

in which case you must first use Options => Advanced => Save settings to INI.

Please note that when I use %TEMP% etc to Include stuff for deletion,

Analyze never shows %TEMP% but translates that to whatever is the current profile.

It is quite possible that should you change Options => Advanced => Save settings to INI. to use the registry,

then the registry will be given your specific path and not the general purpose %TEMP% route

However that probably does not matter,

the other users and profiles will know nothing of your changes because separate settings are kept in each user's registry.

If you want other profiles to get the same benefit you either stick with this "Save settings to INI",

or you have to perform all the above work whilst running CC in each profile, one at a time.