Erasing FILES via winapp2.ini?

I defined registry entries in winapp2.ini and it works great. But I can't erase files with definitions in this file... CC never touches them.

Example:

Target:

C:\Documents and Settings\My Username\Application data\Application name\targetfilewithoutextension

I tried defining it as:

[appname]

LangSecRef=3021

DetectFile=%appdata%\Application name|anotherfile.ext

Default=True

FileKey1=%appdata%\Application name|targetfilewithoutextension

Nothing. I tried:

FileKey1=%appdata%\Application name\targetfilewithoutextension

Nothing. I tried the above with %userprofile%\application data\ instead of appdata.

Nothing. Then I even tried:

FileKey1=C:\Documents and Settings\My Username\Application data\Application name\targetfilewithoutextension

And still nothing works! The target files never get erased.

Is it possible that the files are in use, i.e., locked by a process?

Also, what is the exact name of the files/folder/application in question?

Rather CCleaner knows all of the below listed variables I don't know, I do know that it will recognise some of them.

%windir% = C:\Windows

%programfiles% = C:\Program Files

%drive% = C:\

%commonappdata% = The Common Application Data folder

%applicationdata% = The Application Data folder

%appdata% = The Application Data folder

%allusersprofile% = WinXP: C:\Documents and Settings\All Users