Help with "warning" in WinApp2.ini

Hi: I appended this in my WinApp2.ini for cleaning temp files in a specific path:

[iDE temps]
Section=Misc. temp files
Warning="You must exit IDE before cleaning temp files."
Default=True
FileKey1=c:\IDETemp\*.*

My problem is that CCleaner does delete the target files, but Warning is NOT displayed. (The warning is just a reminder, just like the one for FireFox. If temp files are still being used, they won't be deleted)

I am using CCleaner 3.21 under Windows 7 64 bit SP1

Thanks for any hint.

remove the "

also I placed a | in your file key

[iDE temps]
Section=Misc. temp files
Warning=You must exit IDE before cleaning temp files.
Default=True
FileKey1=c:\IDETemp|*.*

remove the "

also I placed a | in your file key

[iDE temps]
Section=Misc. temp files
Warning=You must exit IDE before cleaning temp files.
Default=True
FileKey1=c:\IDETemp|*.*

Nope, it didn't work. I moved all my original .ini files to another folder in order to use winapp2.ini with ONLY the code you suggested, but warning is NOT displayed yet. (Files were deleted properly).

CCleaner Version: 3.21.1767

CCleaner does not like drive paths like that C:\, D:\ E:, etc., unless of course you input them into the "Options->Include" area then it will remove stuff.

You need to use a variable, try this and tell us if it works:

[iDE temps*]
Section=Misc. temp files
Warning=You must exit IDE before cleaning temp files.
Default=False
FileKey1=%SystemDrive%\IDETemp|*.*

Don't know what your warning dialog details (such as corrupting the program, etc.,) which is why I changed Default= to False.

________________________________

If you'd like you can paste everything in the code below near the top of your winapp2.ini file, CCleaner will completely ignore it since it's commented out, however it will instantly give you quick reminders/tips when making winapp2.ini entries:

; CCleaner supports the following variable support:
; %AppData% = Your User Profile
; %LocalAppData% = Your User Profile
; %CommonAppData% = The All User Profile
; %SystemDrive% = The root of the drive where Windows is installed, usually: C:\
; %windir% = The path where the Windows OS is installed, such as: C:\Windows
;
; This allows for "Application Data" references to work on non-English versions
; of Windows, and also makes for shorter in character length cleaning routines.
; And it allows for cleaning folders, files, and programs which are located in
; the root of your system drive, such as portable programs, etc.
;
; ---------------------------------------
;
; winapp2.ini cleaning routines all have an asterick ("*") after the name, this
; makes it very easy to see they're cleaning routines not originally included
; in CCleaner and are from the add-on winapp2.ini file.
;
; Note:
; If you make any cleaning routines that drastically slow down CCleaner you
; should remove them.
;
; ---------------------------------------
;
; ExcludeKey=Files to exclude from being deleted
;
; Example of ExcludeKey:
; ExcludeKey1=FILE|%appdata%\AccurateRip\AccurateRipCache\|DriveOffsets.bin
;
; Warning=Displays a warning dialog before enabling a cleaning routine

CCleaner does not like drive paths like that C:\, D:\ E:, etc., unless of course you input them into the "Options->Include" area then it will remove stuff.

You need to use a variable, try this and tell us if it works:

[iDE temps*]
Section=Misc. temp files
Warning=You must exit IDE before cleaning temp files.
Default=False
FileKey1=%SystemDrive%\IDETemp|*.*

Don't know what your warning dialog details (such as corrupting the program, etc.,) which is why I changed Default= to False.

OOOH! Yes, now it worked...

The problem was "Default=TRUE" Because I was expecting CCleaner to show up a warning DURING cleaning, as it does with Firefox, not when checking the option.

So it was always right, just I had to switch the check mark!!!

Thanks very very much!!!

BDW: CCleaner did accept C: instead %SystemDrive%

BDW: CCleaner did accept C: instead %SystemDrive%

Good to know it did because I've seen it in the past refuse to clean something when using C:\<path to file or folder>

BDW: CCleaner did accept C: instead %SystemDrive%

You have found it works on 64 bit Windows 7.

It seems reasonable that it should work for all versions of Windows.

I would never accuse Windows of being reasonable :rolleyes:

I would never accuse Windows of being reasonable :rolleyes:

You made me laugh when reading that. :lol: