Alan_B Posted December 13, 2012 Share Posted December 13, 2012 Further to posts at #2528 through to #2546 in http://forum.pirifor...c=32310&st=2520 This is a discussion area and another solution for appending your own Custom.ini to WinApp.ini New code @ECHO OFF (ECHO ;;+; Custom.Ini below Added %DATE% %TIME% :- & ECHO( & MORE Custom.ini ) >> Winapp2.ini FIND ";;+;" < Winapp2.ini PAUSE New features are :- The data and time of appending are recorded ; A blank line precedes Custom.ini to ensure valid separation before the custom entry code blocks ; New or modified Custom.ini may be additionally appended. After the Append action, all Date + Time stamps in the latest WinApp2.ini are shown as a reminder if you have already merged and when. I believe that any repetition of an entry MAY result in a duplication of CCLeaner checkboxes but is unlikely to do harm. You are warned by the appearance of 2 or more time stamps if there is potential duplication by repeated Merges. N.B. without far more code there can be no warning if a Custom.ini entry duplicates a downloaded WinApp2.ini entry. I do not have time now to exhaustively test the consequences. of repetitions, but will be interested in seeing your experiences. Link to comment Share on other sites More sharing options...
Guest Keatah Posted December 14, 2012 Share Posted December 14, 2012 I wonder if this won't fill the ccleaner.ini file with extra entries too. ? Link to comment Share on other sites More sharing options...
Winapp2.ini Posted December 14, 2012 Share Posted December 14, 2012 Any entry you create with winapp2.ini will create an extra entry in ccleaner.ini, but a cluttered ccleaner.ini doesn't seem to impact CCleaner's performance. Edit: idea: merge.bat creates a winapp2.ini backup (winapp2.bak) and if it detects that, it deletes the current winapp2.ini, merges custom.ini+winapp2.bak >> winapp2.ini winapp2.ini additions thread winapp2.ini github Link to comment Share on other sites More sharing options...
Moderators Nergal Posted December 14, 2012 Moderators Share Posted December 14, 2012 Any entry you create with winapp2.ini will create an extra entry in ccleaner.ini, Fixed version: Any entry you change the checkmark on in CCleaner will create an extra entry in ccleaner.ini, ADVICE FOR USING CCleaner'S REGISTRY INTEGRITY SECTION DON'T JUST CLEAN EVERYTHING THAT'S CHECKED OFF. Do your Registry Cleaning in small bits (at the very least Check-mark by Check-mark) ALWAYS BACKUP THE ENTRY, YOU NEVER KNOW WHAT YOU'LL BREAK IF YOU DON'T. Support at https://support.ccleaner.com/s/?language=en_US Pro users file a PRIORITY SUPPORT via email support@ccleaner.com Link to comment Share on other sites More sharing options...
Alan_B Posted December 14, 2012 Author Share Posted December 14, 2012 My code above fully meets the first requirement which was to merge a static and never changing Custom.ini. A subsequent need was to allow for additions to Custom.ini. and for these to also be merged. Hence the above code permits such additions but reminds you that it has been performed more than once. I believe having duplications will have no effect on those with a static Custom.ini. and have no significant degradation on performance for those who add to Custom.ini, Degradation will be eliminated upon :- the next Winapp2.ini download ; or a slight edit on the merged WinApp2.ini ; OR (hopefully - but not tested) by running Trim.bat. I have already noted the Trim.Bat problem reported with an entry that includes a path containing "*]" and may attend to that next. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now