The attached should now work for x32 and x64 machines
I think have now resolved all the "anomalies" caused by the Winapp2 "features" of :-
Entries written in UNIX (0x0a) style instead of DOS (0x0d, 0x0a) style;
Trailing spaces at the end of some lines; and
Use of the same [configuration block name*] for more than one configuration block.
I have enhanced the built-in documentation.
Please do NOT use previous documentation.
The following was captured from my DOS window when I ran the script and dir directory listings.
The script creates many #_????? files as part of the "work in progress"
They are not the end product, which is only the new trimmed WinApp2.ini.
The #_DEBUG_???? files are what I used to identify and overcome anomalies,
and may be useful for anyone interested in observing and fixing the full sized Winapp2.ini
E:\T\CCleaner\v313\T5>DIR /A:-D
Volume in drive E is E_GPT_E
Volume Serial Number is C044-40A5
Directory of E:\T\CCleaner\v313\T5
27/12/2011 07:57 4,555,072 CCleaner64.exe
03/12/2011 17:42 5,788 License.txt
03/12/2011 17:42 10 portable.dat
31/12/2011 12:05 4,299 Trim_3.bat
27/12/2011 07:56 166,739 winapp2.ini
5 File(s) 4,731,908 bytes
0 Dir(s) 99,231,690,752 bytes free
E:\T\CCleaner\v313\T5>TRIM_3
FILE CREATION 12:05 31/12/2011
DO NOT USE THIS WITH AN EXISTING CCLEANER IN CASE YOU CORRUPT IT
Make a new folder for this script plus PORTABLE CCleaner plus downloaded WinApp2.ini.
This script will create a trimmed WinApp2.ini giving a faster launch for CCleaner.
TECHNIQUE :-
Run TRIM_2. CCleaner appears. Click “Analyze” and when done close CCleaner
A temporary Winapp2.ini variant is created that asserts “Default=True”.
“CCleaner /Debug” is launched to obtain a *.log file to identify all “Detections”
You then have to wait for the “Analyze” button to become active and click it.
After analysis close CCleaner, then trimmed Winapp2.ini replaces the “Default=True”.
Now copy the trimmed WinApp2.ini to your normal CCleaner installation.
12:09:06.35 - 12:09:04.02 = 4374635 - 4374402 = 2330 mSec = Built #_TRUE_WINAPP2.INI
COUNTED Imported WINAPP2.INI has 678 Configuration blocks
12:09:08.70 - 12:09:06.36 = 4374870 - 4374636 = 2340 mSec = Built #_DEBUG_TRUE_WINAPP2.INI
COUNTED Imported WINAPP2.INI has 678 Configuration blocks
About to launch CCleaner.
YOU MUST NOT “Run Cleaner” - ONLY Click “Analyze”
Then please CLOSE CCleaner so script may continue.
Hit “Enter” key when ready to proceed …
12:09:20.57 - 12:09:11.07 = 4376057 - 4375107 = 9500 mSec = Running “CCLEANER{64} /DEBUG”
12:09:20.63 - 12:09:20.57 = 4376063 - 4376057 = 60 mSec = Built #_NEEDED.LST
12:09:20.73 - 12:09:20.63 = 4376073 - 4376063 = 100 mSec = Built 55 off BID_nnnn
CREATING NEW WINAPP2.INI
12:09:23.54 - 12:09:20.73 = 4376354 - 4376073 = 2810 mSec = NEW WINAPP2.INI
Counted 57-2 = 55 Config Blocks with 2 Repetition Anomalies
CREATING NEW #_DEBUG_WINAPP2.INI
12:09:26.34 - 12:09:23.55 = 4376634 - 4376355 = 2790 mSec = NEW #_DEBUG_WINAPP2.INI
Counted 57-2 = 55 Config Blocks with 2 Repetition Anomalies
#_DEBUG_TRUE_WINAPP2.INI.TXT shows 49 Lines with a trailing space
#_DEBUG_WINAPP2.INI.TXT shows 7 Lines with a trailing space
Press any key to continue . . .
E:\T\CCleaner\v313\T5>DIR /A:-D
Volume in drive E is E_GPT_E
Volume Serial Number is C044-40A5
Directory of E:\T\CCleaner\v313\T5
[font=courier new,courier,monospace]
31/12/2011 12:09 209,863 #_DEBUG_TRUE_WINAPP2.INI
31/12/2011 12:09 3,078 #_DEBUG_TRUE_WINAPP2.INI.TXT
31/12/2011 12:09 17,486 #_DEBUG_WINAPP2.INI
31/12/2011 12:09 576 #_DEBUG_WINAPP2.INI.TXT
31/12/2011 12:09 166,747 #_DOS_WINAPP2.INI
31/12/2011 12:09 4,006 #_NEEDED.LST
31/12/2011 12:09 166,045 #_TRUE_WINAPP2.INI
27/12/2011 07:56 166,739 #_V0_WINAPP2.INI
31/12/2011 12:09 129 ccleaner.ini
27/12/2011 07:57 4,555,072 CCleaner64.exe
31/12/2011 12:09 45,550 CCleaner64_31-12-2011_12-9-11.log
03/12/2011 17:42 5,788 License.txt
03/12/2011 17:42 10 portable.dat
31/12/2011 12:05 4,299 Trim_3.bat
31/12/2011 12:09 12,431 WINAPP2.INI
15 File(s) 5,357,819 bytes
0 Dir(s) 99,231,043,584 bytes free[/font]
E:\T\CCleaner\v313\T5>
Trim_3.txt