Winapp2.ini additions

I added the COMPONENTS element to this code for cleanup of TuneUp Utilities defrag.

[TuneUp Utilities 2011 Reg Defrag Cleanup**]
LangSecRef=3024
Detect=HKCU\Software\TuneUp\Utilities\10.0
Default=False
FileKey1=%WinDir%\System32\config\|SECURITY_tureg_old
FileKey2=%WinDir%\System32\config\|SOFTWARE_tureg_old
FileKey3=%WinDir%\System32\config\|SYSTEM_tureg_old
FileKey4=%WinDir%\System32\config\|DEFAULT_tureg_new.LOG1
FileKey5=%WinDir%\System32\config\|DEFAULT_tureg_new.LOG2
FileKey6=%WinDir%\System32\config\|SAM_tureg_new.LOG1
FileKey7=%WinDir%\System32\config\|SAM_tureg_new.LOG2
FileKey8=%WinDir%\System32\config\|SECURITY_tureg_new.LOG1
FileKey9=%WinDir%\System32\config\|SECURITY_tureg_new.LOG2
FileKey10=%WinDir%\System32\config\|SOFTWARE_tureg_new.LOG1
FileKey11=%WinDir%\System32\config\|SOFTWARE_tureg_new.LOG2
FileKey12=%WinDir%\System32\config\|SYSTEM_tureg_new.LOG1
FileKey13=%WinDir%\System32\config\|SYSTEM_tureg_new.LOG2
FileKey14=%WinDir%\System32\config\|DEFAULT_tureg_old
FileKey15=%WinDir%\System32\config\|SAM_tureg_old
FileKey16=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_old
FileKey17=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_new.LOG1
FileKey18=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_new.LOG2
FileKey19=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_old
FileKey20=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_new.LOG1
FileKey21=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_new.LOG2
Filekey22=%WinDir%\System32\config\|COMPONENTS_tureg_old
Filekey23=%WinDir%\System32\config\|COMPONENTS_tureg_new.LOG1
Filekey24=%WinDir%\System32\config\|COMPONENTS_tureg_new.LOG2
FileKey25=%USERPROFILE%\AppData\Local\Microsoft\Windows|USRCLASS.DAT_tureg_old
FileKey26=%USERPROFILE%\|NTUSER.DAT_tureg_new.LOG1
FileKey27=%USERPROFILE%\|NTUSER.DAT_tureg_new.LOG2
FileKey28=%USERPROFILE%\|NTUSER.DAT_tureg_old
FileKey29=C:\Boot\|BCD_tureg_new.LOG1
FileKey30=C:\Boot\|BCD_tureg_new.LOG2
FileKey31=C:\Boot\|BCD_tureg_old

Updated to reflect changes in CCleaner 3.11 :)

MODIFIED ENTRY

[Windows System Profile*]

LangSecRef=3025

DetectFile=%WinDir%\system32\config\systemprofile

Default=False

FileKey1=%WinDir%\system32\config\systemprofile\AppData\Local\Microsoft\Windows\Temporary Internet Files|*.*|RECURSE

FileKey2=%WinDir%\system32\config\systemprofile\AppData\Local\Temp|*.*|RECURSE

FileKey3=%WinDir%\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\Cookies|*.*|RECURSE

FileKey4=%WinDir%\system32\config\systemprofile\AppData\Roaming\Microsoft\Windows\IETldCache|*.*|RECURSE

[Windows Explorer More*]
LangSecRef=3025
Detect=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\
Default=False
RegKey1=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU

cleaned by ccleaner default via this entry in WinSYS.ini

[Window Size/Location Cache]
ID=1022
LangSecRef=3004
LangRef=3127
WarningRef=3205
RegKey1=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\StreamMRU
RegKey2=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams

____________________________________________________________________________________________________________________________

[secunia PSI*]
LangSecRef=3021
DetectFile=%ProgramFiles%\Secunia\PSIsua.exe
Detect=HKCU\Software\Secunia\PSI
Default=False
FileKey1=%ProgramFiles%SecuniaPSI|sualog.txt
FileKey2=%ProgramFiles%SecuniaPSI|psialog.txt
FileKey3=%ProgramFiles%\Secunia\PSI|psialog.txt2 

FileKey1 and 2 are missing 2 \ (Each) should be

FileKey1=%ProgramFiles%\Secunia\PSI|sualog.txt
FileKey2=%ProgramFiles%\Secunia\PSI|psialog.txt

____________________________________________________________________________________________________________________________

[Windows Defender More*]
LangSecRef=3024
DetectFile=%CommonAppData%\Microsoft\Windows Defender\
Default=False
FileKey1=%CommonAppData%\Microsoft\Windows Defender\Support|*.log [/Code]

is redundant now
Default Windows Defender entry cleans it

[Code][Windows Defender]
ID=2132
LangSecRef=3024
Detect=HKLM\SOFTWARE\Microsoft\Windows Defender
Default=True
FileKey1=%commonappdata%\Microsoft\Windows Defender\Scans\History\Results\Quick|.
FileKey2=%commonappdata%\Microsoft\Windows Defender\Scans\History\Results\Resource|.
FileKey3=%CommonAppData%\Microsoft\Windows Defender\Support|*.log

Thanks for pointing those out :)

The following code of [TuneUp Utilities 2011 Reg Defrag Cleanup**] in Winapp2.ini Version: v1.0.110928

needs to be updated to the following:

[TuneUp Utilities 2011 Reg Defrag Cleanup*]
LangSecRef=3024
Detect=HKCU\Software\TuneUp\Utilities\10.0
Default=False
FileKey1=%WinDir%\System32\config\|SECURITY_tureg_old
FileKey2=%WinDir%\System32\config\|SOFTWARE_tureg_old
FileKey3=%WinDir%\System32\config\|SYSTEM_tureg_old
FileKey4=%WinDir%\System32\config\|DEFAULT_tureg_new.LOG1
FileKey5=%WinDir%\System32\config\|DEFAULT_tureg_new.LOG2
FileKey6=%WinDir%\System32\config\|SAM_tureg_new.LOG1
FileKey7=%WinDir%\System32\config\|SAM_tureg_new.LOG2
FileKey8=%WinDir%\System32\config\|SECURITY_tureg_new.LOG1
FileKey9=%WinDir%\System32\config\|SECURITY_tureg_new.LOG2
FileKey10=%WinDir%\System32\config\|SOFTWARE_tureg_new.LOG1
FileKey11=%WinDir%\System32\config\|SOFTWARE_tureg_new.LOG2
FileKey12=%WinDir%\System32\config\|SYSTEM_tureg_new.LOG1
FileKey13=%WinDir%\System32\config\|SYSTEM_tureg_new.LOG2
FileKey14=%WinDir%\System32\config\|DEFAULT_tureg_old
FileKey15=%WinDir%\System32\config\|SAM_tureg_old
FileKey16=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_old
FileKey17=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_new.LOG1
FileKey18=%WinDir%\ServiceProfiles\LocalService\|NTUSER.DAT_tureg_new.LOG2
FileKey19=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_old
FileKey20=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_new.LOG1
FileKey21=%WinDir%\ServiceProfiles\NetworkService\|NTUSER.DAT_tureg_new.LOG2
Filekey22=%WinDir%\System32\config\|COMPONENTS_tureg_old
Filekey23=%WinDir%\System32\config\|COMPONENTS_tureg_new.LOG1
Filekey24=%WinDir%\System32\config\|COMPONENTS_tureg_new.LOG2
FileKey25=%USERPROFILE%\AppData\Local\Microsoft\Windows|USRCLASS.DAT_tureg_old
FileKey26=%USERPROFILE%\|NTUSER.DAT_tureg_new.LOG1
FileKey27=%USERPROFILE%\|NTUSER.DAT_tureg_new.LOG2
FileKey28=%USERPROFILE%\|NTUSER.DAT_tureg_old
FileKey29=C:\Boot\|BCD_tureg_new.LOG1
FileKey30=C:\Boot\|BCD_tureg_new.LOG2
FileKey31=C:\Boot\|BCD_tureg_old

...

[secunia PSI*]
LangSecRef=3021
DetectFile=%ProgramFiles%\Secunia\PSIsua.exe
Detect=HKCU\Software\Secunia\PSI
Default=False
FileKey1=%ProgramFiles%SecuniaPSI|sualog.txt
FileKey2=%ProgramFiles%SecuniaPSI|psialog.txt
FileKey3=%ProgramFiles%\Secunia\PSI|psialog.txt2 

FileKey1 and 2 are missing 2 \ (Each) should be

FileKey1=%ProgramFiles%\Secunia\PSI|sualog.txt
FileKey2=%ProgramFiles%\Secunia\PSI|psialog.txt

...

In addition to the correction noted above, add a backslash after "PSI" on the "DetectFile" line:

DetectFile=%ProgramFiles%\Secunia\PSI\sua.exe

sneaky backslashes, they always seem to go missing.

I install many of my programs (D:\) on a separate drive from my OS drive(C:\) does CCleaner still automatically detect and clean the programs correctly? What about if I have the folder it is installed into named in a non-default way?

If I install MalwareBytes' Anti-Malware in the following location will the program be cleaned correctly by CCleaner: E:\Programs\Securty\Scanners\MB Anti-Malware

I am running CCleaner portable 3.11 on Microsoft Windows 7 Professional 64.

CCleaner will only find them if you have them installed to the same path as %ProgramFiles% or if it has a registry detection path.

You can help us fill out more registry detection paths (preferred over env var paths such as %ProgramFiles%) if there are any programs not detected. :)

For the yahoo messenger entires - there will be more than one.....

Change the detectfile= to

detect=HKCU\Software\Yahoo\pager

Will slightly increase the speed of reading the winapp2.ini file....

Will do! :)

A brief thanks to all who've contributed and worked to main this file, especially the host and thread starter. It's really a great thing that CCleaner's "customization feature" is being used like so. With CCleaner and this file I see absolutely no need for anything else. I used to run several other apps and settled in on this one as the .ini file grew; and as Piriform made changes to CCleaner over the years. CCleaner has been easy to use and has worked well for some time. Good enough to recommend to others and some small businesses that I support from time to time.

Having said all that, I could probably put together some entries, or copy/paste the ones I've done. But they are for some technical engineering simulations and apps and I'm not sure that's what's needed here??

Also, I have not read all the docs yet, but is it possible for CCleaner to run a batch file? Or execute something of my own making? Either as part of the cleaning process or like a command on exiting CCleaner proper. A simple y/n would suffice - I'll figure it all out later.

All entries are welcome!

To get CCleaner to run a batch (which I believe is possible) I think you need to run a batch to launch CCleaner. Alan_B would know more than I would.

Created two new entries

[GradeKeeper Recent Files/Assignments*]

LangSecRef=3021

Detect=HKCU\Software\Gradekeeper

FileKey1=%userprofile%\AppData\Roaming\Gradekeeper|*.*

[OpenDNS Updater Logs*]

LangSecRef=3021

warning=You must exit OpenDNS Updater in the System Tray to clear log files

Detect=HKCU\Software\OpenDNS Updater

FileKey1=%userprofile%\AppData\Roaming\OpenDNS Updater|*.txt

Added new Line to existing in Red

[LogMeIn*]

LangSecRef=3022

DetectFile=%ProgramFiles%\Logmein\x86\LogMeIn.exe

Default=False

FileKey1=%ProgramFiles%\Logmein|LMI*.log

FileKey2=%ProgramData%\Logmein|LMI*.log

Thanks! :)

Another one I have added , also saw this on other Piriform forums as a recommendation . I personal had 500mb of cache that was all created over a year ago.

[MoveNetworks Media Player Cache*]

LangSecRef=3023

Detect=HKCU\Software\MoveNetworks

Default=False

FileKey1=%userprofile%\AppData\LocalLow\Move Networks\QMCache00|*.*

What do you mean by "other" Piriform Forums?

Well CCleaner forums just separate thread

http://forum.piriform.com/index.php?showtopic=13106

Ah. Wow, random and nice find. Weird 3 year late response :lol: