I use the portable version of CC which uses INI files instead of the registry.
There are several differently named INI files in the same folder which replace CCLEANER.INI,
as selected by a desktop shortcuts such as
H:\Utils\CCleaner\Clean.cmd ALAN
In the same folder is my script Clean.cmd which includes
@ECHO OFF
SET LEVEL=DEFAULT
IF EXIST %1.INI SET LEVEL=%1
COPY %LEVEL%.INI CCLEANER.INI > NUL
CCLEANER %2 %3
I launch CC and adjust all the cleaning check-boxes for a particular requirement,
and when CC closes it updates CCLEANER.INI with the latest settings.
To reuse the same settings I then rename CCLEANER.INI to DEFAULT.INI or ALAN.INI etc.
ALAN.INI holds the settings for a strong purge under my supervision,
which I only clean after an analysis and my decision that it should be safe.
DEFAULT.INI holds the settings for a minimal purge of safe things (keeping out of system files),
and I am confident that I do not need to see the analysis - it is good for an /AUTO
"Other Name".INI can target different areas of the system, and can also be used by other users/profiles.
I often use this desktop shortcut
H:\Utils\CCleaner\Clean.cmd ALAN
When I (or other users ) wish to switch off the Laptop we use
H:\Utils\CCleaner\Clean.cmd DEFAULT /AUTO /SHUTDOWN
Clean.cmd expects at least one argument,
but if there is no argument, or if the spelling is wrong,
it will instead use DEFAULT.INI for safety.
N.B. the script works for non-admin users when the INI files are FAT32.
When I tried it in a NTFS partition CCleaner.ini could not be over-written until I used CACLS to allow this.
Alan