Jump to content

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

I'm Shane.

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.