Jump to content
CCleaner Community Forums
Winapp2.ini

Winapp2.ini additions

Recommended Posts

Suggested enhancement to the Trim function of Winapp2ool:

Provide a White List function that tells the Trim to NOT trim "white listed" cleaning functions.  This would overcome the situation where the Detect and/or DetectFile of certain modules disappears during a cleaning but can reappear on a Windows or third party application update.  For example:

1.  A new Winapp2.ini is issued/trimmed and install.  At this point in time, no Dell folder is present at/on C:\.

2.  Then Dell issues a new driver update which is then installed.  This creates a Dell folder on C:\.  This folder and its content is no longer needed after the driver is installed.  However, the cleaning module in Winapp2.ini or a user's Custom.ini  is not present because it was trimmed out in (1) above.  The user must wait for the next Winapp2.ini release/trim for Winapp2.ini to insert that cleaning module to remove the C:\Dell folder.  

There are several modules like this in Winapp2.ini and also in my Custom.ini file where this exists.  A Trim White list would obviate this problem.

JMS 

Share this post


Link to post
Share on other sites

New Entry

[Dialog Box Traces *]
LangSecRef=3025
Detect=HKCU\Software\Microsoft\Windows
Default=False
RegKey1=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\CIDSizeMRU
RegKey2=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\LastVisitedPidlMRU
RegKey3=HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\ComDlg32\OpenSavePidlMRU

Share this post


Link to post
Share on other sites

Updated entry.

Moved:
* FileKey1 is now FileKey3

Added:
* FileKey1 *.log cleaning - delete logs
* FileKey2 *.sqlite cleaning - delete the entire download history (video URL, saved video filename)

[4K Video Downloader *]
LangSecRef=3023
Detect=HKCU\Software\4kdownload.com\4K Video Downloader
Default=False
FileKey1=%LocalAppData%\4kdownload.com\4K Video Downloader\4K Video Downloader|*.log
FileKey2=%LocalAppData%\4kdownload.com\4K Video Downloader\4K Video Downloader|*.sqlite
FileKey3=%LocalAppData%\4kdownload.com\4K Video Downloader\4K Video Downloader|*.xml
RegKey1=HKCU\Software\4kdownload.com\4K Video Downloader\Download|downloadedItems
RegKey2=HKCU\Software\4kdownload.com\4K Video Downloader\Settings|outputPath

Share this post


Link to post
Share on other sites

Modified entry:  [Logitech Camera *]

Removed DetectFile

Added Detect

(This is to prevent [Logitech Camera *] from being detected on systems that have Logitech devices installed but do not have a Logitech camera.)

[Logitech Camera *]
LangSecRef=3023
Detect=HKLM\Software\Logitech\QuickCam\Drivers
Default=False
FileKey1=%LocalAppData%\LogiShrd\Vid|*.*|RECURSE

 

Share this post


Link to post
Share on other sites

Modified entry:  [Nvidia *]

Added FileKey2

[NVIDIA *]
LangSecRef=3024
Detect=HKLM\Software\NVIDIA Corporation
Default=False
FileKey1=%AppData%\NVIDIA\*Cache|*.*|RECURSE
FileKey2=%CommonAppData%|DisplaySessionContainer*.log;DisplaySessionContainer*.log_backup*;NvcDispCorePlugin.log;NvcDispCorePlugin.log_backup*;NVDisplay.ContainerLocalSystem.log;NVDisplay.ContainerLocalSystem.log_backup*;NVDisplayContainerWatchdog.log;NVDisplayContainerWatchdog.log_backup*
FileKey3=%CommonAppData%\NVIDIA|*.log;*.log_backup1;Resource.old;*.bak|RECURSE
FileKey4=%CommonAppData%\NVIDIA Corporation|*.log;*bak;*log.*;*.old;*.stat|RECURSE
FileKey5=%CommonAppData%\NVIDIA Corporation\Downloader|*.*|RECURSE
FileKey6=%CommonAppData%\NVIDIA Corporation\GeForce Experience\Update|*.*|RECURSE
FileKey7=%CommonAppData%\NVIDIA Corporation\NV_Cache|*.*
FileKey8=%CommonAppData%\NVIDIA Corporation\NvFBCPlugin|log*.txt
FileKey9=%CommonAppData%\NVIDIA\NvBackend\Updatus\DownloadManager|*.*
FileKey10=%CommonAppData%\NVIDIA\Updatus\DownloadManager|*.*
FileKey11=%LocalAppData%\NVIDIA Corporation|*.log;*.bak;*.old|RECURSE
FileKey12=%LocalAppData%\NVIDIA Corporation\*\CefCache|Cookies*;QuotaManager*
FileKey13=%LocalAppData%\NVIDIA Corporation\*\CefCache\*Cache|*.*|RECURSE
FileKey14=%LocalAppData%\NVIDIA Corporation\NV_Cache|*.*
FileKey15=%LocalAppData%\NVIDIA\NvBackend|*.log;*.bak
FileKey16=%LocalAppData%\VirtualStore\ProgramData\NVIDIA Corporation|*.log;*bak;*log.*;*.old;*.stat|RECURSE
FileKey17=%ProgramFiles%\NVIDIA Corporation\NetworkAccessManager\Apache Group\Apache2\logs|*.*
FileKey18=%SystemDrive%\NvidiaLogging\GFExperience|GridClientLog.log*|RECURSE

 

Share this post


Link to post
Share on other sites

Revised Entry

Changed the name from [Stored Store Install Information *] to [Store Install Service Cache *]
Added: FileKey1

[Store Install Service Cache *]
DetectOS=10.0|
LangSecRef=3025
Detect=HKCU\Software\Microsoft\Windows
Default=False
FileKey1=%WinDir%\System32\config\systemprofile\AppData\Local\Microsoft\InstallService|*.*|RECURSE
RegKey1=HKLM\Software\Microsoft\Windows\CurrentVersion\InstallService\State\CategoryCache

Share this post


Link to post
Share on other sites

Revised Entry

Removed: %UserProfile%\Apple Computer\logs|*.log
I have been watching this for a while and this does not exist.

[iTunes *]
LangSecRef=3023
Detect=HKLM\Software\Apple Computer, Inc.\iTunes
Default=False
FileKey1=%AppData%\Apple Computer\iTunes|*.ipcc;*.ipsw;*.log
FileKey2=%AppData%\Apple Computer\iTunes\Cookies|Cookies.binarycookies
FileKey3=%AppData%\Apple Computer\Logs|*.*|RECURSE
FileKey4=%CommonAppData%\Apple Computer\iTunes\iPhone Temporary Files|*.*|RECURSE
FileKey5=%LocalAppData%\Apple Computer\iTunes|Cache.db
FileKey6=%Music%\iTunes|*.tmp|RECURSE
FileKey7=%Music%\iTunes\Album Artwork\Cache|*.*|RECURSE
FileKey8=%WinDir%\System32\config\systemprofile\AppData\Roaming\Apple Computer\Logs|*.*|RECURSE
FileKey9=%WinDir%\SysWOW64\config\systemprofile\AppData\Roaming\Apple Computer\Logs|*.*|RECURSE

Share this post


Link to post
Share on other sites

Could we add Basilisk browser to Winapp2.ini?
https://www.basilisk-browser.org/

It has been out since 2017 and regularly updated.
The Winapp2.ini entries would be the same entries as Pale Moon, but instead of the FileKey paths having \Moonchild Productions\Pale Moon\, they are \Moonchild Productions\Basilisk\

The Detect would be:
Detect1=HKLM\Software\ComodoGroup\IceDragon
Detect2=HKLM\Software\FlashPeak\SlimBrowser
Detect3=HKLM\Software\Mozilla\Basilisk
Detect4=HKLM\Software\Mozilla\Pale Moon
Detect5=HKLM\Software\Mozilla\SeaMonkey
Detect6=HKLM\Software\Mozilla\Waterfox
DetectFile=%AppData%\Mozilla\Firefox

Thank you.

Share this post


Link to post
Share on other sites

I see that in today's update that the new Chromium based Edge entries are now LangSecRef=3006 which looks good in the list and comes up in the Edge Chromium section.

For consistency, should the following old non-chromium Edge entries be changed to LangSecRef=3005 rather than 3022? They would then go into the Microsoft Edge section that would appear underneath of the Windows section in the list.

[Microsoft Edge *]
[Microsoft Edge Favorites Backup *]
[Microsoft Edge Favorites Icons *]

Share this post


Link to post
Share on other sites
5 hours ago, PICPro said:

They would then go into the Microsoft Edge section that would appear underneath of the Windows section in the list.

 

Unfortunately they won't appear under the original Edge located in the Windows (tab) of CCleaner. They'll still be listed in the Applications (tab) near the bottom under a Microsoft Edge listing.

Share this post


Link to post
Share on other sites
11 hours ago, Andavari said:

 

Unfortunately they won't appear under the original Edge located in the Windows (tab) of CCleaner. They'll still be listed in the Applications (tab) near the bottom under a Microsoft Edge listing.

Very true, to have them appear on the first tab you have to put them in a winsys2.ini

Share this post


Link to post
Share on other sites

Update: Added RegKey3 and RegKey4

[4K Video Downloader *]
LangSecRef=3023
Detect=HKCU\Software\4kdownload.com\4K Video Downloader
Default=False
FileKey1=%LocalAppData%\4kdownload.com\4K Video Downloader\4K Video Downloader|*.log;*.sqlite;*.xml
RegKey1=HKCU\Software\4kdownload.com\4K Video Downloader\Download|downloadedItems
RegKey2=HKCU\Software\4kdownload.com\4K Video Downloader\Download|downloadedItemsDb
RegKey3=HKCU\Software\4kdownload.com\4K Video Downloader\FileWatcher
RegKey4=HKCU\Software\4kdownload.com\4K Video Downloader\Gamification
RegKey5=HKCU\Software\4kdownload.com\4K Video Downloader\Settings|outputPath

 

Share this post


Link to post
Share on other sites

I'd like to suggest an application to winapp2.ini database. The application is called Caprine. It's leaving installation files after updating it.

May you check if I prepared everything correctly for you sir?

[Caprine *]
LangSecRef=3022
DetectFile=%LocalAppData%\Local\Programs\Caprine
Default=False
FileKey1=%LocalAppData%\Local\Caprine-updater|*.*|RECURSE

 

 

Share this post


Link to post
Share on other sites
7 hours ago, don_dolarson said:

I'd like to suggest an application to winapp2.ini database. The application is called Caprine. It's leaving installation files after updating it.

May you check if I prepared everything correctly for you sir?


[Caprine *]
LangSecRef=3022
DetectFile=%LocalAppData%\Local\Programs\Caprine
Default=False
FileKey1=%LocalAppData%\Local\Caprine-updater|*.*|RECURSE

 

 

For what you created here's the correction, you already have LocalAppData listed, so CCleaner already knows to look into the Local folder. You can right-click the entry listed in CCleaner and select Analyze and it will list what's found in the clean window to verify it works - this is of course after you've already used Caprine first to generate the files you want CCleaner to clean.

Since it's obviously an updater folder you can cheat if no update is available and generate your own file in that folder by simply creating a blank .TXT document in the path, and then analyze with CCleaner to insure it finds it, then the entry should work after testing - anyways that's what I do for testing.

[Caprine *]
LangSecRef=3022
DetectFile=%LocalAppData%\Programs\Caprine
Default=False
FileKey1=%LocalAppData%\Caprine-updater|*.*|RECURSE

Share this post


Link to post
Share on other sites

Caprine is obviously based on Chromium. Here is an enhanced entry:

[Caprine *]
LangSecRef=3022
DetectFile=%LocalAppData%\Programs\caprine
Default=False
FileKey1=%AppData%\Caprine|*-journal;LOG;LOG.old|RECURSE
FileKey2=%AppData%\Caprine|Network Persistent State
FileKey3=%AppData%\Caprine\*Cache|*.*|RECURSE
FileKey4=%AppData%\Caprine\blob_storage|*.*|RECURSE
FileKey5=%AppData%\Caprine\Caprine\logs|*.*
FileKey6=%AppData%\Caprine\logs|*.*
FileKey7=%AppData%\Caprine\Session Storage|*.*|RECURSE
FileKey8=%LocalAppData%\caprine-updater|*.*|RECURSE

 

Can you please test this for possible side effects? Thank you very much.

Share this post


Link to post
Share on other sites
On 24/01/2020 at 00:39, don_dolarson said:

How can I test it? I'm definetly a noob 😂

 

- Run "Notepad" as administrator (via the right-click menu).
- Use "Open" and navigate to the CCleaner installation folder (C:\Program Files\CCleaner).
- Open the file "winapp2.ini".
- Copy the entry [Caprine *].
- Paste it at the end of the file and save it.
- Start CCleaner and the new entry should appear.

Share this post


Link to post
Share on other sites

Winapp2ool Suggestion.

The "WinappDebug" component should detect the use of ; in ExcludeKey as an error.

Example: ExcludeKey1=FILE|%ProgramFiles%\Common Files\Tracker Software\Common\Tesseract\|eng.dat;eng.lng  is not valid.

Share this post


Link to post
Share on other sites
51 minutes ago, siliconman01 said:

Winapp2ool Suggestion.

The "WinappDebug" component should detect the use of ; in ExcludeKey as an error.

Example: ExcludeKey1=FILE|%ProgramFiles%\Common Files\Tracker Software\Common\Tesseract\|eng.dat;eng.lng  is not valid.

 

The use of the semicolon (;) is not always invalid. If wildcards are also used, it may be used. Please see example 5: https://www.ccleaner.com/docs/ccleaner/advanced-usage/ccleaner-ini-files/how-to-exclude-items-from-ccleaners-cleaning.

Share this post


Link to post
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...