Jump to content

Question about automatic cleaning


Eagle Creek

Recommended Posts

Hi!

 

I've read this thread and now I have some questions.

 

I want to use this on multiple computers and with both limited users and administrators. The set-up I had in mind is this:

- Every day the limited user cleans out his bin and temporary internet explorer files

- Every week the administrator cleans out the Windows temp. folders and the folders that a limited user can't access because of it's limited rights

 

What I understand is that the /auto command performs the cleanup that has been set for that user. So if I use Windows scheduler and I let it run using a local user, it cleans out X and Y and when it executes using an admin account it cleans out X Y Z.

 

The problem is that it costs time to configure these settings for all users on all PC's. What I want to know is where these settings are being stored so I can just copy/paste them using a regedit or filecopy.

 

Please let me know.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 2 weeks later...

By default, they are stored for each user under HKEY_CURRENT_USER\Software\VB and VBA Program Settings\CCleaner\Options except for the automatic update check which is a system-wide option (applies to all users) and is located under HKEY_LOCAL_MACHINE\SOFTWARE\CCleaner.

 

However, rather than plug the registry of your users, a better approach for "pushing" CCleaner, is to use the option for storing settings in an INI file. It would be named CCleaner.ini and placed in the same path as CCleaner.exe. And the easiest way to configure INI mode is to create a file named portable.dat in the same path, which forces CCleaner to operate in "portable" mode. Although portable mode is intended for use with USB flash drives, it doesn't do anything more than force CCleaner.exe to ignore the registry in favor of the INI file.

 

You can download the portable build of CCleaner by clicking on the "Other builds" link near the bottom of the download page, but there is absolutely no difference in the software between the builds; it's merely a packaging difference. The portable build is zipped (no installer) and comes with a pre-made portable.dat (which you could easily make yourself with Notepad).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.