Jump to content
CCleaner Community Forums
Winapp2.ini

DetectFile wildcards only support folders

Recommended Posts

A recent version (I am unsure of which) added support for wildcards in the detectfile path, which is great news for everyone!

 

Things like DetectFile=%LocalAppData%\Packages\*.coolwin8app_* are now possible...but..

 

If you follow the wildcard up with anything, it breaks. IE

 

ie.

 

Works:

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\

Doesn't Work:

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\Extensions

Doesn't Work

DetectFile=%AppData%\Mozilla\Firefox\Profiles\*\webappsstore.sqlite

Share this post


Link to post
Share on other sites

I actually misnamed this topic because I thought it broke with just files at first, then halfway through I relized it breaks with anything after the wildcard. A mod can ammend it if they wish

Share this post


Link to post
Share on other sites

If I had to guess why... (I love writing these posts)

 

It's probably because the Detect lines perform a simple conditional statement to establish the presence of an application. If the conditional was performed on items in directories further down the directory tree from the point of the wildcard; a recursive operation would be required. As all the Detect entries are processed on CCleaner's initial application load event, the time consuming nature of recursive scanning would have severe performance consequences.

Share this post


Link to post
Share on other sites

Wildcard detection is only supported at the end of the path (i.e. for file and/or folder names only)

Share this post


Link to post
Share on other sites
Seems Shane was correct then? 

 

It was bound to happen eventually! :)

Share this post


Link to post
Share on other sites

I'm going to ignore the inference that most of my typing is utter jargon and give you a solid 'hahaha!' for the clever joke. ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...